TEXT* BattelOutput1 = //show the dmg for the battel { pos_x = 300; pos_y = 450; layer = 3; font = arial_font; string ("You have hit for ", BattelOutputText1, "points of damage."); } the text is shown as:
every string is a new line, that is stated in the manual.
what you need is str_printf.
Code:
TEXT* BattelOutput1 = //show the dmg for the battel
{
pos_x = 300;
pos_y = 450;
layer = 3;
font = arial_font;
string = BattleDamageStr;
}
void print_damage(var damage_var){
str_printf(BattleDamageStr,"You have hit for %d points of damage",damage_var);
}