The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Closed Thread
Thread Tools
  #1301  
Unread January 23rd, 2008, 02:05 PM
victorspvl's Avatar
victorspvl
Beginning Trainer
 
Join Date: Aug 2007
Gender:
I put a new version of the starter kit on my game and now is appearing almost all the time the sentence.
Hangup
The script is talking too long.

What I possoa do to stop this happening?

To be more exact.
The problem is this.
Exception: Hangup
Message: The script is taking too long. The game will restart.
Compiler:2308:in `load'
Compiler:2308:in `load_data'
Compiler:2308:in `pbCompileTrainerEvents'
Compiler:2306:in `each'
Compiler:2306:in `pbCompileTrainerEvents'
Compiler:2559:in `pbCompileAllData'
Compiler:2598

What do I do to stop this happening?

Last edited by victorspvl; January 23rd, 2008 at 04:07 PM. Reason: Your double post has been automatically merged.
  #1302  
Unread January 24th, 2008, 03:12 AM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
Ok guys I need help. What im trying to do is do the first rival event from pokemon crystal where your rival steals a pokemon from professor elm and you run into him. The problem im having is after you duel him he says hes going to be the best pokemon trainer like normal then after that he moves and then the whole event starts all over again. Ive tried turning off the switch that turns the event on but that just stops the movement completely. Also called the end battle script on all parts... didnt make a difference. Anyway... heres the event im talking about....

Code:
Script:Kernel.pbNoticePlayer(get_character(0))
Wait: 15 Frames
Set Movement Route: Player, Turn right,
Set Movement Route: Rival, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left
Wait For Moves Completion
Text: ..... ..... .....
Text: You got a pokemon at the lab.
Text: What a waste a wimp like you.
Text: Don't you get what i'm saying?
Text: Well, I too, have a good pokemon.
Text: I'll show you what I mean!
Comment: Rival Choice 1 switch = Totodile
Conditional Branch: Switch [042: Rival Choice 1] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,1)
Control Self Switch A = ON
Branch End
Branch End

Comment: Rival Choice 2 switch = Chikorita
Conditional Branch: Switch [043: Rival Choice 2] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,2)
Control Self Switch A = ON
Branch End
Branch End

Comment: Rival Choice 3 switch = Cyndaquil
Conditional Branch Switch [044: Rival Choice 3] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,3)
Control Self Switch A = ON
Branch End
Branch End

Script: pbTrainerEnd
Text: ..... ..... .....
My names ?????.
Text: I'm going to be the worlds greatest pokemon trainer.
Set Movement Route: Player, Move Down, Turn Up, Turn Left
Comment: Switch 0040 is what turns this event on, Switch 0045 is for a different event. 
Set Movement Route: Rival, Move Up, Move Left, Move Left, Move Left, Move Up, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left, Switch 0040 OFF, Switch 0045 ON
Wait: 60 Frames
and heres the changes to trainernames and trainer.txt if you need them


Code:
83,RIVAL,?????,30,,,,Male
Code:
#-------------------
RIVAL
?????,1
1
TOTODILE,5
#-------------------
RIVAL
?????,2
1
CHIKORITA,5
#-------------------
RIVAL
?????,3
1
CYNDAQUIL,5
Normally id try to fix this myself but ive been trying for the past 5 hours and cant find what I did wrong. Also i was wondering how it would be possible to make a rival screen to insert your rival's name like you can with your own name. Cant find that anywhere in notes.html so i was wondering if that was implemented or not....
  #1303  
Unread January 24th, 2008, 06:48 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
If you're using Autorun or Parallel Process, you need to put Erase Event at the end, to avoid it looping. Hope that helps!
  #1304  
Unread January 24th, 2008, 02:12 PM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
Oh, sorry I forgot to say that I have it on event touch. Also tried it on player touch too and it doesnt make a difference. Tried erase event anyway and it didnt work T_T. Continuing as we speak messing with the event ill let you know if i get it working.

Last edited by NeoStar; January 24th, 2008 at 02:17 PM. Reason: Your double post has been automatically merged.
  #1305  
Unread January 24th, 2008, 04:40 PM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
Try setting a self switch on, then having a blank event page with the switch as its condition. If that fails, try putting the trainer battles on separate pages, and have them activated by other self switches.
  #1306  
Unread January 24th, 2008, 06:39 PM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
starting to hate this event...... first suggestion didnt work. Second suggestion works perfectly for one of the events (the 3rd page cyndaquil one) so I was thinking... yay finally got this event to work. But when i try it on the first and 2nd page the battle doesn't start. It goes through the welcome text skips the battle conditional branch then goes to the last part which... works fine..... I've tried just copying and pasting the cyndaquil event and switching the branch to the right switch and the battle still doesnt load. Im totally stumped on this one.

*edit* oh and they are all on event touch.
  #1307  
Unread January 24th, 2008, 07:04 PM
Krobelus's Avatar
Krobelus
RainbowNoodleWarrior
 
Join Date: Sep 2006
Location: Vancouver
Age: 22
Gender: Male
Nature: Adamant
@Neostar - What's the Script: pbTrainerEnd for anyway? I don't think I've ever used it, nor needed it.

-Krobe
__________________

YouTube Channel
Pokemon Pearl FC:
4296-8996-1956

Pokemon Heart Gold FC:
3009-0281-8050

Pokemon White 2 FC:
1765-0509-2291

  #1308  
Unread January 24th, 2008, 10:16 PM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
Try 6 event pages.
1: The intro speech, etc. Set to event touch. Then turn self switch A on.
2,3,4: A battle on each page. Autorun, conditions: self switch A and the appropriate rival switch. Then turn self switch B on.
5. Autorun, condition self switch B. After battle speech. Then turn self switch C on.
6. Action button, self switch C. Blank.

Try that.
  #1309  
Unread January 24th, 2008, 10:35 PM
Firemaker's Avatar
Firemaker
Pokemon Master
 
Join Date: Apr 2004
Location: In space
Age: 17
Gender:
Nature: Lonely
Make the first event page blank, totally. For when nothing is on, your first trip to Cherrygrove.
__________________
http://z8.invisionfree.com/Banto_Region
  #1310  
Unread January 25th, 2008, 03:42 AM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
@ Krobleus: Not entirely sure what it does I think it ends the trainer battle? I just put it in there because notes.html said that it had to be in there....

@ Everyone Else: Finally got it working. Here's what i had to do after trying out everyones suggestions. Just in case someone else is trying to do this event and has difficulties.

Code:
Page 1:

#Make an event so everything runs. I called it Elm Event 4
Conditions: Elm Event 4 Is On
Trigger: Event Touch

Script:Kernel.pbNoticePlayer(get_character(0))
Wait: 15 Frames
Set Movement Route: Player, Turn right,
Set Movement Route: Rival, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left
Wait For Moves Completion
Text: ..... ..... .....
Text: You got a pokemon at the lab.
Text: What a waste a wimp like you.
Text: Don't you get what i'm saying?
Text: Well, I too, have a good pokemon.
Text: I'll show you what I mean!
Control Self Switch A = ON
Page 2: 

Conditions: Self Switch A is ON
Trigger: Autorun

Comment: Rival Choice 1 switch = Totodile
Conditional Branch: Switch [042: Rival Choice 1] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,1)
Branch End
Branch End
Control Self Switch B = ON

Comment: Rival Choice 2 switch = Chikorita
Conditional Branch: Switch [043: Rival Choice 2] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,2)
Branch End
Branch End
Control Self Switch B = ON

Comment: Rival Choice 3 switch = Cyndaquil
Conditional Branch Switch [044: Rival Choice 3] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,3)
Branch End
Branch End
Control Self Switch B = ON

Page 3:
Text: ..... ..... .....
My names ?????.
Text: I'm going to be the worlds greatest pokemon trainer.
Set Movement Route: Player, Move Down, Turn Up, Turn Left
# Elm event 5 is for the event where you name your rival in professor elm's lab

Set Movement Route: Rival, Move Up, Move Left, Move Left, Move Left, Move Up, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left, Switch Elm Event 4 OFF, Switch Elm Event 5 ON
Wait: 60 Frames
Erase Event
 Control Self Switch C = ON
Page 4:

Conditions: Self Switch C is ON
Trigger: Action Button
#Blank event with self switch c as a trigger to prevent event from looping.
Anyway.... my second question hasnt been answered yet anyone know how to make an event where you can name your rival? Or if its been implemented?
  #1311  
Unread January 25th, 2008, 03:49 AM
Krobelus's Avatar
Krobelus
RainbowNoodleWarrior
 
Join Date: Sep 2006
Location: Vancouver
Age: 22
Gender: Male
Nature: Adamant
@Neostar - That's good you got it working, but for some reason, I don't use that command to end trainer battles. =/ Anyway, you can store any number/text in a variable, and call it with like \V, or something, similar to \Pn. I forgot which one it was, but yea, Poccil told me either a few pages back, or in a PM or something. I'll check afterwards =P

-Krobe
__________________

YouTube Channel
Pokemon Pearl FC:
4296-8996-1956

Pokemon Heart Gold FC:
3009-0281-8050

Pokemon White 2 FC:
1765-0509-2291

  #1312  
Unread January 25th, 2008, 08:39 AM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
A new version is available.

Changes:

Increased number of storage boxes to 40
Improved custom Tilemap's performance in large maps
Changed font installation code
Message system now supports "Change Text Options" event command
Fixed bug in 640x480 mode where battle transitions were
improperly displayed
Fixed Revival Herb bug where it restored half HP and not full HP.
New GifSprite class supports loading GIF images and animations
Fixed bug that causes error after losing a Trainer battle

For detailed changes, see this diff file.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #1313  
Unread January 25th, 2008, 08:41 PM
MR.GLITCH_KING's Avatar
MR.GLITCH_KING
~ThaEmbacy~
 
Join Date: Oct 2005
Nature: Adamant
very nice job poccil especially with that gif thing
__________________


  #1314  
Unread January 26th, 2008, 01:55 AM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
yes... very nice job keep up the good work.
  #1315  
Unread January 26th, 2008, 08:35 AM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
NeoStar:

I can sense one problem with your final solution, namely that the self switch B can turn on even if the player loses the battle. Here's how to fix it:

Code:
Comment: Rival Choice 1 switch = Totodile
Conditional Branch: Switch [042: Rival Choice 1] == ON
  Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,1)
    Comment:  If won
    Control Self Switch B = ON   
  Else
    Comment:  If lost
    Control Self Switch B = OFF
    Control Self Switch A = OFF
    Exit Event Processing
  Branch End
Branch End
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #1316  
Unread January 26th, 2008, 08:43 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
Poccil, are you planning on implementing Shadow Pokémon?
  #1317  
Unread January 26th, 2008, 01:45 PM
Firemaker's Avatar
Firemaker
Pokemon Master
 
Join Date: Apr 2004
Location: In space
Age: 17
Gender:
Nature: Lonely
Great job with the gif. I can't wait to see how that will turn out.
__________________
http://z8.invisionfree.com/Banto_Region
  #1318  
Unread January 27th, 2008, 07:35 PM
victorspvl's Avatar
victorspvl
Beginning Trainer
 
Join Date: Aug 2007
Gender:
Poccil the starter kit is too!
But I have several questions about, if you would like me respond very happy!

1 - I wanted to make: When the switch was activated 80 a picture of Trainer Card change, as I do that?

2-Add a trainer card than to put many insiguinias (some 32), as I do?

3-In the starter kit in the top left corner of poké center has an event there, ($ PokemonGlobal.seenStorageCreator =
True), so that, and I have to move this event for pokécenter of my game?

4-townmapgen not working, why?

Sorry so many questions ...
Thanks
  #1319  
Unread January 27th, 2008, 08:18 PM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
Quote:
Originally Posted by victorspvl View Post
Poccil the starter kit is too!
But I have several questions about, if you would like me respond very happy!

1 - I wanted to make: When the switch was activated 80 a picture of Trainer Card change, as I do that?

2-Add a trainer card than to put many insiguinias (some 32), as I do?

3-In the starter kit in the top left corner of poké center has an event there, ($ PokemonGlobal.seenStorageCreator =
True), so that, and I have to move this event for pokécenter of my game?

4-townmapgen not working, why?

Sorry so many questions ...
Thanks
1. I'm not sure, I'll try to find out.

2. Same as above, though it should be possible.

3. No, you shouldn't move it: it is the script which changes SOMEONE'S PC to BILL'S PC. Use the command in the event for the Storage creator.

4. Did you copy and paste the output into townmap.txt?
  #1320  
Unread January 27th, 2008, 11:43 PM
Tsunami-Dono
Beginning Trainer
 
Join Date: Dec 2007
Gender:
Hey, something is wrong here...

I have created a project of Pokemon Thunder Yellow(a game with Yellow's game story); But, when you go to Pallet Town(from inside of a house or by another route) the game stops, and I don't know why it stops(it's only Pallet, the Town... The houses are OK, and I don't have deleted any map that already was there)...

Sorry for the errors in this text, cause I'm from Brazil...

So, if you can help-me, please answer this post...
  #1321  
Unread January 27th, 2008, 11:51 PM
victorspvl's Avatar
victorspvl
Beginning Trainer
 
Join Date: Aug 2007
Gender:
Thanks
The townmap gen simply does not work, does not give to click on the button to save and load does not load ...
  #1322  
Unread January 28th, 2008, 12:20 AM
NeoStar's Avatar
NeoStar
Future Scripter Extraordinaire
 
Join Date: Jan 2008
Location: Deep In The Depths Of hell
Age: 26
Gender: Male
Nature: Adamant
Send a message via AIM to NeoStar Send a message via Windows Live Messenger to NeoStar Send a message via Yahoo to NeoStar
@ Poccil:

Yeah, ill try that out right now while i'm working on Route 48. I'll edit this post if i get it working on not. Thanks for your help.

*edit* yeah it works again thanks alot for your help. I really appreciate it.

@ Tsunami-Dono:

You mean it freezes completely like... just stops and you cant move or anything? Is there any error? This info would be helpful so we can help you with your problem.

@ Everyone else:

Have a couple more questions:

1.Would a bank system be possible? Like in g/s/c? I'm not asking how to DO a bank system that parts easy. I was just wondering where the variable or whatever is that stores your money? I looked in the notes.html and scripts and couldnt find it. And then there would be the part of taking out a certain ammount of money every battle and storing it in the bank.

2. Again with my Rival name question. Starting to wonder if its even possible or if i should pm Poccil about it. Id really hate to bug him about it im sure he gets enough pms already.

3. Is it possible to add players to the phone system? Like say professor elm and your mom or would that require rewriting the script all over again?

4. How can you get pictures for your trainers? Again ive been looking through the scripts and cant find anything on it.

Last edited by NeoStar; January 28th, 2008 at 02:36 AM.
  #1323  
Unread January 28th, 2008, 06:14 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
You have to copy and paste everything from townmap.txt into the box first to load.
To save, you must have edited something on the map (click a place on the map and edit the boxes underneath).

The money is stored in $Trainer.money (use something like Script: $Trainer.money-=$game_variables[*variable id*] to take away money, $Trainer.money+=$game_variables[*variable id*] to add money.)

I'll try answering the rest later.
  #1324  
Unread January 28th, 2008, 02:14 PM
golden_rex's Avatar
golden_rex
Learning scripter, fun mapping
 
Join Date: Jan 2008
Age: 22
Gender:
Nature: Sassy
its all complicated so i decided to give up on trying to make a hack and just play them instead.
__________________
http://consoles.freebiejeebies.co.uk/106041
Profession:
Pokemon Professor
I have studied Pokemon for around 10 years now

Past Experiences:
  1. Pokemon Master (Kanto, Johto, Hoenn, Sinnoh)
  2. Pokemon Ranger
  3. Rescue Team Operator
  4. Dungeon Explorer
  #1325  
Unread January 28th, 2008, 04:05 PM
Tsunami-Dono
Beginning Trainer
 
Join Date: Dec 2007
Gender:
It freezes...

when I put in the first event(intro) to teleport to Pallet, when the screen shows the city, it freezes, but the backsound keep playing... If you get out of a house, it's freeze on the Black screen...
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. The time now is 06:52 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.