Hello, I am trying to make an evolve type game. How do I make it so when you research something, the spawn changes to another unit and stops spawning the previous one?
If you dont understand, what I am talking about is putting a research into the main building, and when you research it the current unit spawning stops, and starts spawning the units you want. For example, you start with zerglings, then you research the upgrade and start spawning zealots
Have a Global variable with unit-type, set it's default value to Marine or whatever you want.
Have a trigger looping on forever spawning said unit-type.
Then have another trigger that is activated when an ability is used, in this time, your ability. Then just change the global variable unit-type to the unit you want to spawn instead.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, I am trying to make an evolve type game. How do I make it so when you research something, the spawn changes to another unit and stops spawning the previous one?
If you dont understand, what I am talking about is putting a research into the main building, and when you research it the current unit spawning stops, and starts spawning the units you want. For example, you start with zerglings, then you research the upgrade and start spawning zealots
@Darttagman: Go
change the behavior used to create the units with triggers, or use upgrades to change the field on the original behavior.
@Taintedwisp: Go
Can you narrow it down more to specific instructions, or atleast decently specific?
If you spawn them with triggers, you will have to stop trigger, then run the new trigger, if you use data, you can do as I said....
@Taintedwisp: Go
Get on skype please
Does anyone know how to do what i am asking with triggers?
@Darttagman: Go
Have a Global variable with unit-type, set it's default value to Marine or whatever you want. Have a trigger looping on forever spawning said unit-type.
Then have another trigger that is activated when an ability is used, in this time, your ability. Then just change the global variable unit-type to the unit you want to spawn instead.