• 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.

[Trigger] Making mers follow

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
How do i go about making mercs follow there purchaser.

ALso how would i make it so a summoned unit follows its caster aswell

Thanks...
 
Level 10
Joined
Apr 3, 2006
Messages
535
point taken. Im trying to achieve two things:

Make a purchased unit, follow its buyer - the purchased unit will be a computer unit.
Make summoned units unselectable(locust) and to follow there master.
 
Level 3
Joined
Dec 22, 2007
Messages
35
I don't have a world editor on this comp and I doubt giving you JASS will help since you wouldn't be asking this question if you knew JASS, so I'm going to give you a rough sketch of the GUI triggers, I'm not quite sure of the exact text though:

Event: Unit sells a unit

Action: Unit - Issue Order (manipulated unit) to right-click (buying unit)

If you want them to continuously follow them, then you will need to make a timer that goes off every x seconds, as I don't recall there being a "follow" string command. However, depending on the AI and what you want exactly, this may just work fine alone.




For the summoning event, in order to make it clean, I would recommend JASS, but since you didn't really describe exactly what you want, here's the idea

Event: Unit casts an ability

Boolean: Ability equal to whatever ability

Action: Unit Group - Pick Every Unit in (entire playable area) equal to (the summoning unit) owned by ( Player who owns triggeringUnit ) and order (picked unit) to follow (triggeringUnit)



You can also add the ability locust here in the action, or just give the units locust in the object editor (recommended). Note that these triggers are really ugly because you're still being very vague!!!
 
Level 10
Joined
Apr 3, 2006
Messages
535
thanks for the reply, i now have a good idea of how to go about doing this, i to am not at a computer with world editor, so i shall try these out later and post if i get any troubles. Thanks again for the help

Edit: ive done the buying trigger and it works fine, not sure about the summon ability one tho i may have to leave it as it seems quite hard to do in GUI
 
Last edited:
Status
Not open for further replies.
Top