Opps, you need to set the text again in the second event. You could also make the second event a sub event of the first.
[quote:t8cck72c] MouseKeyboard: On key 1 pressed
System: Create object dmgText on layer 1 at (eneTest.X-20, eneTest.Y)
-> dmgText: Set text to global('dmg')
-> System: Set global variable 'dmg' toClamp(floor((1+random(0.225))*(global('ATK') *1.0 - eneTest ('DEF')*3))+1, 0,99999999999)
System: Is global variable 'dmg' Greater or equal 100000
-> System: Set global variable 'dmg' to str(Int(global('dmg')/1000))&"K"
-> dmgText: Set text to global('dmg')