- Joined
- Jun 15, 2008
- Messages
- 677
Hello again ! : )
How can I make vJASS not to be pissed off by the fact I use global variables in the trigger (with or without array)? (I made a GUI trigger that I converted into JASS)
Thanks for reading the forum !
How can I make vJASS not to be pissed off by the fact I use global variables in the trigger (with or without array)? (I made a GUI trigger that I converted into JASS)
vJASS:
function Trig_RemoveTruces_Actions takes nothing returns nothing
local player PLAYER1 = udg_PLAYER4
local player PLAYER2 = udg_PLAYER5
call TriggerSleepAction( udg_TimeBetweenTruces )
call ForceRemovePlayerSimple( PLAYER1, udg_DiploTrucesOf[GetConvertedPlayerId(PLAYER2)])
call ForceRemovePlayerSimple( PLAYER2, udg_DiploTrucesOf[GetConvertedPlayerId(PLAYER1)])
call DisplayTextToForce( GetPlayersAll(), ( "The truce between " + udg_StringNameFaction[GetConvertedPlayerId(PLAYER1)] + " and " + udg_StringNameFaction[GetConvertedPlayerId(PLAYER2)] + " has ended." ) )
endfunction
//===========================================================================
function InitTrig_RemoveTruces takes nothing returns nothing
set gg_trg_RemoveTruces = CreateTrigger( )
call TriggerAddAction( gg_trg_RemoveTruces, function Trig_RemoveTruces_Actions )
endfunction
Thanks for reading the forum !
Last edited: