Need help with a spell.

msnkiller

New Member
Reaction score
0
Hi guys,

I am trying to make my own rpg map. Just for fun.

And now I want to make a passive spell like this:

A passive effect get triggered(like critical strike)

The effects are:
+100% attack speed
+100% damage

This is only for 5 seconds then they need to get removed.
How can I make this? I am only using the basic of World editor. Is it possible to make these spells with that?

Thanks in advance,

Msnkiller
 

Smitty

Member
Reaction score
20
Of course it's possible. I only have the basic editor, and no newgen or any of this new fangled stuff. We make maps the way god intended ;) Ho hum. Right; first things first; when you say 'passive ability which is triggered, what exactly is the triggering event? A unit attacking? Being attacked? Taking damage?
 

TzalDadok

New Member
Reaction score
2
I guess he wants a passive ability that has a chance on each attack to increase attack speed and damage for 5 seconds.

First you need to create all three abilities.
-One passive ability that does nothing.
-One based of Endurance Aura, just with Attack Rate Bonus.
-One based of Command Aura, with attack damage increase 1.0

After that you need the trigger.

Trigger:
  • Test 1
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to "Your unit type"
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of "Passive ability doing nothing" for (Attacking unit)) Equal to 1
        • Then - Actions
          • Set YOURABILITY_CHANCE = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • YOURABILITY_CHANCE Less than or equal to 10
            • Then - Actions
              • Unit - Add "Spell based of Endurance Aura" to (Attacking unit)
              • Unit - Add "Spell based of Command Aura" to (Attacking unit)
              • Countdown Timer - Start YOURABILITY_TIMER as a One-shot timer that will expire in 5.00 seconds
              • Set YOURABILITY_UNIT = (Attacking unit)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of "Passive ability doing nothing" for (Attacking unit)) Equal to 2
            • Then - Actions
              • Set YOURABILITY_CHANCE = (Random integer number between 1 and 100)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • YOURABILITY_CHANCE Less than or equal to 20
                • Then - Actions
                  • Unit - "Spell based of Endurance Aura" to (Attacking unit)
                  • Unit - "Spell based of Command Aura" to (Attacking unit)
                  • Countdown Timer - Start YOURABILITY_TIMER as a One-shot timer that will expire in 5.00 seconds
                  • Set YOURABILITY_UNIT = (Attacking unit)
                • Else - Actions
            • Else - Actions


Trigger:
  • Test 2
    • Events
      • Time - YOURABILITY_TIMER expires
    • Conditions
    • Actions
      • Unit - Remove "Spell based of Endurance Aura" from YOURABILITY_UNIT
      • Unit - Remove "Spell based of Command Aura" from YOURABILITY_UNIT


I'm Noob at this, but just trying to help :p
I didn't test that so is surely wrong somewhere.
 

Smitty

Member
Reaction score
20
There's a few issues with that.
You need to add abilities like that inside a spellbook, and disable it. That way you don't have the icons for the abilities showing up in the UI.
You also don't need to save the random number as a variable. Work the trigger so you only have to refer to it once; ie. If (random number between 1 and 10 is less than or equal to level of (ability) for the unit). That way your trigger is just... More elegant. And probably slightly more efficient too.
Also, the event 'a unit is attacked' is really easy to abuse. Read the orb of lightning abuse tutorial if you want to do this properly.
Are there any castable spells that give % damage? I can't think of any off the top of my head, but if there are, then you could make the whole thing a lot simpler.
 

Smitty

Member
Reaction score
20
In that case, don't add the spells. Use a dummy caster with two spell, one based off bloodlust, and one based off cripple with a negative attack speed penalty. Then order the dummy to cast both spells on the unit. Give each a duration of 5 seconds and it's all good :)
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Cripple can increase %attack speed AND add %damage at the same time.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top