• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Adding resources with a spell ?

Status
Not open for further replies.
Level 1
Joined
Aug 11, 2009
Messages
3
Hi,
I'd like to know how to give to one of my spell the ability to add an X number of wood (Add the number to the target, not the user).


:fp: It is very important for my map so... I'd like to have a fast answer.


Bye
 
Level 6
Joined
Mar 22, 2009
Messages
276
first you must have a dummy ability with a target.
then hola..

  • ADD resources through ability
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to YOURSKILL
    • Actions
      • Player - Add X to (Owner of (Target unit of ability being cast)) Current lumber
try it :thumbs_up:
 
Level 11
Joined
Jun 21, 2007
Messages
505
Dummy ability with no target means a common ability, like Roar or Divine Shield (abilities that require only to be clicked to be activated), but it's edited in that special way, that it does absolutely nothing.
Then a trigger is triggered when that ability is cast, which adds lumber to the owner of the unit, who is casting the dummy ability.
 
Level 6
Joined
Mar 22, 2009
Messages
276
Dummy ability with no target means a common ability, like Roar or Divine Shield (abilities that require only to be clicked to be activated), but it's edited in that special way, that it does absolutely nothing.
Then a trigger is triggered when that ability is cast, which adds lumber to the owner of the unit, who is casting the dummy ability.

You're some sort right but he's asking for an ability which adds resources to the owner of the unit targeted. it means targeted spells must do like storm bolt and any others. :wink:
 
Status
Not open for further replies.
Top