• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

half random metamorph (enter to more info)

Status
Not open for further replies.
Level 9
Joined
Jul 26, 2005
Messages
553
i jest wonna know how do to a 3 lvls spell that make you metamorph for 60 unit to one out of to random units like this:

lvl 1-75% unit one and 25% unit two
lvl 2-50% unit one and 50% unit two
lvl 3-25% unit one and 75% unit two

the idea is that unit one is weaker then normal form and unit two is stronger then normal form.
make me able to modify the two random units and the original unit easy plz...i can handle minor trigger use but not havey stuff...make it as simple as you can...for my sample make base unit be paladin (if you need a base unit to get it work) unit one a footman and unit two the blue demon (arcimond or something like that)
 
Level 1
Joined
Jul 26, 2005
Messages
5
What you're trying to do is quite simple, just do this: make two dummy spells with no icon, one for unit 1 and the other for unit 2, then do:
EVENTS:
Unit starts the effect of an ability
CONDITIONS:
Ability being cast equal to "YOUR ABILITY"
ACTIONS:
Set Variable - "IntegerVariable" = Random number between 1 and 100.
Set Variable - "CastingUnit" = Casting unit
If/Then/Else do multiple actions:
Conditions:
Level of "YOUR ABILITY" for CastingUnit EQUAL TO 1
"IntegerVariable" Less or equal to 75
Then Actions:
Add "Dummy Ability 1" to CastingUnit
Order CastingUnit to Cast "dummy ablity 1"
Wait "time of 'Dummy ability 1'"
Remove "Dummy ability 1" for CastingUnit
Else Actions:
Add "Dummy ability 2" to CastingUnit
Order CastingUnit to cast "dummy ability 2"
Wait "time of 'Dummy ability 2'"
Remove "Dummy ability 2" for CastingUnit
If/Then/Else do multiple actions:
Conditions:
Level of "YOUR ABILITY" for CastingUnit EQUAL TO 2
"IntegerVariable" Less or equal to 50
Then Actions:
Add "Dummy Ability 1" to CastingUnit
Order CastingUnit to Cast "dummy ablity 1"
Wait "time of 'Dummy ability 1'"
Remove "Dummy ability 1" for CastingUnit
Else Actions:
Add "Dummy ability 2" to CastingUnit
Order CastingUnit to cast "dummy ability 2"
Wait "time of 'Dummy ability 2'"
Remove "Dummy ability 2" for CastingUnit
If/Then/Else do multiple actions:
Conditions:
Level of "YOUR ABILITY" for CastingUnit EQUAL TO 3
"IntegerVariable" Less or equal to 25
Then Actions:
Add "Dummy Ability 1" to CastingUnit
Order CastingUnit to Cast "dummy ablity 1"
Wait "time of 'Dummy ability 1'"
Remove "Dummy ability 1" for CastingUnit
Else Actions:
Add "Dummy ability 2" to CastingUnit
Order CastingUnit to cast "dummy ability 2"
Wait "time of 'Dummy ability 2'"
Remove "Dummy ability 2" for CastingUnit
------------------------------------------------------
Set Variable - "CastingUnit" = NO UNIT
Set Variable - "IntegerVariable" = 0

Hope this idea helps you :D, ah i was forgeting, i recomend you use as base ability demon hunter's metamorphosis because it's timed and you can handle it without any trigers but you have to set on the trigger -WAIT "time of dummy ability 1 or 2"- the same time that your ability lasts.
 
Status
Not open for further replies.
Top