Hero icons on a multiboard.

CrazyWolf

New Member
Reaction score
4
Hello everyone!

In my map i have made a multiboard where i put the name of each player and i want next to every player's name to be shown an icon of the hero each player possesses.How can i do that?I ve tried everything.:banghead: Is there any trigger that allows me to do so?

P.S If u dont understand what i mean imagine DotA's newest release where in its multiboard next to each players name thre is the icon of the hero each player has selected.

THNX FOR THE HELP!! :rolleyes: :rolleyes: :rolleyes: :rolleyes:
 

SFilip

Gone but not forgotten
Reaction score
634
There is no way to detect a hero's icon. You would probably have to go for creating an If..Then for every possible hero in your map that would change that icon.
 

H34DhUnT3r

Ultra Cool Member
Reaction score
36
There is no way to detect a hero's icon. You would probably have to go for creating an If..Then for every possible hero in your map that would change that icon.

It's not possible to detect, but you dont have to create ten-thousand If..'s I guess you have a hero choose system or so? than just place the multiboard trigger after the choose trigger (in the actions)
 
Reaction score
333
Many maps, including DotA Allstars, have an if statement for every hero. Probably the only thing to do in this case.
 

Pied

New Member
Reaction score
2
Well i'm making a map with 72 different units you can conrol. And i'm not feeling much for making 72 if conditions.

I tried the folowing with no result. Maybe some of you guys can help me ?

Code:
Player Icon Update
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        ((Ability being cast) Equal to Drain ) or ((Ability being cast) Equal to Swap or Exit )
    Actions
        Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to Icons[(Point-value of (Target unit of ability being cast))]

Icons is a variable in this case. And for every integer of Icons i did this:

Code:
Icons
    Events
        Map initialization
    Conditions
    Actions
        Set Icons[1] = ReplaceableTextures\CommandButtons\BTNArachnathidGreen.blp
        Set Icons[2] = ReplaceableTextures\CommandButtons\BTNArachnathidpurple.blp
        Set Icons[3] = ReplaceableTextures\CommandButtons\BTNSpiderCrab.blp
        Set Icons[4] = ReplaceableTextures\CommandButtons\BTNSpiderCrab.blp
        Set Icons[5] = ReplaceableTextures\CommandButtons\BTNSpiderCrab.blp
        Set Icons[6] = ReplaceableTextures\CommandButtons\BTNFurbolg.blp
        Set Icons[7] = ReplaceableTextures\CommandButtons\BTNFurbolgTracker.blp
        Set Icons[8] = ReplaceableTextures\CommandButtons\BTNFurbolgShaman.blp
        Set Icons[9] = ReplaceableTextures\CommandButtons\BTNFurbolgElder.blp
        Set Icons[10] = ReplaceableTextures\CommandButtons\BTNSpiderGreen.blp
        Set Icons[11] = ReplaceableTextures\CommandButtons\BTNSpiderBlue.blp
        Set Icons[12] = ReplaceableTextures\CommandButtons\BTNSpider.blp
        Set Icons[13] = ReplaceableTextures\CommandButtons\BTNSpiderBlue.blp
        Set Icons[14] = ReplaceableTextures\CommandButtons\BTNHarpy.blp
        Set Icons[15] = ReplaceableTextures\CommandButtons\BTNHarpy.blp
        Set Icons[16] = ReplaceableTextures\CommandButtons\BTNHarpyWitch.blp
        Set Icons[17] = ReplaceableTextures\CommandButtons\BTNHarpyQueen.blp
        Set Icons[18] = ReplaceableTextures\CommandButtons\BTNGreenHydra.blp
        Set Icons[19] = ReplaceableTextures\CommandButtons\BTNGreenHydra.blp
        Set Icons[20] = ReplaceableTextures\CommandButtons\BTNGreenHydra.blp
        Set Icons[21] = ReplaceableTextures\CommandButtons\BTNThunderLizard.blp
        Set Icons[22] = ReplaceableTextures\CommandButtons\BTNThunderLizard.blp
        Set Icons[23] = ReplaceableTextures\CommandButtons\BTNThunderLizard.blp
        Set Icons[24] = ReplaceableTextures\CommandButtons\BTNThunderLizard.blp
        Set Icons[25] = ReplaceableTextures\CommandButtons\BTNLobstrokkRed.blp
        Set Icons[26] = ReplaceableTextures\CommandButtons\BTNLobstrokkRed.blp
        Set Icons[27] = ReplaceableTextures\CommandButtons\BTNLobstrokkRed.blp
        Set Icons[28] = ReplaceableTextures\CommandButtons\BTNLobstrokkBlue.blp
        Set Icons[29] = ReplaceableTextures\CommandButtons\BTNBlueMagnataur.blp
        Set Icons[30] = ReplaceableTextures\CommandButtons\BTNMurgulTideWarrior.blp
        Set Icons[31] = ReplaceableTextures\CommandButtons\BTNMurgulBloodGill.blp
        Set Icons[32] = ReplaceableTextures\CommandButtons\BTNMurgulTideWarrior.blp
        Set Icons[33] = ReplaceableTextures\CommandButtons\BTNMurgulBloodGill.blp
        Set Icons[34] = ReplaceableTextures\CommandButtons\BTNMurgulShadowCaster.blp
        Set Icons[35] = ReplaceableTextures\CommandButtons\BTNMurloc.blp
        Set Icons[36] = ReplaceableTextures\CommandButtons\BTNMurloc.blp
        Set Icons[37] = ReplaceableTextures\CommandButtons\BTNMurlocNightCrawler.blp
        Set Icons[38] = ReplaceableTextures\CommandButtons\BTNMurlocMutant.blp
        Set Icons[39] = ReplaceableTextures\CommandButtons\BTNOwlBear.blp
        Set Icons[40] = ReplaceableTextures\CommandButtons\BTNOwlBear.blp
        Set Icons[41] = ReplaceableTextures\CommandButtons\BTNOwlBear.blp
        Set Icons[42] = ReplaceableTextures\CommandButtons\BTNFrostBear.blp
        Set Icons[43] = ReplaceableTextures\CommandButtons\BTNFrostBear.blp
        Set Icons[44] = ReplaceableTextures\CommandButtons\BTNPolarFurbolg.blp
        Set Icons[45] = ReplaceableTextures\CommandButtons\BTNPolarFurbolgShaman.blp
        Set Icons[46] = ReplaceableTextures\CommandButtons\BTNPolarFurbolg.blp
        Set Icons[47] = ReplaceableTextures\CommandButtons\BTNPolarFurbolgElder.blp
        Set Icons[48] = ReplaceableTextures\CommandButtons\BTNThunderLizardSalamander.blp
        Set Icons[49] = ReplaceableTextures\CommandButtons\BTNThunderLizardSalamander.blp
        Set Icons[50] = ReplaceableTextures\CommandButtons\BTNThunderLizardVizier.blp
        Set Icons[51] = ReplaceableTextures\CommandButtons\BTNThunderLizardSalamander.blp
        Set Icons[52] = ReplaceableTextures\CommandButtons\BTNSasquatch.blp
        Set Icons[53] = ReplaceableTextures\CommandButtons\BTNSasquatchShaman.blp
        Set Icons[54] = ReplaceableTextures\CommandButtons\BTNSasquatch.blp
        Set Icons[55] = ReplaceableTextures\CommandButtons\BTNSasquatch.blp
        Set Icons[56] = ReplaceableTextures\CommandButtons\BTNSeaTurtleGreen.blp
        Set Icons[57] = ReplaceableTextures\CommandButtons\BTNSeaTurtleGreen.blp
        Set Icons[58] = ReplaceableTextures\CommandButtons\BTNSeaTurtleGreen.blp
        Set Icons[59] = ReplaceableTextures\CommandButtons\BTNSeaTurtleGreen.blp
        Set Icons[60] = ReplaceableTextures\CommandButtons\BTNWendigo.blp
        Set Icons[61] = ReplaceableTextures\CommandButtons\BTNWendigo.blp
        Set Icons[62] = ReplaceableTextures\CommandButtons\BTNWendigo.blp
        Set Icons[63] = ReplaceableTextures\CommandButtons\BTNWendigo.blp
        Set Icons[64] = ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
        Set Icons[65] = ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
        Set Icons[66] = ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
        Set Icons[67] = ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
        Set Icons[68] = ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
        Set Icons[69] = ReplaceableTextures\CommandButtons\BTNDireWolf.blp
        Set Icons[70] = ReplaceableTextures\CommandButtons\BTNJungleBeast.blp
        Set Icons[71] = ReplaceableTextures\CommandButtons\BTNJungleBeast.blp
        Set Icons[72] = ReplaceableTextures\CommandButtons\BTNJungleBeast.blp


But its not working. Some1 cna help me out ?

Thanks in advance.

Pied
 
S

Sunny_D

Guest
well, if you set the point value of all units correctly and this Icons[] Variable array is a string-variable, then it should work...

but why have you choosen a "finishes spell" event for the first trigger? maybe its better to set the icon after you created the hero for the player? im also not sure, how far (last created multiboard) lasts. maybe you should save it (when created) in a multiboard variable and use this variable then in your first trigger.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i don't think u are allowed to start a new discussion over some1 else thread and i think u should create ur own thread for it but anyway i didn't get what u were trying to do anyway...
 

Pied

New Member
Reaction score
2
Well, you dont choose a hero in this game. You start of with a DuneWorm that can take over units. This way your icon keeps changing through out the game. And yes the Icon variable is a string variable.

Edit: Hm sorry then for taking over this thread, but i thought this was a nice add-on to the earlier asked questing. Thought it was kinde useless to start a new thread about it..
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
What do you expect the "target unit" to be once you "finishes casting"?

Use "starts the effect of".


> not sure how far (last created multiboard) lasts

Until the next multiboard is created.
Usually, that's to the end of the game...
 
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