I 'm considering picking up an old RPG project of mine, which involved stats, which would increase damage of skills.
The way I did it back then, were with a Catalog Field Value Set action (I think thats what it's called), which would modify damage stats every time they changed for the hero unit of the player.
This worked kinda fine, but I was thinking if anyone has come up with a better system since I left this project. I'm also considering creating my skills with triggers, and apply the damage that way, would that be more efficient?
For example Psi Storm, which would deal damage to every unit within range every 0.25 sec, would that be just as efficient with triggers as it would with data?
The thing is, I'm also considering having passive skills such as: Deal 10% more damage on full life. Healing is increased below 30% life. As far as I can see, abilities such as this, would be easier with triggers, though it could be done with data aswell, but would require a double amount of Catalog Field Value Set actions.
TLDR: I'm on the fence, whether I should create my abilities with a combination of data and trigger, or I should create them purely with triggers, to get a system which would deal damage depending on unit stats.
I would use a dummy damage effect that the triggers pick up with an Effect Used trigger and respond to with Damage Unit (From Unit) or Set Unit Property actions.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I 'm considering picking up an old RPG project of mine, which involved stats, which would increase damage of skills.
The way I did it back then, were with a Catalog Field Value Set action (I think thats what it's called), which would modify damage stats every time they changed for the hero unit of the player.
This worked kinda fine, but I was thinking if anyone has come up with a better system since I left this project. I'm also considering creating my skills with triggers, and apply the damage that way, would that be more efficient?
For example Psi Storm, which would deal damage to every unit within range every 0.25 sec, would that be just as efficient with triggers as it would with data?
The thing is, I'm also considering having passive skills such as: Deal 10% more damage on full life. Healing is increased below 30% life. As far as I can see, abilities such as this, would be easier with triggers, though it could be done with data aswell, but would require a double amount of Catalog Field Value Set actions.
TLDR: I'm on the fence, whether I should create my abilities with a combination of data and trigger, or I should create them purely with triggers, to get a system which would deal damage depending on unit stats.
I would use a combination of data and 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
In reply to DrSuperEvil:
I would use a dummy damage effect that the triggers pick up with an Effect Used trigger and respond to with Damage Unit (From Unit) or Set Unit Property actions.
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
In reply to DrSuperEvil:
Follow up question:
Using a setup like the one you suggested, won't this cause latancy/lag issues with big spells with many damage over time effects?
Depends on the sort of scaling or if it is just like an upgrade that applies to all units.
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