have problem with wait

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
When u select last created efect that bar just above it ther select speefect
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
In the actions menu searh for wait then select it then set it to 2 and put it between the set variable and destroy speEfect
 

008

New Member
Reaction score
0
my problem is that ... When you put wait function it's not working.It's not doing the rest of action.It stop. If I stop before the wait it will stop but not ( wake up ) because it's after the wait.
 

Argos

New Member
Reaction score
7
Code:
Unit - Move ([COLOR="Red"]Picked unit[/COLOR]) instantly to (Position of ([COLOR="Red"]Picked unit[/COLOR])), facing (Position of ([COLOR="Red"]Picked unit[/COLOR]))


That is correct????

Are you ordering a unit moves instantly to his own position facing himself? :nuts:
 

008

New Member
Reaction score
0
Code:
Unit - Move ([COLOR="Red"]Picked unit[/COLOR]) instantly to (Position of ([COLOR="Red"]Picked unit[/COLOR])), facing (Position of ([COLOR="Red"]Picked unit[/COLOR]))


That is correct????

Are you ordering a unit moves instantly to his own position facing himself? :nuts:

If i don't do this it will remember is order before the spell and don't go where i want after.

PS: if i do that it's all ok but it just destroy one effect

Code:
Actions
    Set groupe = (Units within 300.00 of (Position of (Triggering unit)))
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Picked unit) not equal to Paladin 0000 <gen>
                Then - Actions
                    special effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
                    Set aa = (Last created special effect)
                Then - Actions
                    Do nothing
    Wait 2.00 seconds
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            special effect - Destroy aa
            Unit - Move (Picked unit) instantly to (Position of (Picked unit)), facing (Position of (Picked unit))
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Can u plz post the trig in GUI tags i cant read GUI LIKe that
 

Argos

New Member
Reaction score
7
Code:
Actions
    Set groupe = (Units within 300.00 of (Position of (Triggering unit)))
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Picked unit) not equal to Paladin 0000 <gen>
                Then - Actions
                    special effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
                    [COLOR="Red"]Set aa = (Last created special effect)[/COLOR]
                Then - Actions
                    Do nothing
    Wait 2.00 seconds
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            [COLOR="Red"]special effect - Destroy aa[/COLOR]
            Unit - Move (Picked unit) instantly to (Position of (Picked unit)), facing (Position of (Picked unit))


"aa" is a fx variable Not array, so countinally is reemplace and only remember the last fx created

set "aa" as array, create new integer variable (aa_number), and add this actions:

Code:
Actions
    Set groupe = (Units within 300.00 of (Position of (Triggering unit)))
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Picked unit) not equal to Paladin 0000 <gen>
                Then - Actions
                    special effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
[COLOR="Green"]                    Set aa_number=aa_number+1
                    Set aa[aa_number]= (Last created special effect)[/COLOR]
                Then - Actions
                    Do nothing
    Wait 2.00 seconds
    Group unit - Pick every unit in groupe and do (Actions)
        Loop - Actions
            [COLOR="Green"]For each integer A from 1 to [aa_number] do actions
                      special effect - Destroy aa[integer A][/COLOR]
            Unit - Move (Picked unit) instantly to (Position of (Picked unit)), facing (Position of (Picked unit))
[COLOR="Green"]    Set aa_number=0[/COLOR]
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Why not create it in integer a and destroy it in another than to hav +1
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top