• 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] Trade like in range

Status
Not open for further replies.
Level 9
Joined
Jun 20, 2008
Messages
476
For my map i am trying to do a lil trade system (really simple one i thought)

What the trigger had to do whas when a trade boat comes in range of a trade dock that isnt owned by the owner of the trade boat the owner of the trade boat reveived 100 gold and the owner of the trading dock gets 50 gold

what my biggest problem is is the event i tryd unit comes in range but i had to select a unit or do a unit variable but i have to set tyhe variable to a unit of the type trade dock but without succes

so now i am wondering if its even possible in gui ?

+rep for helping me
 
Level 10
Joined
Oct 31, 2009
Messages
352
If the docks are all there before the game starts you can do this:

Create regions and place them on the docks in the terraine editor. Then use the "Unit - Unit Enters Region" event to do what you want.



If not you might be able to set up a periodic that checks if there are any boats within an X-radius of the dock and then set a boolean to the handle ID of the boat so it doesn't re-do the exchange.
 
Status
Not open for further replies.
Top