Some basic question

DigimonArena

New Member
Reaction score
0
some really stupid question i beg you pardon

change map name

make hero go up to lvl 50

triggers for a leaderboards
 

hopy

Active Member
Reaction score
64
change map name

This can be done at the top of the World Editor, Scenario and look at 'Map Description', that has everything you need. :)

make hero go up to lvl 50
Again the top of the World Editor, press advanced and look for Gameplay Constants. In this list search for: 'Hero maximum level'. If you're unable to change the stats in this field press the little 'Use custom gameplay constants'.

triggers for a leaderboards
Isn't too hard, but can give a few problems every now and than...
This next trigger creates a Leaderboard and adds all none computer controled players to the leaderboard and it keeps track of that players lifes.
Trigger:
  • Leaderboard
    • Events
      • Dialog - A dialog button is clicked for Startthegamealready
    • Conditions
    • Actions
      • Set Leaderboard = (Last created leaderboard)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Not equal to Computer
            • Then - Actions
              • Set Lives[(Integer A)] = 10
              • Leaderboard - Add (Picked player) to Leaderboard with label (Name of (Picked player)) and value Lives[(Player number of (Picked player))]
            • Else - Actions
      • Leaderboard - Change the display style for (Picked player) in Leaderboard to Show the label, Show the value, and Show the icon
      • Leaderboard - Show (Last created leaderboard)
      • Game - Display to (All players) the text: (You now have a leaderboard)

- Leaderboard is a leaderboard variable (yes... awesome name).
- Lives[] is a intreger array.

Now what we need is something to update the lives when a hero dies.
Trigger:
  • Revive Hero Classic
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Lives[(Player number of (Owner of (Triggering unit)))] = (Lives[(Player number of (Owner of (Triggering unit)))] - 1)
      • Leaderboard - Change the value for (Owner of (Triggering unit)) in Leaderboard to Lives[(Player number of (Owner of (Triggering unit)))]

There we go, if a unit dies and it's a hero than Lives[] will be -1 and the leaderboard gets updated.

Hope it helped, let me know if you don't understand something or have any questions.
 

mylemonblue

You can change this now in User CP.
Reaction score
7
Map -> Options map name will be what you see when you open it in Warcraft 3 from the file list, the Save As is just what you will see in Windows/Mac and not ingame.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top