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

Spell

Status
Not open for further replies.
Level 4
Joined
Nov 21, 2004
Messages
47
One question if i made a spell and i want to post it how would i do that???? plz help if you want to know what they are they are
-Grow tree withch grows a tree
-Restock Mine adds gold to a mine
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
For the second one, you might need a spell which targets only goldmine. In order to do so, you can use let's say Chain Lightning which targets even invulnerable units, does no damage and has only 1 target. Now, let's go to the triggers.

Trigger

Event - an unit begins casting an ability
Conditions - Ability being Cast equal to (Yourability)
Actions - If (Unit Type of (Target Unit of Ability being Cast) not equal to Goldmine) then do actions
-> Order (Casting Unit) to Stop
-> Play (Casting Unit)'s Stand Animation
-> Game - AutoTimed text to (Player Matching Condition (Matching Player) is equal to (Owner of (Casting Unit))): Must target Goldmine

Trigger2

Event - an unit starts the effect of an ability
Conditions - Ability being Cast equal to (YourAbility)
Actions - Neutral Building - Add Gold to Gold Mine (Add x gold to (Target Unit of Ability being Cast))

That should do it.

For the first one, I don't actually get what you want? Create a tree from nothing? If so, try Darky's.
 
Status
Not open for further replies.
Top