∞
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with action where hero gain certain level
You want it so that when DG or Brown's hero levels up to 50, 100, 200 or 300 they permanently gain:
?50-250 to all stats
100-500 to all stats
200-1000 to all stats
300-5000 to all stats
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Help with action where hero gain certain level
Melee Initialization
Events
Unit - A unit owned by Player 1 (Red) Gains a level
Conditions
(Level of (Leveling Hero)) Equal to 50
Actions
Integer Comparison --> Level of Unit, Change Unit to --> Leveling Hero
Have fun.
And I don't understand the stats gaining part...if you want it to be random, you'll have to create an integer for each number.
(Edit) Oh, I think you already knew this part? Yeah...anyways, you'll have to create a huge amount of integers for the random thingy.
Events
Unit - A unit owned by Player 1 (Red) Gains a level
Conditions
(Level of (Leveling Hero)) Equal to 50
Actions
Integer Comparison --> Level of Unit, Change Unit to --> Leveling Hero
Have fun.
And I don't understand the stats gaining part...if you want it to be random, you'll have to create an integer for each number.
(Edit) Oh, I think you already knew this part? Yeah...anyways, you'll have to create a huge amount of integers for the random thingy.
-
- Member
- Posts: 65
- Joined: December 22nd, 2007, 12:49 am
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with action where hero gain certain level
Code: Select all
Hero Gain
Events
Unit - A unit owned by Player 11 (Dark Green) Gains a level
Unit - A unit owned by Player 12 (Brown) Gains a level
Conditions
((Hero level of (Triggering unit)) mod 50) Equal to 0
((Hero level of (Triggering unit)) Not equal to 150) and ((Hero level of (Triggering unit)) Not equal to 250)
Actions
Hero - Modify Strength of (Triggering unit): Add (Random integer number between (Hero level of (Triggering unit)) and ((Hero level of (Triggering unit)) x 5))
Hero - Modify Agility of (Triggering unit): Add (Random integer number between (Hero level of (Triggering unit)) and ((Hero level of (Triggering unit)) x 5))
Hero - Modify Intelligence of (Triggering unit): Add (Random integer number between (Hero level of (Triggering unit)) and ((Hero level of (Triggering unit)) x 5))