• 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?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
6
Posts
14
Years
  • Seen Jan 3, 2010
Thanks for the replies everyone, i don't mean to come off as a helpless case but I still don't understand what you're tell me to do.

I don't really see why I would need a new trainer ID, I'm just going to edit an already existing one?
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Thanks for the replies everyone, i don't mean to come off as a helpless case but I still don't understand what you're tell me to do.

I don't really see why I would need a new trainer ID, I'm just going to edit an already existing one?
Well I understand a little of what you're trying to say. Okay, You beat the elite 4 member, so the trainer flag is disabled. Meaning he won't battle you again, unless you restart the game. But since you want to edit the person, you should clear the trainer flag in order for him to battle you again. Understand?

You would use it in a script like:
Cleartrainerflag 0x(trainer ID)

Where 0x(trainer ID) is the ID of the Elite 4 member you're editing.
They're suggesting you create a new trainer because he doesn't battle you, meaning that you fought him already. So you have two options, that I've stated previously. But if you didn't get them:

Clear the trainer flag [
Cleartrainerflag 0x(trainer ID)]Or create a new trainer.

Hopefully this helps
 

Sky the Shaym

Sky the Shaymin, NOT Shaym
12
Posts
14
Years
  • Seen Dec 16, 2010
Ruby
Signpost
XSE
Wildbattle
Spoiler:


I think this script is written wrong, or something...
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
Ruby
Signpost
XSE
Wildbattle
Spoiler:


I think this script is written wrong, or something...

Yes it is.
There is no boxset, it's just the third parameter for the msgbox command. Also you have a checkflag, but no "if" command after it. Also your dynamic offset isn't right. Use 0x800000 because you have compiled it into the BIOS which could kill your ROM. Also there is no command such as startwildbattle or repeatwildbattle. Finally use flags over 0x1000 because they have not been used by the ROM.

So I'm not sure, but this is the script you'd be looking for.

#dynamic 0x800000

#org @start
msgbox @speak 0x2
checkflag 0x1000
if 0x0 goto @next
end

#org @next
lock
faceplayer
msgbox @ask 0x5
compare 0x800D 0x1
if 0x1 goto @wildbattle
msgbox @no 0x2
end

#org @wildbattle
checksound
cry 0x199 0x0
waitcry
wildbattle2 0x199 0x46 0x0 0x2*
setflag 0x1000
release
end

#org @speak
= The rock has a magical feel to it.

#org @ask
= Would you like to make a wish?

#org @no
= You did not make a wish.

*This byte will make a visual effect. Play around with this last parameter to find different visual effects.
 

BlitŻ1

guahh my dog is so cute
472
Posts
15
Years
How do I arrange the text so it scrolls down continously? I plug my text in the text adjuster but when I play it in the game it only shows one line of text at a time, instead of it being continous
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
How do I arrange the text so it scrolls down continously? I plug my text in the text adjuster but when I play it in the game it only shows one line of text at a time, instead of it being continous
When you use the Text adjuster, everything will appear as you write it in game.

So if I wrote this in Text adjuster:

Code:
Hello, I'm a new person here.

What's your name?
[.]Oh that's cool. Do you know where
the Pokémon center is?

Okay, thanks!

In the script it would be:
Code:
Hello, I'm a new person here.\pWhat's your name?\n[.]Oh that's cool.\lDo you know where the Pokémon center\lis?\pOkay, thanks!

But to answer your question, all you have to do is write "\p" first then "\n" then keep on using "\l" afterwards. Then you will get continuously scrolling text
 

Sky the Shaym

Sky the Shaymin, NOT Shaym
12
Posts
14
Years
  • Seen Dec 16, 2010
Yes it is.
There is no boxset, it's just the third parameter for the msgbox command. Also you have a checkflag, but no "if" command after it. Also your dynamic offset isn't right. Use 0x800000 because you have compiled it into the BIOS which could kill your ROM. Also there is no command such as startwildbattle or repeatwildbattle. Finally use flags over 0x1000 because they have not been used by the ROM.

So I'm not sure, but this is the script you'd be looking for.

#dynamic 0x800000

#org @start
msgbox @speak 0x2
checkflag 0x1000
if 0x0 goto @next
end

#org @next
lock
faceplayer
msgbox @ask 0x5
compare 0x800D 0x1
if 0x1 goto @wildbattle
msgbox @no 0x2
end

#org @wildbattle
checksound
cry 0x199 0x0
waitcry
wildbattle2 0x199 0x46 0x0 0x2*
setflag 0x1000
release
end

#org @speak
= The rock has a magical feel to it.

#org @ask
= Would you like to make a wish?

#org @no
= You did not make a wish.

*This byte will make a visual effect. Play around with this last parameter to find different visual effects.
Thanks... I havent scripted in a while, so I forgot. (I'm an idiot!)
Its the script i want, but when I place it on the "rock" I want it to go on (In the orange signpost box)
and I go to battle jirachi (hex #199)
It makes a bleep sound (like when your pressing A while talking)
but doesnt do anything! Just the bleep!
 

BlitŻ1

guahh my dog is so cute
472
Posts
15
Years
When you use the Text adjuster, everything will appear as you write it in game.

So if I wrote this in Text adjuster:

Code:
Hello, I'm a new person here.

What's your name?
[.]Oh that's cool. Do you know where
the Pokémon center is?

Okay, thanks!
In the script it would be:
Code:
Hello, I'm a new person here.\pWhat's your name?\n[.]Oh that's cool.\lDo you know where the Pokémon center\lis?\pOkay, thanks!
But to answer your question, all you have to do is write "\p" first then "\n" then keep on using "\l" afterwards. Then you will get continuously scrolling text

Thanks this will really improve the fluency of my scripts ^^
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
Thanks... I havent scripted in a while, so I forgot. (I'm an idiot!)
Its the script i want, but when I place it on the "rock" I want it to go on (In the orange signpost box)
and I go to battle jirachi (hex #199)
It makes a bleep sound (like when your pressing A while talking)
but doesnt do anything! Just the bleep!

This means the flags is already being used. Try using another flag over 0x1000.
 

BlitŻ1

guahh my dog is so cute
472
Posts
15
Years
Spoiler:


The problem is bolded. What happens is when the earthquake is supposed to happen, the screen just flickers back and forth, instead of the actual earthquake. But the sound effect happens. Also, the script doesn't continue. The music keeps playing and sprites keep moving, but the scripts stops :\
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Spoiler:


The problem is bolded. What happens is when the earthquake is supposed to happen, the screen just flickers back and forth, instead of the actual earthquake. But the sound effect happens. Also, the script doesn't continue. The music keeps playing and sprites keep moving, but the scripts stops :\
That's because...
Code:
setvar 0x8004 0x3
setvar 0x8005 0x0
setvar 0x8006 0xC - Length of Earthquake
setvar 0x8007 0x3
special 0x136
pause 0x3C

I knew what the rest were, when I experimented, but I didn't write them down and I'm too lazy to find out right now. I guess you can play around with it though ;)
 

Aisu K.

SHOWMEYAMOVES
1,131
Posts
19
Years
  • Age 33
  • Home
  • Seen Oct 6, 2010
Umm... I want to write a code for roaming Pokemon (like Lati@s and the Beasts) for Ruby... Anyone know where I could start...?
 

jrroo

Working on De Puzzle.
39
Posts
14
Years
Well, I've been having trouble making even the simplest Script at the 'Script Offset' in the Advance Map to work.
I think I followed all instructions properly.

Anyway, I'm gona list down what i did.

- Downloaded PokeScript and PkmAdv
- Opened Notepad and started writing this:

#org $simple
lock
faceplayer
message $example
$example 1 = Hello! I need Help!
boxset 6
release
end


- Yeah, so.. I compiled it.
- BufRite came out.

- File > Destination > (Picked my ROM)
- Click that Book.
- Clicked that Tourch Light thingy
- Click the first code given
- Assigned it
- Got the code.

- Opened AdvanceMap
- Opened my ROM, Picked a Map
- Click the Event Tab
- Made a 'Person Event'

- Pasted that code to the Script Offset (800xxx)
- So, the Script Offset looks like [$800xxx]

Now the problem is...

Whenever i click Open Script, an error box comes out

-------------------------
Error
- No script editor defined.
-------------------------

I don't get it! I need help..:cer_frown:
 
Status
Not open for further replies.
Back
Top