leveling system.

Status
Not open for further replies.
Level 4
Joined
Nov 24, 2010
Messages
70
can anyone teach me to make a leveling system by time?
all hero in the map will level up every 2 mins and also please teach me how to off experience gained from creeps. tyvm =)
 
The Event should be, after you have chose all corresponding heroes for your team
Red has chosen...
Blue has chosen....
Until all has completed choosing heroes, do this:
  • Disable EXP
    • Events
      • All Player Unit has chosen their respective heroes
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • Hero - Disable experience gain for (Picked unit)
            • Else - Actions
This trigger will disable EXP gain from creep

And this is for every 2 min, leveling up the heroes
  • Level Up
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • Hero - Enable experience gain for (Picked unit)
              • Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
              • Hero - Disable experience gain for (Picked unit)
            • Else - Actions
I've attached a test map, try it
Change the 5.00 to 120.00 seconds
 

Attachments

Status
Not open for further replies.
Back
Top