Staredit Network > Forums > SC2 Assistance > Topic: make a hero bar
make a hero bar
May 6 2014, 4:28 pm
By: ashu666  

May 6 2014, 4:28 pm ashu666 Post #1



i want to make a hero bar like a bar in hots campaign, to see de life, energy, level, damage and when i press de icon select my hero and allways see this bar.

the style of the bar it's same a bar in the campaign.



None.

May 6 2014, 11:10 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

I've added the story mode dependency and copy pasted a few actions out of its trigger library that required modifications or fixes to work properly.

This won't work with multiple players, but in theory you can rebuild everything Blizzard created in the library with your own functions and variables with the required changes to work for multiple players. Adding multiplayer support to the system Blizzard created is basically impossible as we can't alter the code within the library. That's why you would need to copy everything in the heroUI and fix everything to work properly for your map in multiplayer.

That hero UI is basically just dialog items and triggers that update them.

Attachments:
heroUItest.SC2Map
Hits: 3 Size: 23.14kb

Post has been edited 1 time(s), last time on May 6 2014, 11:16 pm by Ahli.




May 12 2014, 12:21 pm ashu666 Post #3



i have a another problem and i don't know why have problems.... in the editor u give me u set a hero and icon withh exist hero, i try to make a bar with a hero sellection and make some errors.. i don't know what u need to tell me the error or something like this....



None.

May 12 2014, 12:50 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from ashu666
i have a another problem and i don't know why have problems.... in the editor u give me u set a hero and icon withh exist hero, i try to make a bar with a hero sellection and make some errors.. i don't know what u need to tell me the error or something like this....
"a bar with a hero sellection and make some errors" what does that mean?

I don't get what you are trying to describe. So, yes, screenshots and a more detailed explanation would be helpful.




May 12 2014, 8:59 pm ashu666 Post #5



in my map u select a hero via dialog box and créate a hero in point.... the errors for hero bar show in image....

if u need i can attach my map or other...

tell me if u need see the triggers and what triggers u need to see....

Attachments:
Screenshot2014-05-12 17_54_44.jpg
Hits: 4 Size: 533.98kb



None.

May 13 2014, 1:51 am Ahli Post #6

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from ashu666
in my map u select a hero via dialog box and créate a hero in point.... the errors for hero bar show in image....

if u need i can attach my map or other...

tell me if u need see the triggers and what triggers u need to see....
The errors refer to dialog item variables that don't point to any dialog items. So, most likely the initialization of these variables isn't working.

I expect you to have just copy pasted the triggers from my test map into your map, so I assume you are not using the "story" dependency because that's where the variables are initialized.
=> File -> Dependencies -> Add Standard -> Chose "Swarm Story (Campaign)" and press OK




May 13 2014, 11:13 am ashu666 Post #7



i put the swarm story and copy-paste your triggers and make some adds to my heros in the bar....tell me the triggers u need to see.. if u don't tell me i don't know what triggers show u.



None.

May 13 2014, 11:42 am Ahli Post #8

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from ashu666
i put the swarm story and copy-paste your triggers and make some adds to my heros in the bar....tell me the triggers u need to see.. if u don't tell me i don't know what triggers show u.
Well, I would take the map and use the trigger debugger (editor options in "test document" and enable the halt on trigger errors) to find the first problem. It should give you enough clues to know which element doesn't work properly (-> most likely the variable is null or 0).

Then think about what should be different or what should be done earlier to prevent that problem. Also, add text message outputs, if you need more clues how the code behaves.

I can't recreate the problem in my test map and I can't just guess solutions for a problem I don't experience. Posting the map might be the only way for me to really help you fixing this.




May 14 2014, 12:53 pm ashu666 Post #9



ok this is my map.

Attachments:
Fortaleza.SC2Map
Hits: 1 Size: 244.46kb



None.

May 14 2014, 4:05 pm Ahli Post #10

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

@ UI
- The periodic update is not allowed to run before the initialization trigger "INIT" has run. You can initially turn off the periodic update trigger (right click it -> uncheck "initially on") and after running INIT, you can turn it on with a trigger action.

- The hero UI only has 2 slots, so using index 3 and higher will just create errors.


@ other aspects I've noticed:

- "Select Hero" trigger:
"Triggering Unit" doesn't exist in the "Dialog Item Used" event. I would just use another "Create Unit" action, for example "Create Unit facing angle". In that one, you can specify the facing of the unit.

- locales in the map
you have three locales in your map. Your map only requires one. SC2 will use a locale that is existing inside the map and if that locale doesn't contain all texts, it will display the text IDs which will look like "param\value\...". You might have seen that in a few maps already. So, I would suggest deleting the other locales.

edit:
Ok, I come to the conclusion that Blizzard's code is bad. It only works properly in their campaign in the way they use it. If you want to use a hero UI, rebuild it.
I would do it, if I had time, but I have no time.

Post has been edited 1 time(s), last time on May 14 2014, 4:24 pm by Ahli.




May 14 2014, 10:41 pm ashu666 Post #11



ok i can try but i'm new in sc2 editor... I use past editor warcraft 3.
I need time to get used to the editor.

PD: sorry for my bad english. i'm from argentina.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:11 pm]
Ultraviolet -- :wob:
[2023-2-04. : 11:43 am]
Zycorax -- :wob:
[2023-2-03. : 6:54 pm]
Zoan -- :wob:
[2023-2-03. : 3:35 am]
Ultraviolet -- :wob:
[2023-2-02. : 3:26 am]
Ultraviolet -- :wob:
[2023-2-01. : 2:29 am]
Ultraviolet -- how about yourself?
[2023-2-01. : 2:29 am]
Ultraviolet -- pretty good elite ejaculator
[2023-1-31. : 10:07 pm]
ejac1337 -- How's it going guys?
[2023-1-31. : 2:59 pm]
No-Name-Needed-II -- @Ultraviolet Thanks! It wasn't easy defeating the TMOANC lol..
[2023-1-30. : 8:45 pm]
Ultraviolet -- No-Name-Needed-II
No-Name-Needed-II shouted: Nobody showed interest in Authoring a story for my KotK Shores of Hell terrain so I uploaded it to terrain genre, You'll never look at Asheworld Tileset the same way again :) http://www.staredit.net/sc1db/file/6236/
Checked it out last night, definitely looks interesting. Can tell a lot of effort went into it
Please log in to shout.


Members Online: Roy, RdeRenato