• 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.

Help with levels

Status
Not open for further replies.
Level 1
Joined
Sep 23, 2005
Messages
2
Okay...
I know that there are a some posts in here already that revolve around levels but my question is a bit different.

I'm making a campaign, and in this I want to have a couple of heroes. This in it self is not unusual, but the thing is: I don't want them to have the same max level. I need one hero whose max level is 5 and another whose max level is 10. This in the same map...

So my question is this: HOW?!?!?

I know the thing about going into Advanced and Gameplay Contrasts and all that... But that doesn’t help me much in this...

Please help me, by sending a mail, or answering here if you know the answer...

Cheers
Mentos
 
Level 6
Joined
Sep 17, 2005
Messages
276
hm... u need a trigger for that like:

Code:
EVENT:

Unit - A unit Gains a level

CONDITION:

ACTIONS:

-------- Variable LevelOfHeroes is integer array with size 5 (for example for 5 heroes u have) --------
-------- Here i setted the var to the levels of all heroes --------

For each (Integer A) from 1 to 5, do (Actions)
    Loop - Actions
        Set LevelOfHeroes[(Integer A)] = (Hero level of (Triggering unit))

-------- if Level reached then stop xp gain --------
-------- HERO 1 max level 5 --------

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        LevelOfHeroes[1] Greater than or equal to 5
    Then - Actions
        Hero - Disable experience gain for (Triggering unit)
    Else - Actions

-------- HERO 2 max level 10 --------

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        LevelOfHeroes[2] Greater than or equal to 10
    Then - Actions
        Hero - Disable experience gain for (Triggering unit)
    Else - Actions

-------- and so on --------

So far i didnt use the hero disable xp function so you have to test if that works. it was just an idea of me.... :)
 
Level 1
Joined
Sep 23, 2005
Messages
2
Hey...

Thanks for the reply.
I'll get to trying it out, but never was much good with the triggers :?
Normally I got a friend who does those...

But, as I already said, thank you.

Cheers
Mentos
 
Status
Not open for further replies.
Top