• 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.
Hi, I'm new to scripting and I'm having trouble with this script.
I'm following a tutorial and I understand it, but the two scripts I'm using are not working when I test them in VBA.

Script one
#dynamic 0x01
#org @start
lock
faceplayer
msgbox @1 0x6
release
end
#org @1
= Duo!!

Script two
#dynamic 0x02
#org @start
lock
faceplayer
msgbox @1 0x6
release
end
#org @1
= Duo!

They are a person event for two Duduo on a farm. I'm using XSE.
 
Originally Posted by ~Poke~ [PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)
Well, you get the offset, then you add 1
Example: offset = B8F6D8 (no idea whether there is one like this or not)
B8F6D8 + 1 = B8F6D9


Originally posted by Hildetrorr:
If the last number is 9 do I just go back to 0? If I use the shiny hack more than once in a single rom hack do I Keep using the original offset+1 or do I add another 1 for every new shiny hack?

ive tried following what you guys have said and the script compiles fine but when I try to talk to the pokemon to initiate the wild battle the emulator freezes.

so does anyone know how to fix this?
 
Can someone give me an example of what to do for a level script? Does the setvar matter? Ive tried to do all kinds of level scripts but iv'e only got one to work. All the other's make random text boxes that sometimes continue on forever. For example what would a script look like if a sprite disappeared right when i warped to that area?

This is what it looks like when things go wrong:
-Screen removed-

Can anyone help?
First off, take screenshots by pressing F12 in VBA ;)

Anyways, I made a tutorial on how to make level scripts:
https://www.pokecommunity.com/threads/141650

It's at the bottom and you will need XSE, good luck ;)


Hi, I'm new to scripting and I'm having trouble with this script.
I'm following a tutorial and I understand it, but the two scripts I'm using are not working when I test them in VBA.

Script one
Code:
#dynamic [B]0x800000[/B]

#org @start
msgbox @1 [B]0x2[/B]
end

#org @1
= Duo!!

They are a person event for two Duduo on a farm. I'm using XSE.
You only need one script, just put the offset in both doduo, and I recommend starting at "0x800000" not "0x01" just to prevent any bugs/glitches.

To save space I replaced your script with "msgbox @1 0x2" which is basically Lock, faceplayer and release, all in one command.

The scripts probably didn't work because maybe you didn't assign them to the people yet or the offset you used caused glitches. I don't really know because you have to be specific, and provide a screen if possible ;)
 
Last edited:
The scripts probably didn't work because maybe you didn't assign them to the people yet or the offset you used caused glitches.
So you have to assign certain script to people? Sweet Jesus...that's got to be the reason why my script isn't working.

Edit: Just figure out how to assign script on people, but now I need to know how to make it so that after you get your Pokedex, Prof. Oak stops you so he can upgrade it to the National Dex.
 
Last edited:
I tried your script but for some reason all my level scripts have problems. Here's a script i tried but it wont work. Can you tell me what i would put for all the info on advance map. I tried it but weird text pops up or it starts the script but doesn't finish it.

#dynamic 0x385B2C
#org @go
applymovement 0xFF @look
waitmovement 0x0
applymovement 0x04 @hey
waitmovement 0x0
msgbox @chat
boxset 6
setvar 0x4035 0x2
release
end

#org @hey
#raw 04 07 07 07 07 07 03

#org @look
#raw 56

#org @chat
= Testing the level script! \n Did it work?
 
Okay, i made a script where and old man will teach you how to catch pokemon blahblah.. But now i'm trying to make it so if you try to walk by him.. You get stopped and walk to him... (Well just, just face left..) but NOTHING works O_o

It doesn't even freeze, it just lets me walk by..

(Wanted to post screenshots but it seems that i can't do that under 15 posts so i'll attach it.)

Script for the old man that works..
Spoiler:

Script for the movement if you try to walk by that DOESN'T work..
Spoiler:

If you answer my question, your god for an hour ^^.
 
How Do i Change the Starting Pokemon and How do i change the Sprites!! no1 Ever answers me :(
 
Can I please have someones help; I really would like to know how to make all wild encounters shiny for one of my hacks. I have tried but to no avail in scripting this. I know very little about scripting and I have no idea how to make this happen. I f anyone could give me instructions of how to modify my games scripts so that all wild pokemon are shiny, or if someone would be so kind as to make this modification and email it to me as an IPS I would be very grateful.

Please help-
 
So you have to assign certain script to people? Sweet Jesus...that's got to be the reason why my script isn't working.

Edit: Just figure out how to assign script on people, but now I need to know how to make it so that after you get your Pokedex, Prof. Oak stops you so he can upgrade it to the National Dex.
You might want to slow down a bit...

Things you will need to learn:
Checkflag and Setflag scripts. (so that you can setflag for the pokedex, and check if you have it)
Applymovements (based on if prof. walks up to you and stops you)
Learn how to assign a script to a trigger (so that when you step on a certain spot, the script activates)


I tried your script but for some reason all my level scripts have problems. Here's a script i tried but it wont work. Can you tell me what i would put for all the info on advance map. I tried it but weird text pops up or it starts the script but doesn't finish it.

-Made corrections-
Spoiler:
The A-map Box is supposed to look like this:
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)


Using your own offset. I recommend reading the tutorial again, because I answered the questions you've asked in the tutorial.
 
Spoiler:

This is the Firered Pokemon Center Script.

Could someone please take the offsets and put them into regular pointers?
 
Thanks cooley, i now know what i did wrong and am going to update my xse cause i haven't in a long time. I was misinterpreting your tutorial but now i understand it thanks. And nice job on the newly added level script section of your tutorial diegoisawesome.
 
You only need one script, just put the offset in both doduo, and I recommend starting at "0x800000" not "0x01" just to prevent any bugs/glitches.

To save space I replaced your script with "msgbox @1 0x2" which is basically Lock, faceplayer and release, all in one command.

The scripts probably didn't work because maybe you didn't assign them to the people yet or the offset you used caused glitches. I don't really know because you have to be specific, and provide a screen if possible ;)

I tried that but still doesn't work! Nothing at all happens.
 
Spoiler:

This is the Firered Pokemon Center Script.

Could someone please take the offsets and put them into regular pointers?


Code:
#dynamic 0x800000

'---------------
#org @start
lock
faceplayer
call @snippet1
release
end

'---------------
#org @snippet1
special 0x187
compare LASTRESULT 0x2
if 0x1 goto @snippet2
preparemsg @string1 '"Welcome to our POKéMON CENTER!\pWo..."
waitmsg
multichoice 0x13 0x8 0x0 0x2
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto @snippet3
compare 0x8000 0x1
if 0x1 goto @snippet4
compare 0x8000 0x7F
if 0x1 goto @snippet4
end

'---------------
#org @snippet2
release
end

'---------------
#org @snippet3
cmdc3 0xF
preparemsg @string2 '"Okay, I'll take your POKéMON for a..."
waitmsg
call @snippet5
special 0x169
goto @snippet6

'---------------
#org @snippet4
msgbox @string3 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org @snippet5
applymovement LASTTALKED @move1
waitmovement 0x0
doanimation 0x19
checkanimation 0x19
applymovement LASTTALKED @move2
waitmovement 0x0
special 0x0
return

'---------------
#org @snippet6
special2 LASTRESULT 0x1B1
compare LASTRESULT 0x0
if 0x1 goto @snippet7
special2 LASTRESULT 0x183
copyvar 0x8008 LASTRESULT
compare 0x8008 0x0
if 0x1 goto @snippet7
compare 0x8008 0x1
if 0x1 goto @snippet8
end

'---------------
#org @snippet7
preparemsg @string4 '"Thank you for waiting.\nWe've rest..."
waitmsg
applymovement LASTTALKED @move3
waitmovement 0x0
msgbox @string3 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org @snippet8
checkflag 0x842
if 0x1 goto @snippet7
msgbox @string4 MSG_KEEPOPEN '"Thank you for waiting.\nWe've rest..."
setflag 0x842
preparemsg @string5 '"It appears as if [buffer1] is play..."
waitmsg
applymovement LASTTALKED @move3
waitmovement 0x0
msgbox @string3 MSG_KEEPOPEN '"We hope to see you again!"
return


'---------
' Strings
'---------
#org @string1
= Welcome to our POKéMON CENTER!\pWould you like me to heal your\nPOKéMON back to perfect health?

#org @string2
= Okay, I'll take your POKéMON for a\nfew seconds.

#org @string3
= We hope to see you again!

#org @string4
= Thank you for waiting.\nWe've restored your POKéMON to\lfull health.

#org @string5
= It appears as if [buffer1] is playing\nright now.\lGo for it!


'-----------
' Movements
'-----------
#org @move1
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements

#org @move2
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x5B 'mov5B
#raw 0x1A 'Delay3
#raw 0xFE 'End of Movements
There you go lazy :P
 
Umm whenever I hit compile i get an error message saying, "Too less parameters on line 6. The correct number is 2"

Heres the script,
#Dynamic 0x800000

#org @start
lock
faceplayer
msgbox @text
boxset 0x6
release
end

#org @text
= Hello.

whats wrong with it?
 
Umm whenever I hit compile i get an error message saying, "Too less parameters on line 6. The correct number is 2"

Heres the script,
#Dynamic 0x800000

#org @start
lock
faceplayer
msgbox @text 0x6
release
end

#org @text
= Hello.

whats wrong with it?
The new XSE obliterates the boxset command and moves the boxset number to after the message number.
 
Status
Not open for further replies.
Back
Top