• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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