Dummy unit problem

WERE-Wolf

New Member
Reaction score
0
open up trigger editor and actions, press s and it should show up: set varrible or something like that
make a point varrible called w/e and later remove the leak in custom scripts

ok.... and my question is : how?

iso steps. is there any tutorial on this?
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Go to Actions, Set Variable. There is something like this: Variable = Value.
Press Variable. A new window appears. Press "Edit Variables". There is a green "X". Press that; it created a new variable. A new window appears. Type any name for the variable you want, like Point1. Then, from the field below the name field, scroll down to "Point". Press ok. Again press Ok. Again press Ok :))) Now, go to Value. Press it. "Tick" the "Function" and choose from that second field the "Unit - Position of (Entering unit))". Press Ok. Press Ok. Variable is done.
 

WERE-Wolf

New Member
Reaction score
0
Go to Actions
no problem
Set Variable.
do you mean click on the yellow X? if not, i cant see anything called set variables.
There is something like this: Variable = Value.
What? i dont see it. Mind telling me where is that ''set variable'' thing?


Press Variable. A new window appears. Press "Edit Variables". There is a green "X". Press that; it created a new variable. A new window appears. Type any name for the variable you want, like Point1. Then, from the field below the name field, scroll down to "Point". Press ok. Again press Ok. Again press Ok :)))
Done that, worked.

Now, go to Value. Press it. "Tick" the "Function" and choose from that second field the "Unit - Position of (Entering unit))". Press Ok. Press Ok. Variable is done.
Here's pretty much where you lost me.

By ''go to value'', would you mind telling me where it is? i know i osund retarded but i just fail to see it in my screen. Heres a screenshot:

2cp2gcz.jpg


Wow.... this sound so lame, i cant even understand what you guys are saying even if its perfectly explained -_-
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
You did it! Now press Ok on this window and variable is done!
 

Sim

Forum Administrator
Staff member
Reaction score
534
Lets say a trigger forces him to cast polymorph everytime an unit cross a certain region, when theres like 10 units that crosses at the same time, only 1-2 will get polymorph... any ideas?

You can do 2 things:

1. Create 1 dummy for every unit that enters (refer to the recent posts).

2. Create 1 dummy in all and refer to post #7.
 

Vnbear

Active Member
Reaction score
12
ok but how can i include it in a trigger?

Actions:
-Set Variable.

Change variable to point1
and the right hand side to the point that you want.

Code:
    Set Point1=<position of entering unit>
    Create 1 <your dummy unit> at point1
    Add <Polymorph> to <last created unit>
    Order <last created unit> to <Human-Sorceress: Polymorph> <entering unit>.
    Add Generic expiration timer of 2 seconds to <last created unit.>
    call RemoveLocation(udg_point1)

The last line which is "call RemoveLocation(udg_point1)" is a custom script (it is at the actions). You have to TYPE in everything from the word call Remove...point1)
 
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