Staredit Network

Staredit Network -> UMS Assistance -> Trigger set up
Report, edit, etc...Posted by flipmonkey on 2006-03-02 at 15:47:33
I just thought of this during school and i thought it might help out in my new map. I cant test the trigger or anything because one thing im still in school and the other thing is, I have a tennis game which wont end till around 7:00pm my time.

So here is what i would like to do:


A player creates a terran marine at a barracks and then the marine is moved to location "Cast Active"
Trigger
Conditions:
¤ Current player brings 1 Terran Marine at location "Cast Active"
¤ Current player commands 1 "Hero" (Say like a marine)
Actions:
¤ Wait 5 milliseconds
¤ Kill terran marine at "Cast Active"
¤ Preserve trigger


Trigger
Conditions:
¤ Current player bring 1 Terran Marine at location "Cast Active"
¤ Current player commands 1 "Hero"
¤ Foe bring at least 1 "Hero"
Actions:
¤ Center location "Freeze 1" on "Hero" Owned by Foe at "anywhere"
¤ Center location "Freeze 2" on "Hero" Owned by Foe at "anywhere"
¤ Move Hero owned by Foe at location "freeze 1" to "freeze 2"
¤ Preserve Trigger


Im just making sure if thise works because i cant test it yet intill i get home. Also as i look at this i think i may see some flaws. If i set the player to Foe, will the trigger active for all Foe's or will it go for just the Hero owned by the player?

Well ill come back after tennis.
Report, edit, etc...Posted by EcHo on 2006-03-02 at 18:00:25
Change foe to current player and combine the triggers together like
and put the triggers together
Report, edit, etc...Posted by flipmonkey on 2006-03-02 at 22:01:00
i need the freezing trigger to be active for 5 seconds, it wont work if i put the triggers to gether, or are u saying put the condtions together.

Another thing, my map is 3 human vs 3 human plus 1 computer, i dont want the trigger to work against an allied unit, just the enemy unit.
Report, edit, etc...Posted by A_of_s_t on 2006-03-02 at 23:10:27
I don't get how this freezes units...
Report, edit, etc...Posted by Rantent on 2006-03-03 at 01:21:35
It would only move one enemy. (Why do the enemies and the hero both have the same name?)
To REALLY freeze the units, just make a location thats outside of the map description, and just move all the units inside the freeze area to that location, for however long you want. wink.gif
Report, edit, etc...Posted by Noober on 2006-03-03 at 15:32:00
Current player brings at least 1 marine to Cast active.
====
Center location Freeze 1 on hero owned by whoever at anywhere.
Move all any unit for whoever at Freeze 1 to Freeze 2.
Set switch 1.
Preserve.

Switch 1 is set.
====
Wait 5000 ms.
Kill all marine for current player at cast active.
Clear switch 1.
Preserve.

Have freeze 2 be unmoveable terrain (water, cliff, null, outside of map).
You need hyper triggers for this to work.
Report, edit, etc...Posted by flipmonkey on 2006-03-03 at 16:09:43
It wont really make the enemy freeze. It will just make the enemy unmoveable for 5 seconds will another player attacks it.

Player 1 acitves the spell
The foe becomes unable to move
Player one attack foe
Foe becomes free after 5 seconds
Report, edit, etc...Posted by A_of_s_t on 2006-03-03 at 19:27:31
Oooo... I get what u meant, thx to Rantent (Im sorry for Apoc stealing ur map) and Noober. You guys should make a tutorial., wink.gif
Report, edit, etc...Posted by flipmonkey on 2006-03-03 at 22:37:49
Basicly the enemy is paralzye. Anyways im just wounder if the trigger will work for 1 enemy that comes close to the player.
Report, edit, etc...Posted by Noober on 2006-03-04 at 10:18:39
Then do this:

Current player brings at least 1 marine to Cast active.
====
Center location Freeze 1 on hero owned by you at anywhere.
Move 1 any unit for enemy at Freeze 1 to Freeze 2.
Set switch 1.
Preserve.

Switch 1 is set.
====
Wait 5000 ms.
Kill all marine for current player at cast active.
Clear switch 1.
Preserve.

If you don't want to use switches, use a counter instead.
Make freeze 1 as big as close the enemy needs to be in order to freeze it.
Keep freeze 2 on unwalkeable terrain.
You still need hyper triggers.
Report, edit, etc...Posted by flipmonkey on 2006-03-05 at 16:55:29
Why would i center the location on my own hero? I don't want the enemy to follow my as i move or flee away. I want the enemy to not be able to move for a certain amount of time weather or not i flee.
Report, edit, etc...Posted by Noober on 2006-03-05 at 18:04:36
Ok then, do this.

Always.
====
Center location Hero on hero owned by you at anywhere.
Preserve.

Current player brings at least 1 marine to Cast active.
====
Center location Freeze 1 on unit owned by enemy at anywhere.
Preserve.

Current player brings exactly 0 marine to Cast active.
====
Center location Freeze 1 somewhere else...
Preserve.

Enemy brings at least 1 any unit to Hero.
====
Move 1 any unit for enemy at Freeze 1 to Freeze 2.
Set switch 1.
Preserve.

Switch 1 is set.
====
Wait 5000 ms.
Kill all marine for current player at cast active.
Preserve.


This will allow you to select the spell whenever you want, and it will come into effect whenever an enemy comes into range, last 5 seconds, and end. I think it should work...

However, if you want the spell to last 5 seconds as soon as you select it, do something else...
Report, edit, etc...Posted by A_of_s_t on 2006-03-05 at 22:40:16
Noober, make a censored.gif tutorial, will yah? Ur very good at it.
Next Page (1)