For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Dark_slayer18
Member
Posts: 65
Joined: December 22nd, 2007, 12:49 am

Post by Dark_slayer18 »

Last edited by Dark_slayer18 on November 12th, 2014, 10:27 pm, edited 1 time in total.
User avatar
Aero
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

Post by Aero »

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
?
User avatar
Bartimaeus
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

Post by Bartimaeus »

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? :P Yeah...anyways, you'll have to create a huge amount of integers for the random thingy.
Dark_slayer18
Member
Posts: 65
Joined: December 22nd, 2007, 12:49 am

Post by Dark_slayer18 »

Last edited by Dark_slayer18 on November 12th, 2014, 10:27 pm, edited 1 time in total.
User avatar
Aero
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

Post by Aero »

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))
This is assuming level 300 is the final level and you will have to modify it a bit so that level 300 works (Currently adds 300-1500 stats)...but this is the general idea.