• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Help with JASS code please

Status
Not open for further replies.
Level 4
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:
Level 1
Joined
Dec 7, 2008
Messages
823
Yes this is incorrect forum.

rusty1 when you see such a thread you can just use the report post button to report that the thread is misplaced. It helps the moderators. No need on this. I did it.
 
Status
Not open for further replies.
Top