Staredit Network

Staredit Network -> UMS Assistance -> Unity Creator-on spot
Report, edit, etc...Posted by Kroxigor on 2005-04-01 at 14:34:26
helpsmilie.gif To make a long story short, I'm having trouble spawning units where another unit is smile.gif.
Basically, i want to be able to create a trigger just like in the game "evolves" so that a unit(s) in my rpg can be created not only at a certain location, but at where an actual unit is. blushing.gif

EX) i repeat myself, just like the creatures spawning right beside the Science vessel in Evolves.

If anyone could be kind to help me fix this problem i thank you very much. smile.gif
Report, edit, etc...Posted by SA_Max71 on 2005-04-01 at 15:31:59
Requirements:
  • 1 location per player: spawn unit.
  • You need to have a unit that is unique to the map. In other words, you need exactly 1 unit that only appears on the map at any given time. If you don't, this system has a very good chance that it will mess up.

Optional Requirements (that will help the system):
  • Hypertriggers. (NOTE: Your Hypertriggers MUST be owned by a player that isn't using any waits, except for the Hypertriggers, or they must be at the bottom of the list for a player.)


Here is the first trigger:



Trigger
Description:
This trigger will center the location "spawn unit" on the unique unit.
Conditions:
¤ always
Actions:
¤ center location "spawn unit" on (say,) Science Vessel
¤ preserve trigger


Here is the second trigger:



Trigger
Description:
this trigger will create the unit at the location called "spawn unit"
Players:
¤ the same players in the trigger above
Conditions:
¤ always
Actions:
¤ create X amount of units for the current player at location "spawn unit"
¤ wait X amount of seconds
¤ preserve trigger


Report, edit, etc...Posted by LegacyWeapon on 2005-04-01 at 16:00:04
Attached File zergling.scx ( 23.91k ) Number of downloads: 12


Here is a nice example of using the trigger "move location"

We have tutorials for everything!
http://www.staredit.net/index.php?tutorial=57

You just move the location onto the "spawner" and spawn at that location.

SA, I know you answered the question but I don't like to just give people triggers. I want to help them learn.
Report, edit, etc...Posted by Kroxigor on 2005-04-01 at 20:08:04
wow thanks alot guys biggrin.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-04-02 at 13:29:09
SA_Max71: what a waist of triggers. . .
2 triggers and one location per player VS one trigger and one location total.

This may be hard to belive but you don't have to have a seperate trigger to center the location and to create the unit. Also even more hard to belive is that you don't need a location for every player.

This is how i would do it with one trigger.
Trigger
Players:
¤ All Players you want to have units spawn for.
Conditions:
¤ Current player commands at least one 'Spawn Unit'
Actions:
¤ Move location 'Spawn Point' on 'Spawn Unit' owned by 'current player'
¤ Create one dude for current player at 'Spawn Point"
¤ Preserve Trigger
Report, edit, etc...Posted by SkiLLz on 2005-04-03 at 11:39:49
I guess I'm too late... cry.gif
Next Page (1)