Trying to make a defend/divine shield spell

  • Thread starter Thread starter spelltrouble
  • Start date Start date
S

spelltrouble

Guest
Im trying to make a item based spell using Defend and it does absoultely NOTHING except block the attack, no dmg reduc or ne thing just the block and the divine shield animation. Now what im trying to do is pretty simple.

Holy Shield Lightforge Set
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Shield-Lightforge Set (item)
Actions
Unit - Make (Triggering unit) Invulnerable
Wait 5.00 game-time seconds
Unit - Make (Triggering unit) Vulnerable

But it wont work!

The defend is a item ability and is on a armor piece item.
 
oh

oh i just saw the main problem >.<

cant base a ability is being casted off when you deflect.

can anyone think of or make a better spell for this.

i just want a % for each time someone attacks you, you become invulnerable for # seconds.
 
You could try something like this: (I don't have the editor open)
Code:
Events
    Unit is attacked
Conditions
    Unit has [B]Ability[/B]
Actions
    If - Conditions
        (Random number between 1 and 100) is Greater than [B]percent[/B]
    Then - Actions
        Make (Attacked unit) invulnerable
        Wait 5.00 seconds
        Make (Attacked unit) vulnerable
 
I beleave that if you have it be an item, you sould catch the event "Unit - A unit Uses an item", instead.
 
hm

i dont see anothing relatively close to "a unit has ability"
lemme look someore :P im a nub to triggering
 
> I dont see anothing relatively close to "a unit has ability"

Integer comparison, Unit - level of ability for unit.
With "not equal to 0".
 
235234

oo man i still dont understand those things much i read tuts and getn othin outta it... anyway....

if i want a 5% chance for it to happen what would i set greater than percent?
 
213asf

>.< and also i never COULD find a percent all there is is random percent if i could even figure that out too i could finish a bunch of my spells.
 
546fgh

this way?

(Random integer number between 1 and 100) Greater than 90

10%
 
(Random number between 1 and 100) is less than or equal to 5


Also, "spelltrouble" is vastly superior to random characters.
Ever considered registering?
 
2323fds

yeah ill register here in a bit soon as i pull myself away to do it

ok the spell works

Holy Shield Lightforge Set
Events
Unit - A unit Is attacked
Conditions
(Level of Holy Shield-Lightforge Set (item) for (Triggering unit)) Not equal to 0
(Random integer number between 1 and 100) Greater than 0
Actions
Unit - Make (Casting unit) Invulnerable
Wait 5.00 game-time seconds
Unit - Make (Casting unit) Vulnerable
Unfortunetely theres no way i can make my hero have the divine shield look on him because i cant do cast holy shield cuz it makes trigger not work but o well. ;/ guess everything cant be perfect.

thanks bunch for the help... :) unless u know how i could add the animation, then i can thank u even more
 
Look at the Special Effect triggers. You can add a divine shield effect fairly easily.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top