Abilities Chance to do Effect

L

LedZepplin

Guest
First off hey all, and how do you make an ability have a chance for an effect. Such as when a unit attacks has a chance to lets say...cast reign of fire? = )
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Code:
Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Random integer number between 1 and 100) Less than or equal to 15
        Then - Actions
            Unit - Create 1 caster (Caster System) for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing (270.0) degrees
            Unit - Order (Last created unit) to Neutral Pit Lord - Rain Of Fire (Attacking Unit)        
        Else - Actions
             Do Nothing
 
L

LedZepplin

Guest
Oh man, im so dumb. I should have got that without asking.
 

xPheRe

New Member
Reaction score
43
Use a custom Orb of Lightning ability.
Set the value for every listed field:
Data - Chance to hit Heros %
Data - Chance to hit Units %
Data - Chance to hit Summons %
Data - Damage bonus
Data - Effect ability => This is the ability that will be cast (with chance)
Data - Enable attack index => 0 to not modify attack indexes

Stats - Item ability => false

Then you only need to add this ability to your unit.

Don't make triggers for an ability that can be done by customizing another pre-existent one...
 
L

LedZepplin

Guest
Ok thanks that makes things easier just finished a bunch of triggers :banghead: :)
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Anything.

The only problem with Orb of Lightning is that you can't use other orb effects.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top