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:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy, RIVE