I am working on a map that involves using multiple weapons on a single unit and ran into some minor problems while doing so.
First problem (or question) is how do you get multiple weapons to display on the unit info? In the screenshot below, there are two items in the inventory (let's assume the second item is a weapon too), but only one shows up on the unit info (armor, damage, kills, etc).
What are some things I can do to have the second weapon show, not just the first one?
Lastly, if I have multiple weapons, I have set them up such that they all fire automatically while the unit is moving or standing. It works (they will auto-fire) as long as the unit moves. When it stops moving, only one weapon fires. What can I do to make sure they all fire when the unit is standing still?
Thanks for reading over this. Any help will be very much appreciated.
The way it was explained to me is that it does it automatically if its a normal unit. But, since you've made the unit a hero, it fubars it. In order for you to show both weapons on a hero unit, you're going to have to make a custom ui and/or modify layout files or do a custom override.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I was concerned something like that would have to be done. Were you able to figure it out? What did you do for the UI? I can probably figure out something from there. Thank you! If I do, I will try to post a guide in the UI section so others facing similar issues can have a solution.
I found the UI Layout file and the location of the weapons on the hero but all I was able to do was move the position of it around. I couldn't figure out a way to make it show additional weapons.
Needs triggers to update tooltip (the direct info can be manipulated with the attribute)
Doesn't show additional effects ( Damage : 6 instead of Damage : 1 (+5)) the green +5 won't be possible ( if you add another label with green text right behind the attribute label this could be simulated)
Thanks, it's as close as it gets I guess. I think I may end up not showing weapons on the hero info panel and instead focus on making the tooltips better.
In regards to my other question, is there any particular reason that only one weapon fires when the unit is standing still but all of them fire (as intended) when it's moving)? I want them all to fire when it's standing still too.
I found a Linked Cooldown under (Basic) Weapon: Options but selecting it only made the problem worse, so I am still trying to find a solution for this.
Sorry regarding double post. I didn't see what you meant about the share cooldown flag (or where). The problem is that when I have multiple weapons, only one fires when the unit is not moving. When it is moving, they all fire as intended. What I am trying to figure out is how to make them all fire while a unit is stationary.
hmm.. your unit has X weapons. they only fire all together if the unit is moving. the same weapons do not fire while being stationary?!
ok then the linked cd flag is not the problem.
did you test your weapons one by one? stationary and in motion
Doesn't seem to be the weapons. It's probably a flag of some sort or some other property, I just can't figure out which. I played a Battletanks remake map last night and the creator of it was able to have multiple weapons fire while the unit was moving and standing still. I am guessing the solution is probably simple but it's something I have been stuck trying to figure out for a while.
edit: His solution to only one weapon showing up on the hero info pane was to delete it from the UI all together, which is what I was sort of going for.
there is another solution to your weapon show problem:
just create a unit info pane from the template and hide the hero info pane. in order to have attributes and veterancy shown you have to hide only parts of the hero info pane. must be done in layoutfiles.
to your weapon problem, could you post a screenshot of the 2 weapons? (editor-tableview)
There should be a flag in the weapon called "Allowed Movement". While I don't know for sure if that will help at all you could play around with that.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I already have Allowed Movement enabled. That's what allows all of them to fire while the unit moves. Problem is only one weapon firing when the unit is standing still.
Doesn't seem to be the weapons. It's probably a flag of some sort or some other property, I just can't figure out which. I played a Battletanks remake map last night and the creator of it was able to have multiple weapons fire while the unit was moving and standing still. I am guessing the solution is probably simple but it's something I have been stuck trying to figure out for a while.
edit: His solution to only one weapon showing up on the hero info pane was to delete it from the UI all together, which is what I was sort of going for.
What map were you playing?
I went through this problem when I started creating my map (->signature) and in those days there was not a very simple sollution available. Did this change and is it now possible to have multiple weapons of the same type on one unit?
3) Make sure "Only fire at attack target" is unticked.
4) Make sure "Only fire when attacking" is unticked.
5) Make sure the unit's acquire level is set to "offensive".
6) Not required, but I recommend setting the backswing and damage point of all weapons to 0. These will cause a small delay between firing two weapons, even if they have the same cooldown.
What did you do to enable it so it fires them all at once while standing still? I am not sure if what I did is just a weird half-fix or if it actually works.
In regards to multiple weapons displaying in the Hero Info Panel, it seems even with .sc2layout files, it still isn't possible to show more than one weapon at a time. I tried messing around with it and adding multiple weapon slots but to no effect. I don't think the editor (or the game) supports this currently for heroes.
like i have posted before you have to create a new unit info pane using the unit info pane template!! this is an exact copy of what you see selecting a normal unit. if you display it (using triggers to hook it) selecting a hero you will have your weapons shown. moving it over your normal info pane, hero units will be shown as normal units (which might be a drawback).
moving the normal hero info pane and hiding the parts that are shown twice now would require a more complex custom UI but would contain all stuff you want
As far as I understand, you are making a Battleships-like map. So I guess you want to achieve battleship-like behaviour of weapons. I solved the issue with behaviours instead of weapons.
That was because in the time I started the project, there was no solution (without great affort) available to use severals weapons of the same type on on unit (eg 2 machineguns). So I would be very interested, when such an option exists nowadays. You said you played a map were it was accomplished? Can you tell me which one so I can take a look for myself?
Regarding UI. I think better to create your own unit info panel with dialogs instead of messing with layout files (and hide default one in triggers). Won't take too much time, will look much better than default and fit to your needs. I'm making something similiar in my rpg, i'm using this black area in mid bottom to display 3 submenus with character stats, inventory and skills.
I am working on a map that involves using multiple weapons on a single unit and ran into some minor problems while doing so.
First problem (or question) is how do you get multiple weapons to display on the unit info? In the screenshot below, there are two items in the inventory (let's assume the second item is a weapon too), but only one shows up on the unit info (armor, damage, kills, etc).
What are some things I can do to have the second weapon show, not just the first one?
Lastly, if I have multiple weapons, I have set them up such that they all fire automatically while the unit is moving or standing. It works (they will auto-fire) as long as the unit moves. When it stops moving, only one weapon fires. What can I do to make sure they all fire when the unit is standing still?
Thanks for reading over this. Any help will be very much appreciated.
The way it was explained to me is that it does it automatically if its a normal unit. But, since you've made the unit a hero, it fubars it. In order for you to show both weapons on a hero unit, you're going to have to make a custom ui and/or modify layout files or do a custom override.
http://www.sc2mapster.com/forums/development/data/45688-how-to-show-multiple-weapons/#p1
@bulletbutter: Go
I was concerned something like that would have to be done. Were you able to figure it out? What did you do for the UI? I can probably figure out something from there. Thank you! If I do, I will try to post a guide in the UI section so others facing similar issues can have a solution.
@Stormahawk: Go
I found the UI Layout file and the location of the weapons on the hero but all I was able to do was move the position of it around. I couldn't figure out a way to make it show additional weapons.
@Stormahawk: Go
hello there
if you are not using all 5 attributes a hero can have (at least in the layout files) you can use them to show additional info on the unit and update it with triggers.
http://www.sc2mapster.com/forums/development/gui/62565-unit-info-panel-add-shield-icon-to-hero/
check out the link above, i have added a shield info to hero units.
Drawbacks:
the layout:
<Desc> <Frame type="InfoPaneHero" name="GameUI/UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneHero" file="GameUI"> <Frame type="Label" name="AttributeLabel1"> <Anchor side="Top" relative="$parent/CustomShieldIcon" pos="Min" offset="10"/> <Anchor side="Left" relative="$parent/CustomShieldIcon" pos="Max" offset="10"/> <Style val="@@InfoPaneHeroWeapon_Prot"/> </Frame>
<Frame type="Label" name="AttributeLabel2"> <Anchor side="Top" relative="$parent/CustomAttributeIcon" pos="Min" offset="2"/> <Anchor side="Left" relative="$parent/CustomAttributeIcon" pos="Max" offset="10"/> <Style val="@@InfoPaneHeroWeapon_Prot"/> </Frame>
<Frame type="Image" name="CustomShieldIcon" template="EquipmentIcon/EquipmentIconTemplate"> <Width val="32"/> <Height val="32"/> <Texture val="@@UI/ButtonBorderNormal" layer="1"/> <Anchor side="Top" relative="$parent/ExperienceBar" pos="Max" offset="20"/> <Anchor side="Left" relative="$parent" pos="Mid" offset="10"/> </Frame>
<Frame type="Image" name="CustomAttributeIcon" template="EquipmentIcon/EquipmentIconTemplate"> <Width val="32"/> <Height val="32"/> <Texture val="@@UI/ButtonBorderNormal" layer="1"/> <Anchor side="Top" relative="$parent/CustomShieldIcon" pos="Max" offset="2"/> <Anchor side="Left" relative="$parent" pos="Mid" offset="10"/> </Frame> </Frame> </Desc>
@FunkyUserName: Go
Thanks, it's as close as it gets I guess. I think I may end up not showing weapons on the hero info panel and instead focus on making the tooltips better.
In regards to my other question, is there any particular reason that only one weapon fires when the unit is standing still but all of them fire (as intended) when it's moving)? I want them all to fire when it's standing still too.
@Stormahawk: Go
share cooldown flag
I found a Linked Cooldown under (Basic) Weapon: Options but selecting it only made the problem worse, so I am still trying to find a solution for this.
@Stormahawk: Go
Sorry regarding double post. I didn't see what you meant about the share cooldown flag (or where). The problem is that when I have multiple weapons, only one fires when the unit is not moving. When it is moving, they all fire as intended. What I am trying to figure out is how to make them all fire while a unit is stationary.
@Stormahawk: Go
hmm.. your unit has X weapons. they only fire all together if the unit is moving. the same weapons do not fire while being stationary?! ok then the linked cd flag is not the problem. did you test your weapons one by one? stationary and in motion
@FunkyUserName: Go
Doesn't seem to be the weapons. It's probably a flag of some sort or some other property, I just can't figure out which. I played a Battletanks remake map last night and the creator of it was able to have multiple weapons fire while the unit was moving and standing still. I am guessing the solution is probably simple but it's something I have been stuck trying to figure out for a while.
edit: His solution to only one weapon showing up on the hero info pane was to delete it from the UI all together, which is what I was sort of going for.
@Stormahawk: Go
there is another solution to your weapon show problem:
just create a unit info pane from the template and hide the hero info pane. in order to have attributes and veterancy shown you have to hide only parts of the hero info pane. must be done in layoutfiles.
to your weapon problem, could you post a screenshot of the 2 weapons? (editor-tableview)
There should be a flag in the weapon called "Allowed Movement". While I don't know for sure if that will help at all you could play around with that.
@bulletbutter: Go
I already have Allowed Movement enabled. That's what allows all of them to fire while the unit moves. Problem is only one weapon firing when the unit is standing still.
What map were you playing?
I went through this problem when I started creating my map (->signature) and in those days there was not a very simple sollution available. Did this change and is it now possible to have multiple weapons of the same type on one unit?
1) Make sure allowed movement is set to "Moving".
2) Make sure "cooldown link" is unticked.
3) Make sure "Only fire at attack target" is unticked.
4) Make sure "Only fire when attacking" is unticked.
5) Make sure the unit's acquire level is set to "offensive".
6) Not required, but I recommend setting the backswing and damage point of all weapons to 0. These will cause a small delay between firing two weapons, even if they have the same cooldown.
@TyaStarcraft: Go
I set the Weapon:Acquire Target Sorts - Sorts to TSRandom and it seems to now allow to fire multiple weapons while standing still.
@Freddy2287: Go
What did you do to enable it so it fires them all at once while standing still? I am not sure if what I did is just a weird half-fix or if it actually works.
In regards to multiple weapons displaying in the Hero Info Panel, it seems even with .sc2layout files, it still isn't possible to show more than one weapon at a time. I tried messing around with it and adding multiple weapon slots but to no effect. I don't think the editor (or the game) supports this currently for heroes.
@Stormahawk: Go
like i have posted before you have to create a new unit info pane using the unit info pane template!! this is an exact copy of what you see selecting a normal unit. if you display it (using triggers to hook it) selecting a hero you will have your weapons shown. moving it over your normal info pane, hero units will be shown as normal units (which might be a drawback).
moving the normal hero info pane and hiding the parts that are shown twice now would require a more complex custom UI but would contain all stuff you want
@Stormahawk: Go
As far as I understand, you are making a Battleships-like map. So I guess you want to achieve battleship-like behaviour of weapons. I solved the issue with behaviours instead of weapons.
That was because in the time I started the project, there was no solution (without great affort) available to use severals weapons of the same type on on unit (eg 2 machineguns). So I would be very interested, when such an option exists nowadays. You said you played a map were it was accomplished? Can you tell me which one so I can take a look for myself?
Regarding UI. I think better to create your own unit info panel with dialogs instead of messing with layout files (and hide default one in triggers). Won't take too much time, will look much better than default and fit to your needs. I'm making something similiar in my rpg, i'm using this black area in mid bottom to display 3 submenus with character stats, inventory and skills.