Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Reload this Page [Essentials script] Pokémon Following Character script

Notices
For all updates, view the main page.

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.



Closed Thread
 
Thread Tools
  #26    
Old January 15th, 2010 (03:43 PM).
MegaNew's Avatar
MegaNew
Pokémon Unetta Owner
 
Join Date: Jan 2010
Gender: Male
Umm what if i only want them to walk with 1 pokemon?
the pokemon 1st in there party..
how would i do tht?
  #27    
Old January 15th, 2010 (07:41 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
Press D button. Now Iam making new version.
__________________
My Deviantart: help-14.deviantart.com
  #28    
Old January 16th, 2010 (10:15 AM). Edited January 16th, 2010 by Trikeboy.
Trikeboy's Avatar
Trikeboy
Mime Jr.
 
Join Date: Mar 2009
Gender:
Hi, excellent script. I have it working on the map with the events but if I go to another map and press D, I get this message:

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

Message: undefined method `erase' for nil:NilClass

DependentEvents:546:in `refresh'

DependentEvents:544:in `eachEvent'

DependentEvents:386:in `each'

DependentEvents:386:in `eachEvent'

DependentEvents:544:in `refresh'

DependentEvents:563:in `update'

AnimationSprite:81:in `update'

AnimationSprite:80:in `each'

AnimationSprite:80:in `update'

Scene_Map:47:in `updateSpritesets'



This exception was logged in errorlog.txt.

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

Any ideas?
__________________
I don't use "uber" Pokemon, I don't calculate stat values, I don't breed my way to perfection, and I don't care about natures. I catch my Pokemon the way they are, and treat them like individuals instead of brainless drones. If you use this philosophy, copy & paste this into your signature.
  #29    
Old January 16th, 2010 (04:02 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
Yep, I already know this bug, that why i am making new vesion.
__________________
My Deviantart: help-14.deviantart.com
  #30    
Old January 16th, 2010 (05:33 PM).
MegaNew's Avatar
MegaNew
Pokémon Unetta Owner
 
Join Date: Jan 2010
Gender: Male
when u think new version will be released?
  #31    
Old January 16th, 2010 (07:57 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
Maybe next week or later because i have a problem with my project.
__________________
My Deviantart: help-14.deviantart.com
  #32    
Old January 17th, 2010 (03:23 PM).
Trikeboy's Avatar
Trikeboy
Mime Jr.
 
Join Date: Mar 2009
Gender:
Just discovered that if you recreate the 6 dependent events on every map, the code works everywhere. Just have to make sure you keep all the correct event numbers, and the ID over 200.
__________________
I don't use "uber" Pokemon, I don't calculate stat values, I don't breed my way to perfection, and I don't care about natures. I catch my Pokemon the way they are, and treat them like individuals instead of brainless drones. If you use this philosophy, copy & paste this into your signature.
  #33    
Old January 19th, 2010 (07:03 PM).
Birdybot's Avatar
Birdybot
-insert witty phrase here-
 
Join Date: Jun 2009
Location: In a place.
Age: 19
Gender: Female
Nature: Jolly
I can't wait for that new script you mentioned Also, you should do a dual screen tutorial! Or will that remain a secret? I suppose it is quite a big feature, I could understand if you don't wanna do a tutorial for it

Good luck with the new version, anyway.
__________________


  #34    
Old January 22nd, 2010 (04:03 PM).
ShinyMeganium
Trainer
 
Join Date: Apr 2008
Gender:
3 Questions:
1. As far as I understood from the comments, it is possible, but I'm asking anyways...
Is it possible to limit the player to walking with 1 Pokemon only?
2. Again, probably possible but...
Can I activate the script, say, only if X Pokemon is in the team?
3. If 1 and 2 are positive, can I force the script to work (not allowing the player to choose) under these conditions?
  #35    
Old January 22nd, 2010 (04:52 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
The answer of all your questions are yes, yes and yes.
__________________
My Deviantart: help-14.deviantart.com
  #36    
Old January 23rd, 2010 (08:32 AM).
Birdybot's Avatar
Birdybot
-insert witty phrase here-
 
Join Date: Jun 2009
Location: In a place.
Age: 19
Gender: Female
Nature: Jolly
Are you going to work on the problem of when you run, the Pokémon following you don't speed up?
__________________


  #37    
Old January 23rd, 2010 (11:05 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
It is default speed of dependent event, i'll ask poccil for it.
__________________
My Deviantart: help-14.deviantart.com
  #38    
Old January 24th, 2010 (03:27 PM).
MegaNew's Avatar
MegaNew
Pokémon Unetta Owner
 
Join Date: Jan 2010
Gender: Male
when are you gonna release new version?
  #39    
Old January 25th, 2010 (07:36 PM).
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
A demo video for v2.2:
__________________
My Deviantart: help-14.deviantart.com
  #40    
Old January 26th, 2010 (04:13 AM).
Klofkac's Avatar
Klofkac
He's back!
 
Join Date: Jun 2009
Location: Sharpedo Bluff
Age: 18
Gender: Male
So new wersion will be released soon! I hope those bugs from v2 will be repaired!
__________________

I AM BACK!
  #41    
Old January 26th, 2010 (05:34 AM).
Gigatom~'s Avatar
Gigatom~
Pokemon Ruthenium Creator ~
 
Join Date: Jan 2010
Age: 19
Gender: Male
Nice Script, very usefull. Looking forward to use it.

Gigatom~
__________________


Check out my deviantArt! :3
  #42    
Old January 28th, 2010 (08:57 AM).
MegaNew's Avatar
MegaNew
Pokémon Unetta Owner
 
Join Date: Jan 2010
Gender: Male
Awesome! Looks like this means we have only one pokemon following us :D instead of all 6
Just what i wanted :D
  #43    
Old February 4th, 2010 (02:44 PM).
Klofkac's Avatar
Klofkac
He's back!
 
Join Date: Jun 2009
Location: Sharpedo Bluff
Age: 18
Gender: Male
I have small question about the v2.2: When you will release it?
__________________

I AM BACK!
  #44    
Old February 7th, 2010 (01:20 PM).
MegaNew's Avatar
MegaNew
Pokémon Unetta Owner
 
Join Date: Jan 2010
Gender: Male
I wanted to know...you think this can work with shiny pokemon? or alternate forms?
  #45    
Old February 10th, 2010 (01:22 PM).
fiox
Beginning Trainer
 
Join Date: Feb 2010
looks cool .... realy cool
  #46    
Old February 19th, 2010 (07:17 AM). Edited February 19th, 2010 by ~Frozen Darkness~.
~Frozen Darkness~'s Avatar
~Frozen Darkness~
It's watching you...
 
Join Date: Apr 2008
Location: Staten Island, NY
Age: 17
Gender: Male
Nature: Docile
Quote originally posted by MegaNew:
I wanted to know...you think this can work with shiny pokemon? or alternate forms?
It could definitely work for alt. forms if you program the forms in the right way.

As for shinies, I think it could be possible, say if the Filename had an "s" at the end, then I suppose in the new version, it could work, should help-14 want to do it.

Just discovered a bug:

Walked into a building, then went out, and it just warped me to a different spot on the same map, yet it said, "Oldale Town", which was the town that the house was in. (I named the building Oldale Pokemon Mart, BTW)

I'm pretty sure this happens because of the pokemon still being in the mart while the player is outside.


Just wanted to let help-14 know so he can fix it in the new version. Otherwise, I'm not encountering any other problems.

EDIT: I decided to research the surf/fly glitch thing, and I fixed it!

Spoiler:
Step 1: First, go to the Script PokemonHiddenMovesand go to line 474 or near that.

Step 2: Delete where it says something like "pbHasDependentEvents?" and delete everything past that until you reach an end a few lines down. Delete that end and stop. Now you can Fly!

Step 3: This is just a bit more complicated. Go to line 262 of the same script. See where it says "pbHasDependentEvents?" Delete it until you meet and end and delete that end as well. But wait! There's more!

Step 4: If you were to stop at Step 3, your Pokemon would glitch up when surfing. So, go to the line a few lines down that says:

Kernel.pbMessage(_INTL("{1} used Surf!",speciesname))

and paste this just below:

pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent1"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent2"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent3"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent4"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent5"),[PBMoveRoute::Graphic,"nil.png",0,2,0])

This will allow you to surf!

Step 5: Use and enjoy! No credit needed, but is still appreciated.
__________________
Signature is blank right now :/
  #47    
Old February 28th, 2010 (06:30 AM).
Iarama's Avatar
Iarama
RMXP User
 
Join Date: Feb 2010
Location: United States
Age: 19
Gender: Male
Nature: Relaxed
Have yuo considered making a simple(r) demo so people dont get confused because I have no idea how to do all of this editing.
  #48    
Old February 28th, 2010 (08:05 AM).
SpawnHyuuga's Avatar
SpawnHyuuga
Elite Four Spawn
 
Join Date: Apr 2007
Location: New Bark Town, Johto
Gender: Male
Nature: Timid
Quote originally posted by Iarama;558I6278:
Have yuo considered making a simple(r) demo so people dont get confused because I have no idea how to do all of this editing.
I agree, maybe a demo like script makers use for most 'advanced scripts.' It's just has to be the latest version of Pokemon Essentials with these scripts placed correctly as well as map and common events, and optionally it shows how it works through event on a test map.

EDIT: I got an error, on trying to use it just for my own personal tests. I'm not quite sure if I have the latest version. (There's an idea, add a comment at the top of the script explaining which version you have.)

Code:
Exception: RuntimeError
Message: Script error within event 4, map 6 (Player's House):
Exception: NoMethodError
Message: Section132:468:in `addEvent2'undefined method `x' for nil:NilClass
***Full script:
pbAddPokemon(PBSpecies::MUDKIP,15)
auto_change_without_animation

Interpreter:239:in `pbExecuteScript'
DependentEvents:38:in `pbAddDependen'
Caterpillar:160:in `auto_change_without_animation'
(eval):2:in `pbExecuteScript'
Interpreter:1583:in `eval'
Interpreter:239:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'

Interpreter:274:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
__________________
Any images or works I post, are that of my own creation, or I have properly credited the artist/creator. If I am the creator, you may use my work in any way you see fit, provided you give credit. If it is someone else's work, please give them a message, asking if you can use it.
  #49    
Old February 28th, 2010 (04:55 PM).
Iarama's Avatar
Iarama
RMXP User
 
Join Date: Feb 2010
Location: United States
Age: 19
Gender: Male
Nature: Relaxed
Ya and if there the errors are because of mistakes while importing the script it could make all of the diffrence.
  #50    
Old March 8th, 2010 (11:38 AM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
Very good script!
Hey, i followed all the instalation steps and it works fine, but when i deposite a pokemon, it appears this error:
Spoiler:
Exception: RuntimeError
Message: Script error within event 14, map 25 (Test Map 2):
Exception: NoMethodError
Message: Section131:542:in `refresh'undefined method `erase' for nil:NilClass
***Full script:
pbPokeCenterPC

Interpreter:239:in `pbExecuteScript'
DependentEvents:540:in `eachEvent'
DependentEvents:384:in `each'
DependentEvents:384:in `eachEvent'
DependentEvents:540:in `refresh'
DependentEvents:559:in `update'
AnimationSprite:81:in `update'
AnimationSprite:80:in `each'
AnimationSprite:80:in `update'
Scene_Map:47:in `updateSpritesets'

Interpreter:274:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'


What's the problem?
What should i do?

Greetings,

Sonic1
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 05:07 AM.