#1
Spell Damage Dice
HiI am designing a spell which will damage enemy units from 100 (minimum damage) to 300 (maximum) damage. The problem is I don't know how to. My trigger skills are just bad but the rest is exceptional.
event: - your ability event
condition: - your condition
action: set "therandomnumber" = random real number beetween 1-100
if/then/else multiple functions:
if condition: "therandomnumber" smaller than 33
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 100
if/then/else multiple functions:
if condition: and:
"therandomnumber" greater than or equal to 33
"therandomnumber" smaller than 66
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 200
if/then/else multiple functions:
if condition: and:
"therandomnumber" greater than or equal to 66
"therandomnumber" smaller than or equal to 100
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 300
SophoHmmm, I'm abit confused, abit more details and easier please.
RaZoRset "therandomnumber" = random real number beetween 1-100
RaZoRif condition: "therandomnumber" smaller than 33
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 100
RaZoRif/then/else multiple functions:
if condition: and:
"therandomnumber" greater than or equal to 33
"therandomnumber" smaller than 66
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 200
if/then/else multiple functions:
if condition: and:
"therandomnumber" greater than or equal to 66
"therandomnumber" smaller than or equal to 100
if action: set taret unit of ability being cast' s life to life of taret unit of ability being cast - 300
Unit - A unit Begins casting an ability
(Ability being cast) Equal to Firebolt
Actions
Animation - Change (Target unit of ability being cast)'s vertex coloring to (100.00%, 25.00%, 25.00%) with 0.00% transparency
Wait 6.00 seconds
Animation - Change (Target unit of ability being cast)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparencyset "unitvariable" = targeted unit"
Animation - Change ("unitvariable")'s vertex coloring to (100.00%, 25.00%, 25.00%) with 0.00% transparency
Wait 6.00 seconds
Animation - Change ("unitvariable")'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency