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.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[03:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: RIVE, Roy