Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Variable Help-Elapsed Game Time
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Undead_Lives" data-source="post: 123800" data-attributes="member: 5928"><p>*Deleted old message (no double post <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />)*</p><p>Hm, ok thanks. But wouldn't the variable have to be a real?</p><p>EDIT:</p><p>Here's my current trigger:</p><p>[code]function Trig_Red_Spawn_2_Conditions takes nothing returns boolean</p><p>????if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then</p><p>????????return false</p><p>????endif</p><p>????return true</p><p>endfunction</p><p></p><p>function Trig_Red_Spawn_2_Func004002 takes nothing returns nothing</p><p>????call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetPlayerStartLocationLoc(Player(0)) )</p><p>endfunction</p><p></p><p>function Trig_Red_Spawn_2_Actions takes nothing returns nothing</p><p>????call CreateNUnitsAtLocFacingLocBJ( 6, 'uaco', Player(11), GetRectCenter(gg_rct_Player_1_Spawn), GetPlayerStartLocationLoc(Player(0)) )</p><p>????call CreateNUnitsAtLocFacingLocBJ( 6, 'ugho', Player(11), GetRectCenter(gg_rct_Player_1_Spawn), GetPlayerStartLocationLoc(Player(0)) )</p><p>????call ForGroupBJ( GetUnitsInRectAll(gg_rct_Player_1_Spawn), function Trig_Red_Spawn_2_Func004002 )</p><p>endfunction</p><p></p><p>//===========================================================================</p><p>function InitTrig_Red_Spawn_2 takes nothing returns nothing</p><p>????set gg_trg_Red_Spawn_2 = CreateTrigger(??)</p><p>????[b]call TriggerRegisterTimerEventSingle( gg_trg_Red_Spawn_2, 480.00 )[/b]</p><p>????call TriggerAddCondition( gg_trg_Red_Spawn_2, Condition( function Trig_Red_Spawn_2_Conditions ) )</p><p>????call TriggerAddAction( gg_trg_Red_Spawn_2, function Trig_Red_Spawn_2_Actions )</p><p>endfunction[/code]</p><p>Now I realize that the bolded part is where I have to implement your text. (Btw, converted this from GUI)</p><p>But I need to set the variable.</p><p>How do I do that? (Sorry, kinda new at JASS)</p><p>EDIT2: Bold didn't work. But you can see where I tried <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p></blockquote><p></p>
[QUOTE="Undead_Lives, post: 123800, member: 5928"] *Deleted old message (no double post :P)* Hm, ok thanks. But wouldn't the variable have to be a real? EDIT: Here's my current trigger: [code]function Trig_Red_Spawn_2_Conditions takes nothing returns boolean ????if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then ????????return false ????endif ????return true endfunction function Trig_Red_Spawn_2_Func004002 takes nothing returns nothing ????call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetPlayerStartLocationLoc(Player(0)) ) endfunction function Trig_Red_Spawn_2_Actions takes nothing returns nothing ????call CreateNUnitsAtLocFacingLocBJ( 6, 'uaco', Player(11), GetRectCenter(gg_rct_Player_1_Spawn), GetPlayerStartLocationLoc(Player(0)) ) ????call CreateNUnitsAtLocFacingLocBJ( 6, 'ugho', Player(11), GetRectCenter(gg_rct_Player_1_Spawn), GetPlayerStartLocationLoc(Player(0)) ) ????call ForGroupBJ( GetUnitsInRectAll(gg_rct_Player_1_Spawn), function Trig_Red_Spawn_2_Func004002 ) endfunction //=========================================================================== function InitTrig_Red_Spawn_2 takes nothing returns nothing ????set gg_trg_Red_Spawn_2 = CreateTrigger(??) ????[b]call TriggerRegisterTimerEventSingle( gg_trg_Red_Spawn_2, 480.00 )[/b] ????call TriggerAddCondition( gg_trg_Red_Spawn_2, Condition( function Trig_Red_Spawn_2_Conditions ) ) ????call TriggerAddAction( gg_trg_Red_Spawn_2, function Trig_Red_Spawn_2_Actions ) endfunction[/code] Now I realize that the bolded part is where I have to implement your text. (Btw, converted this from GUI) But I need to set the variable. How do I do that? (Sorry, kinda new at JASS) EDIT2: Bold didn't work. But you can see where I tried :P [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Variable Help-Elapsed Game Time
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top