Roleplaying Triggers?

Status
Not open for further replies.
roleplay triggers? like when u click on a unit and it spawns one at your spawner?... or where theres a shop with units and u choose... there both easy...

Event: Unit is selected
Condition: owner of 'selected unit' equal to 'neutral passive'
Action: create 1 'unit type of "selected unit"' at location of spawner

or
Event: Unit gets purchase (something similar)
Condition: owner of 'selling unit' equal to neutral passive
Action: move 'sold unit' instantly to location of 'spawner'

i dont know if thats what u meant... but thats pretty much all u need, it should work for all of the units
 
Noobie.Mapmaker said:
No....
the one where you type spawn ## (unit) and a unit spawns under your spawner.

Well, we have to venture further than "entered chat string" triggers, and go to "entered chat string, then type what character place they are at"

For example:
Event: player types -spawn as a substring
Condition: entered chat string equal to substring (8,11) (the 8,11 means where the player types "grunt", as you can tell, -spawn takes up the first 7 characters)

action: create 1 grunt at position of "spawner"

Note: to get to the "substring" condition, select "string comparison", then go to the second part of the condition, then in the "function" drop down list select substring
 
Status
Not open for further replies.
Back
Top