Lumograph090
New Member
- Reaction score
- 22
I'm currently working on a hero called Lady Luck, all spells and abilities will be random. They will cause random damage, random buffs/debuffs, affects, etc.
I'm working on one of my spells and I'm just wondering if its possible to use multiple in the same ability.
For example this spell is called "Roll of the Dice"
Here is what I have so far in my Trigger...
Now as far as causing random damage /w a random damage type is easy. But what I'm not quite able to grasp is how to in a single Trigger have a random chance to cause the random damage as well as choose which damage type will be used... Normal, Siege, Hero, Pierce, Magic, Chaos.
Any help would be appreciated =)
I'm working on one of my spells and I'm just wondering if its possible to use multiple
Trigger:
- (Random integer number between 1 and 6) Equal to (==) X
For example this spell is called "Roll of the Dice"
Lady Luck tries her hand at damaging a single target. Rolling her dice and causing damage based on the roll. Damage caused and damage type is based on the outcome of the roll.
Rank 1 - Causes 50 - 125 damage.
Rank 2 - Causes 75 - 225 damage.
Rank 3 - Causes 100 - 325 damage.
Rank 4 - Causes 125 - 425 damage.
Rank 5 - Causes 150 - 525 damage.
Damage type inflicted can be Siege, Normal, Pierce, Magic, Hero, and Chaos.
Here is what I have so far in my Trigger...
Trigger:
- Roll of the Dice Rank 1
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) Roll of the Dice
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 1
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Normal and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 2
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Pierce and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 3
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Siege and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 4
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Magic and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 5
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Chaos and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 6) Equal to (==) 6
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 50.00 and 125.00) damage of attack type Hero and damage type Shadow Strike
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Now as far as causing random damage /w a random damage type is easy. But what I'm not quite able to grasp is how to in a single Trigger have a random chance to cause the random damage as well as choose which damage type will be used... Normal, Siege, Hero, Pierce, Magic, Chaos.
Any help would be appreciated =)