• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 =)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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

  • LVL Up System.w3x
    17.3 KB · Views: 37
Status
Not open for further replies.
Top