FL
Pokémon Island Creator
- 2,508
- Posts
- 14
- Years
- Seen yesterday
Nice! I was looking for something like this :) but I have one question :
I call the script after or before the gender selection in the intro?
I think I will use it to change outfit, so it will be after I guess?
Thanks in advance and sorry for my bad english
Comment: Initializes player 0 (PlayerA).
["pbChangePlayer" takes a value from 0 through 7;
other values are not valid. To edit information about
a player, choose "Set Metadata" in the Pokemon
Essentials Editor and select "Global".]
Script: pbCharacterSelection(overworld,battle)
Use the code:how does this script work?
i create a new script in script editor and name it "characterselect" then i go to "Intro" (map) and open the event where you must choose if you boy or girl and make this
but this doesn´t work for me ...
sorry my english and my knowledge about essentials and scripting is very weak.
please help to get this script work for me i use the newest essentials (16v2)....
i hope anyone can help me :(
overworld = ["trchar000","trchar001","trchar002","trchar003"]
battle = ["trainer000","trainer001","trainer002","trainer003"]
result = pbCharacterSelection(overworld,battle)
pbChangePlayer(result)
I tested right now on Essentials V16.2 and it's working. Probably is something that you done wrong on your code, like don't deactivate the event who trigger the script. Try putting a message after the character selection script call. If it doesn't works, post your code here.Everytime I choose character in the screen for the first click it looped me back to selection screen. After second click then the game proceed with the character you chose. I tried with any no. of character choices and it doesn't affect it. Even I answered no first then yes after wards it still looping me back.
Anyone with the same case?Hope anyone can help me here.
I tested right now on Essentials V16.2 and it's working. Probably is something that you done wrong on your code, like don't deactivate the event who trigger the script. Try putting a message after the character selection script call. If it doesn't works, post your code here.
Exception: NoMethodError
Message: Section173:517:in `pbChangePlayer'undefined method `<' for nil:NilClass
***Full script:
pbChangePlayer(result)
Interpreter:243:in `pbExecuteScript'
(eval):1:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
I don't understand. You want a player selection with only one choice? I guess that this script should work, but what is the point?Question, do any of you guys know how to remove the gender selection? I want the character and characters name to not be optional.
I don't understand. You want a player selection with only one choice? I guess that this script should work, but what is the point?
You mean the "character selection" beeing used to select outfits instead of using it for different character?No I want to remove the choice option all together and make you play as just the one character.
@> Oak talking here
@> Script: pbChangePlayer(0)
@> Script: pbTrainerName(Red)
---------------------------
Shadowname
---------------------------
Exception: RuntimeError
Message: Script error within event 1, map 1 (Intro):
Exception: SyntaxError
Message: (eval):11:in `pbExecuteScript'compile error
(eval):8: syntax error
(eval):11: syntax error
***Line '(overworld,battle)' shouldn't begin with '('. Try
putting the '(' at the end of the previous line instead,
or using 'extendtext.exe'.
***Line '(overworld,battle)' shouldn't begin with '('. Try
putting the '(' at the end of the previous line instead,
or using 'extendtext.exe'.
***Full script:
overworld =
["trchar000","trchar001","trchar002",
"trchar003"]
battle =
["trainer000","trainer001","trainer00
2","trainer003"]
result = pbCharacterSelection
(overworld,battle)
pbChangePlayer(result)
pbCharacterSelection
(overworld,battle)
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
This exception was logged in
C:\Users\User\Saved Games/Shadowname/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
something here
Exception: SyntaxError
***Line '(overworld,battle)' shouldn't begin with '('. Try
putting the '(' at the end of the previous line instead,
or using 'extendtext.exe'.
Excepción: SyntaxError
Mensaje: (eval):9:in `command_355'compile error
(eval):8: syntax error
EOW Antilag 1:201:in `command_355'
Interpreter:494:in `eval'
EOW Antilag 1:201:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Did you correctly defined the players on Metadata PBS?Edit: I fixed that, the error was another script that i have, but i have another error, is not a error message, when i choose another character nothing happens i still have the same overworld sprite