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

need help with some skills

Status
Not open for further replies.
Level 13
Joined
Jul 3, 2008
Messages
1,098
i need help with skill named cloak. i want to create 20 lvls of this skill with trigger. it will be something like wind walk but i want to drain mana points each second turned on but i want to drain less mana with greater lvl(lvl1-20 mana per second;lvl2-19 mana per second...etc) please help me....
 
Level 4
Joined
Jun 1, 2007
Messages
92
  • Untitled Trigger 002
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Wind Walk) Equal to True
            • Then - Actions
              • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - (20.00 - (Real((Level of Wind Walk for (Picked unit))))))
            • Else - Actions
Rough and easy way of doing it, just remove the group leaks later.
If you want the unit's wind walk state to be removed with 0 mana. then try this.
  • Untitled Trigger 002
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Wind Walk) Equal to True
            • Then - Actions
              • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - (20.00 - (Real((Level of Wind Walk for (Picked unit))))))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Mana of (Picked unit)) Equal to 0.00
                • Then - Actions
                  • Unit - Remove Wind Walk buff from (Picked unit)
                • Else - Actions
            • Else - Actions
 
Level 35
Joined
Dec 10, 2007
Messages
4,037
Actually, it can be done a lot easier. Go to gameplay constants-switch default constants off, search for Hero-Maximum level. Switch that to 20. Then go to abilities, configure the ability, and there's the mana drainage for each level, and you can manually ajust it.
 
Level 12
Joined
Mar 26, 2005
Messages
790
ehm, but if it should be SAME like cloak ability in SC (if attack you wil stil remain invisible) its better to use this

1.make ability based on DH's immolation, remove all needless stats, set mana draining, mana cost atd, set buff (like windwalk buff)

2.make two triggers

  • triger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Cloak
    • Actions
      • Unit - Add Ghost to UNIT X
and

  • triger 2
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • (UNIT X <gen> has buff Wind Walk) Equal to False
    • Actions
      • Unit - Remove Ghost from UNIT X <gen>
Cloak is name of ability based on immolation, Ghost is ability of undead shade-pernament invisible
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
if u want tofind out, wether the player has enough money or not, try to add this to your spell-Trigger:

  • Set integer1 = (Player X (Colour) Actual gold amount) //[Search for Player Property]
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • 'IF'-Bedingungen
      • integer1 <greater or equal to>XY
    • 'THEN'-Aktionen
      • // if integer1 is greater or equal to the amount XY, then he has enough money, if not the "Else-Action" will start, that means nothing
      • -------- Activate your spell --------
    • 'ELSE'-Aktionen
      • Do nothing
I hope this can help, btw you dont have to set "Do nothing".
Greetings Emm-A-
 
Status
Not open for further replies.
Top