Hi!
In my map I have a hero. I want this hero to have a health bar that kerrigan has in Heart of the swarm. I also want to give this hero an icon and health bar in the top left corner also like in HotS.
Does anyone know how to do this? If anyone helps I will like the comment.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
I am guessing you are talking about the top left hero panel thing. I am guessing you are talking about triggers and I tried that exept my hero is spawned with triggers, along with 500 random generated units. Can you help?
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Yes Exactly what I want, except that the hero(s) I want is spawned with triggers along with 500 random generated units (so the hero(s) are not already on the the map before the game starts). So how do I do attach the hero panel to the hero?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Please see this! This would also help a lot because a lot of triggers and things I want to do with my hero require an an apply to last created unit, which I do not think would work or Apply to a unit that is already on the map. I think there is also a variable that can be used but I have no idea how to use variables.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
My problem IS that the hero(s) are not pre-placed, and are spawned with triggers with other trigger spawned units.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
If you`re not familiar with variables, custom function/action/event are a little far from you.
You should start with some trigger basic, this could help about variable.
Also, you'll have problem using the default template of Blizzard (I mean, about the hero health bar you want), because (if you read the tutorial and understand how it works) it is made for Blizzard units.
A Variable is like a box, the type of the variable is the shape of the box. So a Unit type variable can store unit types, an Integer variable can store integers and so on.
There are two types of variables, Global and Local. A Global variable is the ones that are created and listed among the triggers, and the local ones are the ones created in the individual triggers. A global variable can be called in all triggers, and a local can only be called in the one it has been made.
If you create a unit, you can set a Unit, Global variable to Last created unit and later on refer to that variable to refer to the unit.
Also Variables can have arrays (sub parts of the variable), which can look like this GlobalVariable1[0]. This allows you to set your Unit variable to UnitVariable[Owner of(Last Created Unit)] = Last Created Unit for each player, and then later be able to refer to the individual units for each player.
Arrays also have dimensions, so you can have a variable look like this GlobalVariable[0][0]. A way to look at it, is to imagine it as a checker board, or a coordinate system, so 0,0 is field, 0,1 another field with a different value, 1,0 a third value, and so on. I hope it makes sence, othervise I'll try to explain it further.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Ok need further explanation and help. I need to know how to put peticular unit/s (a custom hero SCV/s) created by a script file (i recently discovered it spawns from a script file, the script file has like 5000 words and spawns like 100 units as well) that spawns along with many other units into a variable. It would be helpful if there was a way to put a ping on all units of that type.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
I would use a variable with an array for this. In the screenshot the array size is set to 16, but it can be set to pretty much any value you want (I don't know the exact max array size off the top of my head). In this particular case, it sets the index of the unit to the player number.
For the Pick Each Unit in Unit Group loop, just use the unit type of the hero SCVs in place of the SCVs as seen in the screenshot.
In the case where you need a larger array size, you might have to resort to using data tables and store each unit as a string.
I will try it out soon (today hopefully). I only understand about 2/3 of the image but I hope copy-pasting it, it will still work.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Here are my problems (of course there are problems it is like there is a rule of the universe)
With the Unit group - pick each unit in... the bit where it says (entire map) for me is not in () and does not give the option of entire map.
Also would/does the trigger: Ping - Create Ally hero ping and attach it to (Picked unit). work as a replacement to the other ping creation?
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Also I want to use the ally hero ping because it uses the colour of the unit's team (there will be 4 SCV heroes 1 for each team) and also I could not get the ping you suggested to work in the way that you did in the image.
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Hi! In my map I have a hero. I want this hero to have a health bar that kerrigan has in Heart of the swarm. I also want to give this hero an icon and health bar in the top left corner also like in HotS.
Does anyone know how to do this? If anyone helps I will like the comment.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
Here is a place to start :
Hots Hero Panel
My projects : The Hammer of Dawn, Noir : Automata, Noir : Evolution, Noir : Ascension, Hammer of Dawn Revamp
Many awesome projects : Custom Campaign Initiative
Something for the community : A Small Letter of Thanks, SC2mapster Classic Skin - Alevice
@EDHRIANO: Go
The easiest thing ever.... :D there is create hero panel..but you must edit it...thats the thing you must search for
@EDHRIANO: Go
Thank you EDHRIANO, that worked. Now I just need to create the hero panel in the top left corner.
@CybrosX: Go
I am guessing you are talking about the top left hero panel thing. I am guessing you are talking about triggers and I tried that exept my hero is spawned with triggers, along with 500 random generated units. Can you help?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
Is this what you want?
https://www.sc2mapster.com/forums/resources/tutorials/128705-tutorial-blizzard-style-hero-icons/#p1
@MaskedImposter: Go
Yes Exactly what I want, except that the hero(s) I want is spawned with triggers along with 500 random generated units (so the hero(s) are not already on the the map before the game starts). So how do I do attach the hero panel to the hero?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@MaskedImposter: Go
Please see this! This would also help a lot because a lot of triggers and things I want to do with my hero require an an apply to last created unit, which I do not think would work or Apply to a unit that is already on the map. I think there is also a variable that can be used but I have no idea how to use variables.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
Please help!
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
If the unit is already on map, you should instead of Last Created Unit, use the tab Value, it will list all the preplaced units in your map
EDIT: see the print: http://prntscr.com/cy6kqn
@Laiev: Go
My problem IS that the hero(s) are not pre-placed, and are spawned with triggers with other trigger spawned units.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@R0binicus: Go
So you have to use a variable for that, or a custom action with parameter.
@Laiev: Go
How do I use variables and how do I create/use a custom action? (I think I am getting to what I want)
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@R0binicus: Go
If you`re not familiar with variables, custom function/action/event are a little far from you.
You should start with some trigger basic, this could help about variable.
Also, you'll have problem using the default template of Blizzard (I mean, about the hero health bar you want), because (if you read the tutorial and understand how it works) it is made for Blizzard units.
A Variable is like a box, the type of the variable is the shape of the box. So a Unit type variable can store unit types, an Integer variable can store integers and so on.
There are two types of variables, Global and Local. A Global variable is the ones that are created and listed among the triggers, and the local ones are the ones created in the individual triggers. A global variable can be called in all triggers, and a local can only be called in the one it has been made.
If you create a unit, you can set a Unit, Global variable to Last created unit and later on refer to that variable to refer to the unit.
Also Variables can have arrays (sub parts of the variable), which can look like this GlobalVariable1[0]. This allows you to set your Unit variable to UnitVariable[Owner of(Last Created Unit)] = Last Created Unit for each player, and then later be able to refer to the individual units for each player.
Arrays also have dimensions, so you can have a variable look like this GlobalVariable[0][0]. A way to look at it, is to imagine it as a checker board, or a coordinate system, so 0,0 is field, 0,1 another field with a different value, 1,0 a third value, and so on. I hope it makes sence, othervise I'll try to explain it further.
I will try this soon.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@Demtrod: Go
Ok need further explanation and help. I need to know how to put peticular unit/s (a custom hero SCV/s) created by a script file (i recently discovered it spawns from a script file, the script file has like 5000 words and spawns like 100 units as well) that spawns along with many other units into a variable. It would be helpful if there was a way to put a ping on all units of that type.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
I would use a variable with an array for this. In the screenshot the array size is set to 16, but it can be set to pretty much any value you want (I don't know the exact max array size off the top of my head). In this particular case, it sets the index of the unit to the player number.
For the Pick Each Unit in Unit Group loop, just use the unit type of the hero SCVs in place of the SCVs as seen in the screenshot.
In the case where you need a larger array size, you might have to resort to using data tables and store each unit as a string.
Custom Campaign Initiative | Mapster Community Project: Data Wizards
Starcraft II: Unsung Rebels, a custom campaign for Starcraft II
SC2Saver, a way to create saved games via trigger
Frustrated with the editor and would like answers in real time? Join the SC2Mapster Discord!
@aZergBaneling: Go
I will try it out soon (today hopefully). I only understand about 2/3 of the image but I hope copy-pasting it, it will still work.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@aZergBaneling: Go
Ok I copied exactly what you told me to do.
Here are my problems (of course there are problems it is like there is a rule of the universe)
With the Unit group - pick each unit in... the bit where it says (entire map) for me is not in () and does not give the option of entire map.
Also would/does the trigger: Ping - Create Ally hero ping and attach it to (Picked unit). work as a replacement to the other ping creation?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
@aZergBaneling: Go
Also I want to use the ally hero ping because it uses the colour of the unit's team (there will be 4 SCV heroes 1 for each team) and also I could not get the ping you suggested to work in the way that you did in the image.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.