I am looking to make a passively attacking weapon that can be placed in an inventory of a hero. I have a working inventory and I know how to make pawnable and usable items but I have not figured out how to make the passively attacking weapon. By passively attacking, I mean a weapon similar to diamond-backs attack or a phoenix attack where it attacks a random near target. The item can be placed in an inventory and function from within there but can't attack when outside the inventory (like dropped on the ground).
I have not figured out how to make it, could someone please assist?
Get the item to apply a weapon. The weapon has two flags needed to shoot independently. Weapons need an arc of 360 or a turret to shoot around the unit.
Read the wiki pages on weapons and items of the generic type.
Could you please link them? I am not very familiar with sc2mapster
EDIT: found the wiki on the weapons. Still need help with items and attaching model (missile) to the weapon.
Could you please make an item that duplicates battlecruiser attack for purposes of learning this?
For the purpose of my development, I made two item weapons. I can pick up one but not the other. Not sure why that is.
Edit: I also wanted to add that when I set Area-Arc to 360, the editor for some reason decided that its should modify to "Area-maximum count - 1" I do not know why that is and I can't find it in the wiki.
What exactly is Target - Link Effect/(effect) in my case Effect/DiamondbackBeam?
Moar edit: I have decided to "cheat" and simply add the diamondback weapon/effects (modified stats) to my custom weapon. However, for some reason it only attacks a target once. How do I make it fire continuously on the nearest target?
Even more edit: decided to see if making the diamondback fly would affect anything. Nope. The weapon still behaves differently on diamondback than it does on my airship. I have not the faintest clue as to why.
The Missile type actor is attached to the unit used as the ammo unit by the Launch Missile effect. Look at ingame examples, most ammo units have the Weapon - prefix.
Not got the time to make a demo sorry.
Checked the filters of the Inventory ability used. Also checked if the Item Class of the item is compatable with that slot of the inventory?
Edit arc of the weapon (Stats - Arc)
For Search Area effects and Damage effects the max count defaults to -1 which means there is no limit. If set to 1 it will only choose one target and the target chosen will be based on the Target Sorts used by the search. If set to -1 it will target all valid target units within range
Need more specific details of the field name for that one as it could refer to cooldowns, markers or charges. Try setting your editor to the standards mentioned in the wiki forum.
What unit has the weapon makes no difference (unless the unit is using a modified Attack ability). Sounds like you are messing with Target Sorts for the aquisition. Maybe use the goliath upgrade weapon as a better example since that attacks passively different air targets while the main weapon attacks the ground target.
Odds are you are lacking a turret. The diamond back weapon has an arc of 0 but the unit and the model for the actor has a turret. Yes this is one of the few times where a model has an impact on gameplay. It needs a TurretZ attachment point. You need to have a Turret type actor activating the turret and you need a turret from the Turrets data type on your unit. Having an arc of 360 on the weapon negates the issue.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Is there a way to avoid the turret attachment? When I try to change the Arc on the weapon (Not the effect!) it resets to 0. Just to clarify, you do mean the effect? Setting it to 360 on the weapon (when it does not reset) did not seem to do anything. I will add more edits as I work on this. I just got to add, wc3 days were much simpler. I am not really sure what you meant by wiki forums standards. English is not my first language so try to bear with me please.
Edit for my inventory, everything is checked to allowed. I modified my UI to look like the Aiur Chef inventory. I can pick up multiples of the same item (although it seems only one fires at a time but that's fixable). I can try what you suggested with the goliath thing.
Here is what the inventory looks like as an item container:
Edit: This is what my inventory is like in game. Hopefully this will give a better idea of what I am trying to accomplish here: http://i.imgur.com/1t0gM.jpg
Note: the "Combat airship" does not have an attack, the item weapon creates that attack.
Edit # infinity: messed around with goliath weapons, didn't seem to auto attack
Final edit: it appears I can make continuously attacking weapons out of anything, they just stop passively attacking after the first hit or so and I still haven't fixed it. This leads me to conclude that this might be an editor setting that I need to change but I don't know what it is.
EDIT: FINAL SOLUTION!!!!!
The arc HAS to be set to an EXACT 358.99 otherwise it will auto reset and NOT work. I feel like a complete idiot for not figuring this out and I guess this post deserves a huge face palm.
Now this leads to the final question(s)...how to make all the weapons in my inventory attack? And why can't I pick up the other items?
Hello,
I am looking to make a passively attacking weapon that can be placed in an inventory of a hero. I have a working inventory and I know how to make pawnable and usable items but I have not figured out how to make the passively attacking weapon. By passively attacking, I mean a weapon similar to diamond-backs attack or a phoenix attack where it attacks a random near target. The item can be placed in an inventory and function from within there but can't attack when outside the inventory (like dropped on the ground).
I have not figured out how to make it, could someone please assist?
Thanks!
Get the item to apply a weapon. The weapon has two flags needed to shoot independently. Weapons need an arc of 360 or a turret to shoot around the unit.
Read the wiki pages on weapons and items of the generic type.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Could you please link them? I am not very familiar with sc2mapster
EDIT: found the wiki on the weapons. Still need help with items and attaching model (missile) to the weapon.
Could you please make an item that duplicates battlecruiser attack for purposes of learning this?
For the purpose of my development, I made two item weapons. I can pick up one but not the other. Not sure why that is.
Edit: I also wanted to add that when I set Area-Arc to 360, the editor for some reason decided that its should modify to "Area-maximum count - 1" I do not know why that is and I can't find it in the wiki.
What exactly is Target - Link Effect/(effect) in my case Effect/DiamondbackBeam?
Moar edit: I have decided to "cheat" and simply add the diamondback weapon/effects (modified stats) to my custom weapon. However, for some reason it only attacks a target once. How do I make it fire continuously on the nearest target?
Even more edit: decided to see if making the diamondback fly would affect anything. Nope. The weapon still behaves differently on diamondback than it does on my airship. I have not the faintest clue as to why.
http://www.sc2mapster.com/wiki/galaxy/data/items/
The Missile type actor is attached to the unit used as the ammo unit by the Launch Missile effect. Look at ingame examples, most ammo units have the Weapon - prefix.
Not got the time to make a demo sorry.
Checked the filters of the Inventory ability used. Also checked if the Item Class of the item is compatable with that slot of the inventory?
Edit arc of the weapon (Stats - Arc)
For Search Area effects and Damage effects the max count defaults to -1 which means there is no limit. If set to 1 it will only choose one target and the target chosen will be based on the Target Sorts used by the search. If set to -1 it will target all valid target units within range
Need more specific details of the field name for that one as it could refer to cooldowns, markers or charges. Try setting your editor to the standards mentioned in the wiki forum.
What unit has the weapon makes no difference (unless the unit is using a modified Attack ability). Sounds like you are messing with Target Sorts for the aquisition. Maybe use the goliath upgrade weapon as a better example since that attacks passively different air targets while the main weapon attacks the ground target.
Odds are you are lacking a turret. The diamond back weapon has an arc of 0 but the unit and the model for the actor has a turret. Yes this is one of the few times where a model has an impact on gameplay. It needs a TurretZ attachment point. You need to have a Turret type actor activating the turret and you need a turret from the Turrets data type on your unit. Having an arc of 360 on the weapon negates the issue.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Is there a way to avoid the turret attachment? When I try to change the Arc on the weapon (Not the effect!) it resets to 0. Just to clarify, you do mean the effect? Setting it to 360 on the weapon (when it does not reset) did not seem to do anything. I will add more edits as I work on this. I just got to add, wc3 days were much simpler. I am not really sure what you meant by wiki forums standards. English is not my first language so try to bear with me please.
Edit for my inventory, everything is checked to allowed. I modified my UI to look like the Aiur Chef inventory. I can pick up multiples of the same item (although it seems only one fires at a time but that's fixable). I can try what you suggested with the goliath thing.
Here is what the inventory looks like as an item container:
http://i.imgur.com/FMYn4.png http://i.imgur.com/6LDyu.png Note: both are screenshots of the same thing, one is table, one is detailed view. Item classes are the same on all items.
Edit: This is what my inventory is like in game. Hopefully this will give a better idea of what I am trying to accomplish here: http://i.imgur.com/1t0gM.jpg
Note: the "Combat airship" does not have an attack, the item weapon creates that attack.
Edit # infinity: messed around with goliath weapons, didn't seem to auto attack
Final edit: it appears I can make continuously attacking weapons out of anything, they just stop passively attacking after the first hit or so and I still haven't fixed it. This leads me to conclude that this might be an editor setting that I need to change but I don't know what it is.
EDIT: FINAL SOLUTION!!!!!
The arc HAS to be set to an EXACT 358.99 otherwise it will auto reset and NOT work. I feel like a complete idiot for not figuring this out and I guess this post deserves a huge face palm.
Now this leads to the final question(s)...how to make all the weapons in my inventory attack? And why can't I pick up the other items?