No problem! And I'll release an update to support that and registering protagonists as partners soon.And there we go! Many thanks and keep up the good work! I can't wait to be able to set up fights between my protagonists.
No problem! And I'll release an update to support that and registering protagonists as partners soon.And there we go! Many thanks and keep up the good work! I can't wait to be able to set up fights between my protagonists.
- Added registering/battling other characters (look in script guide for examples)
WARNING! v2.0 is not compatible with the previous versions. This means that you MUST start a new save for testing if you update this script.
In other words, if you've already released a game using an earlier version of this script, then you cannot update to v2.0 without ruining players' old saves.
- Revamped internal structure of how character data is stored
- Added trading between characters (examples in script guide)
- Trade Pokemon 1 for 1 (just like trading with an NPC)
- Send...
---------------------------
PKMN Essentials - V17.2
---------------------------
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `gsubPN' for Kernel:Module
Messages:1044:in `pbMessageDisplay'
Messages:1316:in `pbMessage'
Messages:1326:in `pbConfirmMessage'
Compiler:3450:in `pbTrainerTypeCheck'
Compiler:3467:in `pbTrainerBattleCheck'
Compiler:4300:in `pbConvertToTrainerEvent'
Compiler:3509:in `pbCompileTrainerEvents'
Compiler:3504:in `each'
Compiler:3504:in `pbCompileTrainerEvents'
Compiler:3499:in `each'
This exception was logged in
C:\Users\cgoog\Saved Games\PKMN Essentials _ V17_2\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
- Fixed gsubPN error when compiling trainer events (must be manually fixed following lines 100-102 of this script) (June 30, 2020)
Make sure you've installed the code from lines 39-84 correctly, and that you ranheyo I followed everything in this script and for some reason, the switch option does not show
pbEnableCharacterCommandSwitching
- Fixed bug where \PN0 wouldn't work if pbSwitchCharacter had not been called yet in-game
- Added compatibility for mej's Follow Pokemon script (added a wrong fix before)
- Updated Script Compatibility step 1
- Fixed crash on startup for some users (presumably users who don't have a save folder)
v3.0 - September 3, 2020
NOTE: This version (and all future versions) will ONLY be compatible with Essentials v18. You can download the v17.2/v16.2 version (v2.3) from the main post.
- Updated to v18
Thank you! Yeah, there are 2 variables that store the "current" character ID actually: "$PokemonGlobal.playerID" and "$Trainer.metaID". They're both always set to the same ID, and have a range of 0-7 (for 8 possible characters), where 0 is your first character, 1 is the second, etc. If you're using this in Conditional Branches in events, you'd use the Script option to compare this value to certain IDs.I've been testing out the script in v18, it's brilliant! I'd like to store who I'm playing as in a variable every time I switch. Do you know of a way I could go about doing that? ^^
Thank you! Yeah, there are 2 variables that store the "current" character ID actually: "$PokemonGlobal.playerID" and "$Trainer.metaID". They're both always set to the same ID, and have a range of 0-7 (for 8 possible characters), where 0 is your first character, 1 is the second, etc. If you're using this in Conditional Branches in events, you'd use the Script option to compare this value to certain IDs.
Hiya! The script works amazing so far. Though is there a way to like "sync" their locations? I'm planning on using the other player as a "partner" with their own party and such to help in double battles which works great, but the problem I'm facing is that their locations are different when switching.
I think I can briefly switch player characters and transfer that partner player to the same map as the first player every time there is a map transition but is there an less convoluted alternative way to do this? But I'm also using Essentials v17.2 so if it's not possible to update the script with a snippet then I can try the transfer method.
Also, if I progress the story with one player with switches/vars would I also have to set the story switches/vars for the second player too or is that gamewide?
pbSetLastMap(CHARACTER_ID, MAP_ID, X, Y, DIRECTION)
pbSetLastMap(($PokemonGlobal.playerID + 1) % 2, $game_map.map_id, $game_player.x, $game_player.y, $game_player.direction)
I've updated the script installation instructions to include compatibility with Mr. Gela's Name Windows script. If you're using both scripts, you'll need to follow step 6 of the new \PN0 installation instructions to add that compatibility.