darkbeer
Beer is Good!
- Reaction score
- 84
Hey,
i got a little problem with my map, whenever i create a new trigger, it doesnt work, but theres no error mesage.
I added some Debug messages in the trigger initalizion but they arent shown when i test the map.
Triggers I created before work perfectly -.-
anyone knows what to do about it?
hm even when i remove the scopes, the triggers wont work, heres an example:
i got a little problem with my map, whenever i create a new trigger, it doesnt work, but theres no error mesage.
I added some Debug messages in the trigger initalizion but they arent shown when i test the map.
Triggers I created before work perfectly -.-
anyone knows what to do about it?
hm even when i remove the scopes, the triggers wont work, heres an example:
JASS:
function Go takes nothing returns nothing
local string s = SubString(GetEventPlayerChatString(), 4, 10)
local unit dummy = CreateUnit(Player(0), 039;hfoo039;, 0, 0 ,0)
call BJDebugMsg("a")
call SetUnitTimeScalePercent(dummy, 10)
call SetUnitAnimation(dummy, s)
set dummy = null
endfunction
//===========================================================================
function Init_Trig_Animation_Test takes nothing returns nothing
local trigger t = CreateTrigger( )
call BJDebugMsg("ani-")
call TriggerRegisterPlayerChatEvent( t, Player(0), "ani-", false )
call TriggerAddAction( t, function Go )
set t = null
endfunction