Troop : Self-Switches
#1
Introduction

This script allows you to use Self-Switches for Troops, exactly like you would for Map Events.

While self-switches are originally intended for map events, this script allows you to use self-switches within a troop's event commands list.

Instructions

Place below default scripts and above Main.

Compatability

This was written within RPG Maker XP.

Not tested in VX or VX Ace but I'm assuming it should work there too; just change Interpreter into Game_Interpreter.

If that doesn't work, PM me and I'll see about writing a different version for VX and VX Ace.

Script

Content Hidden

Screen Shots

Nothing fancy, just an example of use. This is in the Database > Troops tab.

[Image: troopselfswitches_zpsx5rsqjko.png]

Message displays only once; first time you fight Basilisk (x2). Useful for quick tutorial battles.

Author's Notes

My good friend PK8 wrote a Self Data Suite, which also has Troop Self Switch capabilities. My script is only Troop-related, so I'm not exactly sure what the differences are. PK8's suite, on the other hand, handles tons more self-switch related content for Actors, Enemies, Troops, Maps, etc. so it might be worth checking out.

Additional Capabilities

You've gained new functions!

Code:
# You can set Troop Self-Switches A-D
$game_troop.switch_a = bool

# You can check Troop Self-Switches A-D too!
unless $game_troop.switch_a
  p 'Hello world!'
  $game_troop.switch_a = true
end

Use within Call Script and/or Conditional Branch > Call Script commands :)

These calls will only work while in battle; I have not designed them to work on map events.

Credits

Free for commercial and non-commercial use. Just 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 }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Troop : Self Switches Kain Nobel 1 5,865 02-02-2013, 01:07 PM
Last Post: yamina-chan
   Group Switches v1.1 PK8 1 6,758 11-12-2009, 12:45 AM
Last Post: Alpha-Mad
   Individual Troop Themes XP PK8 5 10,078 10-03-2009, 06:36 PM
Last Post: Alpha-Mad
   Individual Troop Battlebacks PK8 3 8,824 10-02-2009, 10:57 AM
Last Post: Cloak of Laser Cannon
   Individual Troop Victory MEs PK8 1 6,011 09-29-2009, 06:18 AM
Last Post: Yin
   [Unsupported] Actor & Party's Self Switches XP PK8 3 8,829 09-17-2009, 01:46 AM
Last Post: Yin
   Enemy Troop Extender SephirothSpawn 0 4,789 03-02-2008, 07:18 AM
Last Post: SephirothSpawn



Users browsing this thread: 1 Guest(s)