I'm having a problem with my map that I'm hoping someone might have the solution for. I am using a series of buffs to create and equip variants of a bouncing projectile rifle. My problem is the base rifle uses an item buff to override the default weapon, so when the duration for the bouncing projectile buff is over, I set the expiration effect to reapply the base rifle buff directly. I discovered that when reapplied this way, the buff will not be tied to the item, allowing the player to drop the item from the inventory, yet still retain the upgraded rifle buff. Is there any way to "refresh" the buff back to its normal behavior without forcing the player to drop and pickup the item?
So the base marine unit has a base laser rifle. I was tasked with making a bouncing projectile version of it, which I did. The bouncing projectile is nested inside another weapon I'll call bouncy laser rifle. It uses a buff triggered by a hero ability to temporarily replace the base laser rifle with the bouncy rifle for a duration, then swap back to the base laser rifle.
Within the game, there is an upgraded laser rifle item that works by applying a buff to the hero while taking up a slot in inventory. It disables the base laser rifle and replaces it with the upgraded laser rifle. I created a bouncy version of the upgraded rifle using a similar buff. To get the upgraded bouncy rifle to replace properly, I remove the upgraded laser rifle buff, replace it with the bouncy upgraded rifle buff and use the expiring effect to reapply the upgraded laser rifle buff. However, this has the side effect of not tying the buff back to having the item in inventory, thus a little worry about exploiting inventory.
I was wondering if anyone had a solution that did not involve dropping the item and picking it back up? I guess if I could remove the item then replace it in inventory, it might do the trick. Any thoughts?
Have both the base laser rifle and upgraded one added by a buff on the unit. Your ability for the bouncy one then just needs to add a buff that disables both laser rifle buffs using the Behavior: Modification - Behaviors Disabled field.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello all,
I'm having a problem with my map that I'm hoping someone might have the solution for. I am using a series of buffs to create and equip variants of a bouncing projectile rifle. My problem is the base rifle uses an item buff to override the default weapon, so when the duration for the bouncing projectile buff is over, I set the expiration effect to reapply the base rifle buff directly. I discovered that when reapplied this way, the buff will not be tied to the item, allowing the player to drop the item from the inventory, yet still retain the upgraded rifle buff. Is there any way to "refresh" the buff back to its normal behavior without forcing the player to drop and pickup the item?
Thanks in advance!
So your unit has a buff adding a weapon that is disabled by another buff you add?
What duration? So you pick up an item for bouncing projectiles and it is meant to override the base weapon for a duration?
Maybe you need to explain clearly what you are trying to achieve.
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
Ah okay.
So the base marine unit has a base laser rifle. I was tasked with making a bouncing projectile version of it, which I did. The bouncing projectile is nested inside another weapon I'll call bouncy laser rifle. It uses a buff triggered by a hero ability to temporarily replace the base laser rifle with the bouncy rifle for a duration, then swap back to the base laser rifle.
Within the game, there is an upgraded laser rifle item that works by applying a buff to the hero while taking up a slot in inventory. It disables the base laser rifle and replaces it with the upgraded laser rifle. I created a bouncy version of the upgraded rifle using a similar buff. To get the upgraded bouncy rifle to replace properly, I remove the upgraded laser rifle buff, replace it with the bouncy upgraded rifle buff and use the expiring effect to reapply the upgraded laser rifle buff. However, this has the side effect of not tying the buff back to having the item in inventory, thus a little worry about exploiting inventory.
I was wondering if anyone had a solution that did not involve dropping the item and picking it back up? I guess if I could remove the item then replace it in inventory, it might do the trick. Any thoughts?
Have both the base laser rifle and upgraded one added by a buff on the unit. Your ability for the bouncy one then just needs to add a buff that disables both laser rifle buffs using the Behavior: Modification - Behaviors Disabled field.
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
That did the trick! Didn't even know about that field. Thank you!
Try reading this:
https://sc2mapster.gamepedia.com/Data/Behaviors/Buff
You may find other useful fields you did not know about.
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