flareteam / flare-engine

Free/Libre Action Roleplaying Engine (engine only)
http://flarerpg.org/
GNU General Public License v3.0
1.1k stars 186 forks source link

Tying status effects to magic shield & treating magic shield as a resource (i.e. HP/MP) #1854

Open MannajaX opened 1 year ago

MannajaX commented 1 year ago

Having trouble tying magic shield with a return damage effect. this could be done by having magic shield depend on an invisible resource (shield_health).

This way you can check for shield health > 0 to do all sort of things (return effect that lasts for as long as the shield holds). You can also regen shield if it's a resource, to have another layer of defense in your game.