Could someone help me to do an inventory which works like this :
I give an building (lets say a barrack) 2 differents inventories : one for marines and one for snipers, and now when i put a weapon item (which gives for example a +2 damages) in the marine inventory i want all my marines to have +2 damages but only the marines. And if i switch this weapon item into the sniper inventory it doesnt give the +2 damages to the marines anymore but instead to all the snipers.
If only at that structure, use a modified Train ability that uses the Ability: Info - Effect field to apply a stat altering Buff behaviour to produced units that is validated based on Unit Type and a Unit Behavior Count validator that checks for a second Buff applied by the items in the inventory.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi,
Could someone help me to do an inventory which works like this :
I give an building (lets say a barrack) 2 differents inventories : one for marines and one for snipers, and now when i put a weapon item (which gives for example a +2 damages) in the marine inventory i want all my marines to have +2 damages but only the marines. And if i switch this weapon item into the sniper inventory it doesnt give the +2 damages to the marines anymore but instead to all the snipers.
i'd be grateful :)
Only the ones trained by that building or all?
If only at that structure, use a modified Train ability that uses the Ability: Info - Effect field to apply a stat altering Buff behaviour to produced units that is validated based on Unit Type and a Unit Behavior Count validator that checks for a second Buff applied by the items in the inventory.
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
But i need the item to apply differents buff depending on which inventory it is in.
There is no way in data to tell inventories apart. Try triggers?
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
oh :(
well does anyone has a clue on how to do it with triggers ?
ImperialGood is an expert in that field. Else ask in the Trigger forum.
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