• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

Pokémon Following Character script

Status
Not open for further replies.
276
Posts
16
Years
Pokemon following character v3.1 is out.
It is the Final version, working on install guide, you can download it and use as a base. Haven't test with near May 7th version of starter kit
Don't use it if you can't understand how it work.


Download:

V3.1: http://www.mediafire.com/?68wv26ilkc1b1w1

Changes log:

Spoiler:


Working on:
  • Pokemon jump over event
  • Get item from following Pokemon
  • Pokemon following can run
  • Map connection bug
  • Control the the following Pokemon
  • Can't suft with dependent event
  • Walking will make your Pokemon happier
  • Animated menu to show you what is the curent Pokemon
  • Change sprite when fainted
  • "Pokemon" seem happy/not happy, ...


 
Last edited:

Klofkac

He's back!
336
Posts
14
Years
How I can make script decreasing number of following pokémon? (like D adds and S removes)?

I found bug: When I recall all pokémon and I go to other map, then I "change_number" and runtime error will appear.
 
Last edited:

Birdybot

-insert witty phrase here-
139
Posts
14
Years
I can't have more Pokémon following me, even when I press 'D'. And the sprite of the following Pokémon is always 'nil.png'. -confuzzled-
 
10
Posts
15
Years
  • Seen Feb 24, 2012
I did everything as the video, and it appeared

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 7, map 33 (Littleroot Town):

(eval):1:in `pbExecuteScript'undefined local variable or method `create_6_dependent_event' for #<Interpreter:0x4937790>

***Full script:

create_6_dependent_event


Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

Sorry for the bad English
 

Poeman

Banned
755
Posts
15
Years
  • Age 29
  • Seen Nov 1, 2012
Error:
Pokemon Storage line 267
Undefined local variable or method 'auto_change_without_animation' for pokemonstorageScreen:Class

Any help on what I did wrong?
 

キラキラ

KiraKira
48
Posts
14
Years
  • Age 32
  • Seen May 17, 2011
Excellent work! :]
I think I might just use this when I figure how it works.
 
Last edited:
276
Posts
16
Years
How I can make script decreasing number of following pokémon? (like D adds and S removes)?

I found bug: When I recall all pokémon and I go to other map, then I "change_number" and runtime error will appear.

Yes, you can use S to Remove Pokemon.

An installation video will certainly make it easier.
I'll use this.

Alos, people still use windows 95/98?!!!!

It is Window 7. I used Classic Theme to play Tomb Raider.

I can't have more Pokémon following me, even when I press 'D'. And the sprite of the following Pokémon is always 'nil.png'. -confuzzled-

Check "if $pokenum ==0" if you type "if $pokenum =0", Pokémon'll always 'nil.png'

I did everything as the video, and it appeared

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 7, map 33 (Littleroot Town):

(eval):1:in `pbExecuteScript'undefined local variable or method `create_6_dependent_event' for #<Interpreter:0x4937790>

***Full script:

create_6_dependent_event


Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

Sorry for the bad English

Maybe you don't have enough events to make dependent events.


Error:
Pokemon Storage line 267
Undefined local variable or method 'auto_change_without_animation' for pokemonstorageScreen:Class

Any help on what I did wrong?
You pasted it after "end", see video and careful with three "end" lines.

Excellent work! :]
I think I might just use this.
Copy a event 200 times
 

Birdybot

-insert witty phrase here-
139
Posts
14
Years
I checked, and in PokemonFollowingCharacter, at least, all the 'if $pokenum==0's were as they should be, like you said. I'm still getting an error;

'Script 'PokemonFollowingCharacter' line 34: NoMethodError occurred.
undefined method 'x' for nil:NilClass'
 

Ki77y666

I'm with stupid ^
118
Posts
15
Years
i get tis message when i test it out

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 22, map 39 (Oak's Lab):

Section126:445:in `addEvent2'undefined method `x' for nil:NilClass

***Full script:

Kernel.pbAddPokemon(
PBSpecies::PIKACHU,5
)
# Get the Pokémon just added
p=$Trainer.party[
$Trainer.party.length-1]
pbAutoLearnMove(p,PBMoves::TACKLE)
auto_change_without_animation


Interpreter:238:in `pbExecuteScript'

DependentEvents:15:in `pbAddDependen'

Pokemon folow you:160:in `auto_change_without_animation'

(eval):8:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------



pleaz help
 
276
Posts
16
Years
i get tis message when i test it out

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 22, map 39 (Oak's Lab):

Section126:445:in `addEvent2'undefined method `x' for nil:NilClass

***Full script:

Kernel.pbAddPokemon(
PBSpecies::PIKACHU,5
)
# Get the Pokémon just added
p=$Trainer.party[
$Trainer.party.length-1]
pbAutoLearnMove(p,PBMoves::TACKLE)
auto_change_without_animation


Interpreter:238:in `pbExecuteScript'

DependentEvents:15:in `pbAddDependen'

Pokemon folow you:160:in `auto_change_without_animation'

(eval):8:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------



pleaz help

Add creat_6_dependent_event above auto_change_without_animation
 

Ki77y666

I'm with stupid ^
118
Posts
15
Years
now i get this

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 210, map 39 (Oak's Lab):

Section126:484:in `addEvent'undefined method `x' for nil:NilClass

***Full script:

Kernel.pbAddPokemon(
PBSpecies::PIKACHU,5
)
creat_6_dependent_event
auto_change_without_animation


Interpreter:238:in `pbExecuteScript'

Game_Player_:17:in `pbAddDependency2'

Pokemon follow you:225:in `creat_6_dependent_event'

(eval):4:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'
 
276
Posts
16
Years
now i get this

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 210, map 39 (Oak's Lab):

Section126:484:in `addEvent'undefined method `x' for nil:NilClass

***Full script:

Kernel.pbAddPokemon(
PBSpecies::PIKACHU,5
)
creat_6_dependent_event
auto_change_without_animation


Interpreter:238:in `pbExecuteScript'

Game_Player_:17:in `pbAddDependency2'

Pokemon follow you:225:in `creat_6_dependent_event'

(eval):4:in `pbExecuteScript'

Interpreter:1652:in `eval'

Interpreter:238:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'



Interpreter:279:in `pbExecuteScript'

Interpreter:1652:in `command_355'

Interpreter:496:in `execute_command'

Interpreter:190:in `update'

Interpreter:104:in `loop'

Interpreter:195:in `update'

Scene_Map:100:in `update'

Scene_Map:98:in `loop'

Scene_Map:111:in `update'

Scene_Map:67:in `main'

Did you config this correctly ?

###########################################
#### Config Script For Your Game Here ####
###########################################

Animation_Come_In = 447 #<= ID of Animation When Pokemon Come In PokeBall
Animation_Come_Out = 446 #<= ID of Animation When Pokemon Come Out PokeBall
Default_Following_Pokemon_Number = 1 #<= Default Number Of Following Pokemon
Pokemon_1_ID = 142 #<= ID Of Event Use To Make First Pokemon, Should Over 200
Pokemon_2_ID = 143 #<= ID Of Event Use To Make Second Pokemon, Should Over 200
Pokemon_3_ID = 144 #<= ID Of Event Use To Make Third Pokemon, Should Over 200
Pokemon_4_ID = 145 #<= ID Of Event Use To Make Fourth Pokemon, Should Over 200
Pokemon_5_ID = 146 #<= ID Of Event Use To Make Fifth Pokemon, Should Over 200
Pokemon_6_ID = 147 #<= ID Of Event Use To Make Sixth Pokemon, Should Over 200
Common_Event_1 = 3 #<= ID of Common Event When You Talk To First Pokemon
Common_Event_2 = 3 #<= ID of Common Event When You Talk To Second Pokemon
Common_Event_3 = 3 #<= ID of Common Event When You Talk To Third Pokemon
Common_Event_4 = 3 #<= ID of Common Event When You Talk To Fourth Pokemon
Common_Event_5 = 3 #<= ID of Common Event When You Talk To Fifth Pokemon
Common_Event_6 = 3 #<= ID of Common Event When You Talk To Sixth Pokemon
 

Ki77y666

I'm with stupid ^
118
Posts
15
Years
that was my prob now i have a new on when i change pokemon

---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError

Message: undefined method `erase' for nil:NilClass

DependentEvents:504:in `refresh'

DependentEvents:502:in `eachEvent'

DependentEvents:373:in `each'

DependentEvents:373:in `eachEvent'

DependentEvents:502:in `refresh'

DependentEvents:521:in `update'

AnimationSprite:94:in `update'

AnimationSprite:93:in `each'

AnimationSprite:93:in `update'

Scene_Map:51:in `updateSpritesets'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------


and when i try to change the amount of pokemon by pressing z nothing happens also when i deposit my first pokemon the sprite of it is still there
 
Last edited:
Status
Not open for further replies.
Back
Top