KTeams XP

KTeams XP

by Kyonides
​

Introduction


This is nothing but the minimalist Team Swapper script!

Please note that the OTHER_TEAMS Constant helps you setup the starting members of those new teams, ordered by their ID (aka the order in which they were created).

Script Calls
Use Any of the following calls to Swap Teams At Once.

Exact Same Location for Next Team
Ruby:
swap_team(TeamID)

Next Team sent to a different Map
Ruby:
swap_team(TeamID, MapID)

Next Team sent to a different Map with different Coordinates
Ruby:
swap_team(TeamID, MapID, MapX, MapY)

Next Team, different Map, different Coordinates, facing another Direction
Ruby:
swap_team(TeamID, MapID, MapX, MapY. FaceDir)


Terms & Conditions

Free for use in ANY game.
Due credit is mandatory, you know.
That's it! 😛
it works perfectly, but if I use the reset key (F12) at any time and try to start a new game it returns this error or after loading a savefile where no team change occurred and trying to change the team:
Kteams_xp-reset_game.png
Script Upgraded!​

It's not a bug caused by my script but the dreadful F12 reset button. Even so, I have applied the corresponding modifier to bypass all the errors that would otherwise occurr when the game tries to reload the aliased method names.

By the way, I've also shorten the script calls so they can easily fit the RMXP's script call box.

Original thread: https://forums.rpgmakerweb.com/threads/kteams-xp.163912/