Save-Point
Element Absorbing Armor - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Element Absorbing Armor (/thread-2434.html)



Element Absorbing Armor - Bearcat - 03-07-2008

Element Absorbing Armor
Version: 1.01

Introduction

This is a short script I wrote that allows you to make armor and states that absorb, nullify, or double damage from elemental attacks, in addition to the halving allowed by the standard scripts.

Demo

Demo

.zip   Element_Absorbing.zip (Size: 187.36 KB / Downloads: 0)

Instructions

Paste the scripts above main, then read the comments in the demo to configure your armors and states.


Compatibility

Works fine with or without SDK, but it overwrites element_rate in both Game_Actor and Game_Enemy rather than aliasing, so it may conflict with scripts that use or modify those

Author's Notes

You can post bug reports here, or PM me.

Terms and Conditions

No restrictions (as long as credit is given).


Element Absorbing Armor - mageone - 10-06-2009

hello,
i dont mean to post on old subject but well... the link is broken... could you please fix that ? o.o
thanks !


Element Absorbing Armor - DerVVulfman - 10-06-2009

Glad you did actually. I have the script somewhere at home. Unfortunately, I am at work so I cannot get to re-upload for another 6 hours.
Link fixed. The url ended with .zipj. There is no J in .zip. Tongue sticking out


RE: Element Absorbing Armor - Metalknight - 04-24-2013

I apologize for the necropost, but I have a small question about this script that I'd feel silly making a new topic for, and I can't seem to PM anybody.

Basically, I was wondering if there was a way to edit this code, so that after a state nulls/absorbs/doubles damage from a given element, the state goes away immediately.
Yes, I know I could just make it so the state only lasts a single turn, but just ending the state quickly is not what I'm trying to do. I want a given state to last indefinitely, but get removed immediately if it activates this scripts functions a single time.
Is this possible?


RE: Element Absorbing Armor - MechanicalPen - 04-24-2013

Sure is! Here is an example of how to do it;
Code:
# Halve damage if element is protected
      if $data_states[i].guard_element_set.include?(element_id)
        result /= 2
        remove_state(i)
      end
Just add remove_state(i) inside the if statements. This will remove the state whenever its effect activates.


RE: Element Absorbing Armor - Metalknight - 04-25-2013

(04-24-2013, 08:16 PM)MechanicalPen Wrote: Sure is! Here is an example of how to do it;
Code:
# Halve damage if element is protected      if $data_states[i].guard_element_set.include?(element_id)        result /= 2        remove_state(i)      end
Just add remove_state(i) inside the if statements. This will remove the state whenever its effect activates.



Excellent! Thank you, that works like a charm!