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

Help with my spells?!

Status
Not open for further replies.
Level 5
Joined
May 2, 2007
Messages
141
Im making a Naruto Map.... I know I know... Not Another One?!?

But this ones gonna be better than most *cough cough* (No disrespect to anyone who made the other ones, some of them are bloody good!)

Im thinking of making all the abilities (durations, damages ect) stat based.

Also I have THE BEST kawamiri system EVER!!! lol

Right... now to the bit where I ask for help...

1) I want an ability that auto activates once you get to 25%hp... not one you can cast yourself (I can do that) (Akai Chakra mode for Naruto / one Tailed Kyubi mode) or have a %chance of activating once you get to 25% hp?

Anyone know how I can do this?

-----Sharingan----
2) I want an ability that gives Sasuke/kakashi/Itachi a slow aura when they click the activate ability (based on immolation so I can drain mana/hp over time)

3) Can I put an ability in a spell book, then disable the book and have the unit cast it back when they get hit by the same ability?!
--OR--
4) Can I add abilities to a spell book via triggers? then remove them once X amount of time has passed?

Thanks for your help guys!

If you get an idea from any of these please credit me, a noob map maker with big ideas and basic knowledge of triggers....
 
Level 7
Joined
Jun 4, 2006
Messages
127
3/4> You can add the spellbook with the abilities, but you cannot add abilities to the spellbook..

2> Create an endurance aura with negatives
  • Heal Ability
    • Events
      • Unit - A unit is issued an order with no target
    • Conditions
      • (Level of (ability) for (Ordered Unit)) Greater than 0
    • Actions
      • If (All conditions are true) then do (Actions) else do (Else Actions
        • If - Conditions
          • (Issued Order) Equal to Order(immolation)
        • Then - Actions
          • [Your Actions]
        • Else - Actions
          • Do Nothing
      • If (All conditions are true) then do (Actions) else do (Else Actions
        • If - Conditions
          • (Issued Order) Equal to Order(unimmolation)
        • Then - Actions
          • [Your Actions]
        • Else - Actions
          • Do Nothing
 
1: For this one check if the unit has 25% hp or less with a periodic event. (not MUI)
2: this should work
  • Events
  • Unit - Start the effect of an ability
  • Conditions
  • Ability being cast equal to blablabla
  • Actions
  • set TempPoint=GetUnitPosition(TriggeringUnit)
  • Unit - Create Unit <some dummy unit> at TempPoint
  • Unit - order last created unit to <cast a temporary dummy buff>
  • Unit - Add <Slow aura> to Triggering Unit
  • Custom script - call RemoveLocation(udg_TempPoint)
Second trigger:
  • Events
  • A unit is issued an order with no target
  • Conditions
  • Issued order equal to "unimmolation"
  • Actions
  • Remove slow aura and custom buff here.
third trigger:
  • Events
  • Time - Every 0.20 seconds
  • Conditions
  • Actions
  • Custom script - set bj_wantDestroyGroup=true
  • Unit Group - Pick Every Units in Units with buff <Your buff here> and do actions
  • loop
  • Unit - Set Mana of picked unit to mana of picked unit - 1
  • If mana of picked unit equal to 0
  • then
  • cause the unit to turn off immolation, remove immolation buff and slow aura ability here.
  • else
the ability itself can be based of immolation but the mana drain must be done with triggers. this one is MUI, but it would still be easier in jass.

3:I dont really get what you mean by this one..

4:Look at my signature, it directs you to a spellbook tutorial which explains how to add spells to the spellbook.

Yes, the thread was empty when i posted.
 
Level 5
Joined
May 2, 2007
Messages
141
3:I dont really get what you mean by this one...

What I mean is, lets say my spell book has Strombolt in it, when the map starts I disable the spellbook via trigger.

Then someone hits me with the Stormbolt spell, and my unit hits him back with it... using the same power and using the same amount of mana as the opponent, if I cant do this then I'll just slap them with the Lvl1 or Lvl 3 version of the spell....
 
Level 5
Joined
May 2, 2007
Messages
141
For my 25% hp move, I based it off of Vegeta_SS's Transformation system.

But in the [If Conditions are True do Actions] Area I have something like
If percentage Life = 25 of units max life (im not at home, so I cant remember exactly)

It works, and you can only cast it once you get to 25% of your max hp... I hope it works in Multiplayer maps.... I can't see it not working with it...

Problem I have is, if you use it at full HP it still uses the mana... that, and I really wanna find a way to have it auto-cast once the unit gets to 25% of max hp and have it Multiplayer Friendly....
 
Level 7
Joined
Jun 4, 2006
Messages
127
I don't really much watch Naruto (Only in shipuuden and 1 - 70+ and 160 - 200+)
So what is the effect of the ability anyway?

This would be it, you said aura correct?
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Attacking Unit) has Kyuubi Buff Equal to True
    • (Percentage Life of (Attacked Unit)) Less than or Equal to 25
  • Actions
    • [Put actions]
 
Level 5
Joined
May 2, 2007
Messages
141
If you wanna see what I'm after go DL Vegeta_SS's transform system from the spell section. . page 14 i think.

I wanna do that, but auto cast at 25% hp, preferably, have a % chance to cast it once you get to 25% hp.

At the mo, I have it so you wont get the benifits of it until you activate it at 25%hp or less, but even with 100% hp using it still uses mana.
 
Level 5
Joined
May 2, 2007
Messages
141
@Diablo: Your spell book demo map was a big help! Thanks.

Now, is there any way to do this. . .

Lets say i get slaped by BREATH OF FIRE, I have already made an ability based on spell book called COPIED, I also have a DUMMY spell book called BLAH, it is disabled at the start of the map, but it contains COPIED BREATH OF FIRE and shares the ID of COPIED.

Now I wanna set it up so that I get hit by BREATH OF FIRE and add COPIED BREATH OF FIRE to the spell book COPIED. But how?
 
Status
Not open for further replies.
Top