Element Absorbing Armor
#1
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).
Reply }
#2
hello,
i dont mean to post on old subject but well... the link is broken... could you please fix that ? o.o
thanks !

Fighting for peace is like screwing for virginity.
Reply }
#3
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
Reply }
#4
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?
Reply }
#5
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.
Reply }
#6
(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!
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Lycan Sneak Armor DerVVulfman 0 5,241 10-25-2015, 06:15 AM
Last Post: DerVVulfman
   XRXS No38: Element Limitation/Correction Helel 1 6,786 12-11-2009, 12:13 AM
Last Post: DerVVulfman
   Cursed Weapons and Armor RPG Advocate 0 4,483 03-03-2008, 04:51 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)