- Joined
- Feb 14, 2009
- Messages
- 62
Hey, im having this problem and don't know what i should do to prevent the errors, help anyone please?
JASS:
function Trig_JASS_Actions takes nothing returns nothing
local string s = "Hello, welcome to Simply Black Jack, made by: full-iron use: -hit to get an extra card, -stand to keep what you have."
local string a = "...Game Loading..."
local string A = "Game has now loaded. Enjoy!"
call DisplayTextToForce( GetPlayersAll(), s )
call TriggerSleepAction ( 5.00 )
call DisplayTextToForce( GetPlayersAll(), a )
set udg_RandomCountDown = 5
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
set udg_RandomCountDown = 4
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
set udg_RandomCountDown = 3
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
set udg_RandomCountDown = 2
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
set udg_RandomCountDown = 1
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
set udg_RandomCountDown = 0
call DisplayTextToForce( GetPlayersAll(), I2S(udg_RandomCountDown) )
call TriggerSleepAction ( 1.00 )
call TriggerSleepAction ( 1.00 )
call DisplayTextToForce( GetPlayersAll(), A )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
call CreateFogModifierRectBJ( true, Player(1), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
call TriggerSleepAction ( 3.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
endfunction
function Trig_PlayerOne_Action takes nothing returns nothing
local integer a = GetRandomInt(1,13)
local integer b = GetRandomInt(1,13)
call DisplayTextToForce( GetPlayersAll(), "Your value of cards is: "+I2S(udg_Player_Card_Value[1]) )
endfunction
function_Count_Player_One_Actions takes integer a, integer b returns nothing
set udg_Player_Card_Value[1]=a+b
endfunction
//======================================================================
function InitTrig_JASS takes nothing returns nothing
set gg_trg_JASS = CreateTrigger( )
call TriggerAddAction( gg_trg_JASS, function Trig_JASS_Actions )
endfunction
Last edited by a moderator: