• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Roleplaying Triggers?

Status
Not open for further replies.
Level 8
Joined
Jul 9, 2004
Messages
405
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
 
Level 3
Joined
Oct 9, 2004
Messages
26
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.
Top