States : Expiration States
#1
Introduction

As confusing as the title sounds, this is a Status Effect script which causes the expiration of Status Effect A to switch to Status Effect B. A good example of this is "Death Sentence" from the Final Fantasy series...

Doom (3) => Doom (2) => Doom (1) => Dead

...Where "Death Sentence" (or, in this case, "Doom") lasts for three turns before the target dies.

Instructions

Place below default scripts and above Main.

You can see an example of the "Death Sentence" cycle which I've set up in the script for my game. Just look for the constant Expiration and see how I've set it up.

Script

Content Hidden

Compatability

Written for RPG Maker XP. It is possible it works in VX or VX Ace, but I haven't tested. If it does, let me know and I'll change the icon.

Author's Notes

If you can't tell by now, yes, most of my scripts are minor add-ons and they're usually inspired by Final Fantasy for some reason.

Credits

Free to use in commercial and non-commercial games. Credit Kain Nobel and enjoy!
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }
#2
Okay, first of all: Thanks for the script:
Im using your script alongside Atoas ACBS.
And when I have several states on I get the error message
NoMethodError occured, undefined method '>' for nil:NilClass

it happens on Game battler 2 line 223:      

Quote:if @states_turn[i] > 0


In full context:


Quote:#--------------------------------------------------------------------------
 # * Natural Removal of States (called up each turn)
 #--------------------------------------------------------------------------
 def remove_states_auto
   for i in @states_turn.keys.clone
     if @states_turn[i] > 0
       @states_turn[i] -= 1
     elsif rand(100) < $data_states[i].auto_release_prob
       remove_state(i)
     end
   end
 end


I think its because your script does affect the very same method.
Anyways to fix that?

BTW: IM NOT using SDK, is this even compatible without SDK?
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   KDamage States XP kyonides 0 1,022 06-29-2023, 02:20 AM
Last Post: kyonides
   Kolloseum States XP kyonides 55 72,196 02-26-2019, 08:28 AM
Last Post: kyonides
   Unalterable States DerVVulfman 0 4,229 01-22-2019, 01:04 AM
Last Post: DerVVulfman
   DVV's States Rotation DerVVulfman 5 10,015 04-21-2016, 05:41 AM
Last Post: DerVVulfman
   Tiered States MechanicalPen 10 18,291 08-08-2013, 03:36 AM
Last Post: Karindanslav
   States : Toggle Kain Nobel 0 4,985 10-09-2012, 05:22 PM
Last Post: Kain Nobel
   States : Spread Kain Nobel 0 4,801 10-09-2012, 05:04 PM
Last Post: Kain Nobel
   States : Spread Kain Nobel 2 6,291 07-10-2012, 04:44 PM
Last Post: Kain Nobel
   Kristina's Map States DerVVulfman 1 6,197 06-30-2010, 09:33 AM
Last Post: Nadim
   States Activation System aka State-Based Passive Augments, Version 0.2 Charlie Fleed 7 12,911 03-06-2010, 09:26 PM
Last Post: fgsfds



Users browsing this thread: 1 Guest(s)