Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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 Edition kyonides 0 463 06-29-2023, 02:20 AM
Last Post: kyonides
   Kolloseum States XP kyonides 55 63,368 02-26-2019, 08:28 AM
Last Post: kyonides
   Unalterable States DerVVulfman 0 3,543 01-22-2019, 01:04 AM
Last Post: DerVVulfman
   DVV's States Rotation DerVVulfman 5 8,751 04-21-2016, 05:41 AM
Last Post: DerVVulfman
   DoubleX RMMV Permanent States DoubleX 4 8,191 12-02-2015, 08:48 AM
Last Post: DoubleX
   DoubleX RMVXA Permanent States DoubleX 1 5,382 07-21-2015, 01:19 PM
Last Post: DoubleX
   Tiered States MechanicalPen 10 16,028 08-08-2013, 03:36 AM
Last Post: Karindanslav
   States : Toggle Kain Nobel 0 4,466 10-09-2012, 05:22 PM
Last Post: Kain Nobel
   States : Spread Kain Nobel 0 4,234 10-09-2012, 05:04 PM
Last Post: Kain Nobel
   Victor Engine - Action States Victor Sant 0 4,164 07-17-2012, 05:04 AM
Last Post: Victor Sant



Users browsing this thread: