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

Another resource (like gold and wood)

Status
Not open for further replies.
Level 3
Joined
Nov 5, 2010
Messages
28
Hi guys :)

How do you manage another resource in world edit (for ex: silver) with another way to mine this ressource (ex : every second while a peasant use "mine silver" on a rock, the player get +1 silver) ?

I hope that some will want to help me and they understand my bad english :)

I thought :

A peasant have a channel spell "Mine Silver"...

Event :
Every seconds of the game
Conditions :
An unit is casting "mine silver"
casting unit is a peasant
attacked (dont remember the real word) unit is Rock
Actions :
set variable : Silver[number of player of casting unit] = Silver[number of player of casting unit]+1


I dont know if its work but you have the idea :)
Its a good way ?
 
Level 3
Joined
Nov 5, 2010
Messages
28
Something like the wisp wood harvest ?
Yes :)

You need to detect units that start channeling and finish channeling. Every second you then add 1 for every unit in the group. Turn off the perodic trigger if group is empty (obviously).

I try, and how i can show my triggers ?
 
Status
Not open for further replies.
Top