Multiboard/Hero Dueling System

F

Fame.

Guest
How do i create a multiboard that shows the players kills/deaths and icons for their heroes picked?


Also


How do i start a dueling system where a time expires and all the heroes are moved to an arena where they fight in a team vs other team battle.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Event:
- Map Init
Conditions:
Actions:
Set Icons[1] = ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
Set Icons[2] = ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Set Icons[3] = ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp
Set Icons[4] = ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp

"Icons" is a variable, of type string, with "array" checked.
The paths? Double-click on "art - icon game interface" and copy and paste the path from there.

Then set your Heroes' point values (stats - point value) to the index in this array.
With the example given, the Paladin gets 1 as point value, the Arch Mage gets 2, 3 for the Mountain King and 4 on the Blood Mage.

When the time comes to show the icon on the board, use "Icons[ Point value of <Hero> ]
 
F

Fame.

Guest
When the time comes to show the icon on the board, use "Icons[ Point value of <Hero> ]


I really didnt understand that can you explain it more thoroughly
 

CrazyWolf

New Member
Reaction score
4
Ace hart can you explain this better plz?I have the same problem.What is that point value where do i set it and what's this ( <Hero> ) supposed to mean?:confused:
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Hero icons on a multiboard require the path (as string) to the icon.

That path can be found on your unit, in the Object Editor, under "Art - Icon -Game Interface".
If you double-click it, the path will under "custom".
Looks something like "ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp".

You can copy & paste it as needed, with ctrl + C (copy) and ctrl + V (paste).


Once you have that list of paths to icons, which is what I did in that trigger up here, you need some way to find out what entry in that list needs to be used with the Hero.

There's several ways to do so, like having a second list of Hero unit-types and looping until you find it.

However, a somewhat simpler way is to just store the index on the Hero itself.

And, well, "point value" is just the thing.
You can set them in the Object Editor, on the unit, under "Stats - Point value".

Based on the example above, which had
Set Icons[3] = ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp

Well, the point value of the Mountain King needs to be set to 3.
Because?
Because his icon is in index 3 of the list...



As for the "when the time comes to show"... I've no idea where your Heroes are coming from...

They might be bought in a Tavern.
They might be staying on the map, and you select one by some "click here" system.
They might be given randomly to players, with some "ar" trigger.
They might be ...

Event:
- <Tavern> sells a unit
Conditions:
Actions:
- Multiboard - Set the icon in col 1, row <the row used by Owner of (Sold unit)> to Icons[ Point value of (Sold unit) ]


Pick every player in (All players) and do
- Unit - Create 1 <random Hero> for (Picked player) at (Picked player)'s Start location facing default
- Multiboard - Set the icon in col 1, row <row used by Picked player> to Icons[ Point value of (Last created unit) ]


Or whatever else...
Like I said, I've no idea where your Heroes are coming from.
 
F

Fame.

Guest
Thanks acehart

now can you help me on The Dueling Arena Trigger?
 

CrazyWolf

New Member
Reaction score
4
Ok thnx acehart i understood it now but tell me what is the purpose of point value in reality?I mean is it used only for triggers or something happens to the unit if point value is changed?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Uhm... well, points...

Ever noticed "unit score", and other related scores, when the game ends and you get to that screen full of numbers?
That score comes from point values.

Whenever you kill a unit, its point value is added to your score.
Usually, all values are 100 by default.

Never seen a map that used it to actually have a custom scoring system...
 

CrazyWolf

New Member
Reaction score
4
Well then i quess it doesnt matter if i use your way cuz 10 points more in the score is nearly negligible.

thnx a lot acehart you rock!:shades: :shades: :shades:
 

Sooda

Diversity enchants
Reaction score
318
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top