• 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.
#org $roaming
setvar 0x8004 0xfA00
setvar 0x8005 0xffff
setvar 0x8006 0x1
setvar 0x8007 0x0
special 0x56
release
end

I've got this code and have JPAN's Fire Red Engine applied so Special 0x56 will work. So far this should yield a 100% (0xFFFF) chance encounter with Ho-oh (FA00) found in the Grass (0x0) that will only appear x1 time (0x1).

Question: How can I edit the level of the Roaming Pokemon and where do I put this script in the game and how do I trigger it?
 
I've got this code and have JPAN's Fire Red Engine applied so Special 0x56 will work. So far this should yield a 100% (0xFFFF) chance encounter with Ho-oh (FA00) found in the Grass (0x0) that will only appear x1 time (0x1).

Question: How can I edit the level of the Roaming Pokemon and where do I put this script in the game and how do I trigger it?
~
Variable 0x8007 lower half is the location, and the upper half is the level the pokémon is found in. Used to avoid "underwater Charizard"-like scenarios.
First 4 bits of the word are the location values. 0x0 does the same as 0xf, that is, the pokémon is found anywhere you want.
Bit 0 = grass
Bit 1 = surfing
Bit 2 = tree\rock-smash
Bit 3 = fishing
So 0x9 (1001b) would mean that the pokémon is found on grass and by fishing
The upper half is the level of a roaming pokémon. For instance, if you want a lv. 80 pokémon in the wild grass only, use setvar 0x8007 0x5001
~

You put this in any place you want the roaming to start. That is up to you.
 
#org $roaming
setvar 0x8004 0xfA00
setvar 0x8005 0xffff
setvar 0x8006 0x1
setvar 0x8007 0x5001 0x0
special 0x56
release
end

#org $roaming
setvar 0x8004 0xfA00
setvar 0x8005 0xffff
setvar 0x8006 0x1
setvar 0x8007 0x5001
setvar 0x8007 0x0
special 0x56
release
end

So would one of these be right then for Lv. 80 Pokemon only found in Grass? Since variance 8007 does both level and location?

Also when I say, where do I put it, I don't mean in the storyline/map I mean how do I encode this into the game? Do I just open up a script at freespace in advancemap and configure it to that location/person event/script tile through my script editor PKSV? And if so, is one of these two lines of text all I need (aka can I copy paste it into my script editor) alongside of the Fire Red Hack Engine 0x56 special?
 
So would one of these be right then for Lv. 80 Pokemon only found in Grass? Since variance 8007 does both level and location?

Also when I say, where do I put it, I don't mean in the storyline/map I mean how do I encode this into the game? Do I just open up a script at freespace in advancemap and configure it to that location/person event/script tile through my script editor PKSV? And if so, is one of these two lines of text all I need (aka can I copy paste it into my script editor) alongside of the Fire Red Hack Engine 0x56 special?

You just need to put this script so it runs when you want it to. You could put it as a map script, a script tile, a person event, hell, if you wanted to, you could make it into an item (using this https://www.pokecommunity.com/threads/281573).

This one is correct:


#org @roaming
setvar 0x8004 0xfA00
setvar 0x8005 0xffff
setvar 0x8006 0x1
setvar 0x8007 0x5001
special 0x56
release
end

Explanation:

setvar 0x8007 0x5001

Red is level, Blue is location.
 
I can't figure out how to make a transparent text box in Emerald. I found a tutorial on it, but it doesn't say where to put the new lines. My script:

Spoiler:
 
I can't figure out how to make a transparent text box in Emerald. I found a tutorial on it, but it doesn't say where to put the new lines. My script:

Spoiler:

You have this all wrong. I would be surprised if that even compiled.

Try this:
Code:
#Dynamic 0x800000
#org @start
'-----------------------------------
lock
faceplayer
writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x41 0x4000050
writebytetooffset 0x3F 0x4000051
writebytetooffset 0xF 0x4000052
writebytetooffset 0xA 0x4000053
writebytetooffset 0xFF 0x202F0AA
writebytetooffset 0xFF 0x202F0AB
writebytetooffset 0x0 0x202F0B8
writebytetooffset 0x0 0x202F0B9
writebytetooffset 0x0 0x202F0AC
writebytetooffset 0x0 0x202F0AD
writebytetooffset 0x0 0x202F0BE
writebytetooffset 0x0 0x202F0BF
writebytetooffset 0x0 0x202F0C0
writebytetooffset 0x0 0x202F0C1
writebytetooffset 0x0 0x202F0C2
writebytetooffset 0x0 0x202F0C3
writebytetooffset 0x0 0x202F0C4
writebytetooffset 0x0 0x202F0C5
writebytetooffset 0x0 0x202F0C6
writebytetooffset 0x0 0x202F0C7
writebytetooffset 0x0 0x202F0C8
writebytetooffset 0x0 0x202F0C9
msgbox 0x8741107 ' Hi
callstd MSG_LOCK ' Built-in lock command
release
end


#org 0x8741107
= Hi
 
You just need to put this script so it runs when you want it to. You could put it as a map script, a script tile, a person event, hell, if you wanted to, you could make it into an item (using this https://www.pokecommunity.com/threads/281573).

This one is correct:


#org @roaming
setvar 0x8004 0xfA00
setvar 0x8005 0xffff
setvar 0x8006 0x1
setvar 0x8007 0x5001
special 0x56
release
end

Explanation:

setvar 0x8007 0x5001

Red is level, Blue is location.

Here's what I've done so far but it doesn't seem to work, I pass the script tile on the Map and then it SHOULD be making a 100% 0xffff encounter with the Pokemon from the special, but when I pass the script tile nothing seems to happen. Or Am I just not running into the Pokemon because it is now "Roaming the region"?

Here's what I'm working with:

https://postimg.org/image/ke5payjgx/
https://postimg.org/image/mhg4imj9t
 
Last edited:
Here's what I've done so far but it doesn't seem to work, I pass the script tile on the Map and then it SHOULD be making a 100% 0xffff encounter with the Pokemon from the special, but when I pass the script tile nothing seems to happen. Or Am I just not running into the Pokemon because it is now "Roaming the region"?

Here's what I'm working with:

https://postimg.org/image/ke5payjgx/
https://postimg.org/image/mhg4imj9t

Read https://www.pokecommunity.com/threads/302347. There is nooo guarentee that 8004 = 0 at the time you step on the tile. That is the issue. I would test it with a person event first, just to make sure it works, then work it into a script tile with a correct var. Not a temporary one that is used by almost every 10+ line GF script.XD
 
Is it possible to remove the need of Badge to use HM moves outside of battle for Firered?

e.g. I want to remove the need of Soul Badge to use the move, Hm: Surf.
 
First off, I'm sorry if someone else has had my issues. I did Google, and search around a lot before asking. I watched a few Youtubers teaching me how to do a simple script. I never did this successfully.

They talked me through the steps, and it started pretty good but it ended up crashing. I think it's getting better... Still crashes. I can't show a picture because I can't figure out how exactly... It might not work, but I tried to share it. This is what just happened...

Game:I tried both Fire red, and Sapphire Type: Script Editor: Pokecket Script, Notepad, and Over-world map. Script: Talk script
Spoiler:
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

How exactly did this happen? I don't know. But the whole, Compile short cut button doesn't work for me. I tried restarting my computer many times, and uninstalling.

So did I get the wrong things to use? And if I didn't what should I get? What am I even doing wrong here? I tried everything I can think of... It opens a shop like in the picture above. It crashes. Then if I wait I hear a terrible Screech...
 
First off, I'm sorry if someone else has had my issues. I did Google, and search around a lot before asking. I watched a few Youtubers teaching me how to do a simple script. I never did this successfully.

They talked me through the steps, and it started pretty good but it ended up crashing. I think it's getting better... Still crashes. I can't show a picture because I can't figure out how exactly... It might not work, but I tried to share it. This is what just happened...

Game:I tried both Fire red, and Sapphire Type: Script Editor: Pokecket Script, Notepad, and Over-world map. Script: Talk script
Spoiler:
Spoiler:

How exactly did this happen? I don't know. But the whole, Compile short cut button doesn't work for me. I tried restarting my computer many times, and uninstalling.

So did I get the wrong things to use? And if I didn't what should I get? What am I even doing wrong here? I tried everything I can think of... It opens a shop like in the picture above. It crashes. Then if I wait I hear a terrible Screech...

Er... I would suggest you use XSE instead of PokeScript. =/
 
Is it possible to remove the need of Badge to use HM moves outside of battle for Firered?

e.g. I want to remove the need of Soul Badge to use the move, Hm: Surf.

You do realize, that the same people are going to answer your question here, as over on Simple Questions.XD It really doesn't matter which thread you ask it on, and it doesn't change the fact that 500 people before you have asked that question and gotten the same answer.
 
Im trying to redo the scripts for your mother in the beginning of the game.
Spoiler:

The checkflag at the beginning is to keep you from coming back to heal until after you get pokemon.
when I talk to her after I get the pokemon it just says:
"You look tired.
Why don't you rest a bit."
Then there is a weird text box, then yes or no, then it freezes
 
I need help with my script..
I'm trying to make it so the hero sees the confrontation, then the people leave, but everytime I move the script replays over and over.
This is my script-
Spoiler:
 
I need help with my script..
I'm trying to make it so the hero sees the confrontation, then the people leave, but everytime I move the script replays over and over.
This is my script-
Spoiler:

Remove the clearflag 0x831. That should fix it.
 
Anyone know what's wrong with my script here? I used Shinyzer alongside a givepokemon script (on a clean unpatched fr rom) and it just freezes whenever the "PLAYER RECEIVED A POKEMON" message comes up.

'---------------
#org 0x723C80
lock
faceplayer
checkflag 0x500
if 0x1 goto 0x8723DAB
msgbox 0x8723DB6 MSG_YESNO '"Hello there, young trainer! I've\n..."
compare LASTRESULT 0x0
if 0x1 goto 0x8723CF3
checkmoney 0xBB8 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x8723CFE
countpokemon
compare LASTRESULT 0x6
if 0x1 goto 0x8723DA0
paymoney 0xBB8 0x0
fanfare 0x101
msgbox 0x8723EC6 MSG_FACE '"[player] recieved a POKéMON!"
callasm 0x8723D10
givepokemon 0x81 0xA 0x0 0x0 0x0 0x0
callasm 0x8723D10
setflag 0x500
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723DAB
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723CF3
msgbox 0x8723E3D MSG_FACE '"Oh well, I'll find someone else."
release
end
'---------------
#org 0x723CFE
msgbox 0x8723E60 MSG_FACE '"You don't have enough money. I\nsu..."
release
end
'---------------
#org 0x723DA0
msgbox 0x8723E96 MSG_FACE '"Your party is full. You'll need to..."
release
end

'---------
' Strings
'---------
#org 0x723DB6
= Hello there, young trainer! I've\ngot a special deal for you today.\lHow would you like to buy a super\lspecial POKéMON for just [$]3000?
#org 0x723EC6
= [player] recieved a POKéMON!
#org 0x723EDF
= I told you that POKéMON was super\nspecial!
#org 0x723E3D
= Oh well, I'll find someone else.
#org 0x723E60
= You don't have enough money. I\nsuggest you save up!
#org 0x723E96
= Your party is full. You'll need to\nmake room.
 
Anyone know what's wrong with my script here? I used Shinyzer alongside a givepokemon script (on a clean unpatched fr rom) and it just freezes whenever the "PLAYER RECEIVED A POKEMON" message comes up.

Shinyizer is soooo much easier than people make it out to be. I hate how confused everyone gets. There is no need to callasm. The way it is written, is the game, when creating a pokemon, now checks var 0x8003. It works like this:

If 0x8003 = 0 : no shines

if 0x8003 = 1 : The next, and only the next, pokemon the game creates (givepokemon, trainer pokemon, wild pokemon) will be shiny

if 0x8003 = 2 : The next 2 pokemon the game creates will be shiny.

if 0x8003 = 3 : The next 3 pokemon the game creates will be shiny.
etc.

Code:
'---------------
#org 0x723C80
lock
faceplayer
checkflag 0x500
if 0x1 goto 0x8723DAB
msgbox 0x8723DB6 MSG_YESNO '"Hello there, young trainer! I've\n..."
compare LASTRESULT 0x0
if 0x1 goto 0x8723CF3
checkmoney 0xBB8 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x8723CFE
countpokemon
compare LASTRESULT 0x6
if 0x1 goto 0x8723DA0
paymoney 0xBB8 0x0
fanfare 0x101
msgbox 0x8723EC6 MSG_FACE '"[player] recieved a POKéMON!"
[COLOR="Red"]setvar 0x8003 0x1[/COLOR]
givepokemon 0x81 0xA 0x0 0x0 0x0 0x0
callasm 0x8723D10
setflag 0x500
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723DAB
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723CF3
msgbox 0x8723E3D MSG_FACE '"Oh well, I'll find someone else."
release
end
'---------------
#org 0x723CFE
msgbox 0x8723E60 MSG_FACE '"You don't have enough money. I\nsu..."
release
end
'---------------
#org 0x723DA0
msgbox 0x8723E96 MSG_FACE '"Your party is full. You'll need to..."
release
end

'---------
' Strings
'---------
#org 0x723DB6
= Hello there, young trainer! I've\ngot a special deal for you today.\lHow would you like to buy a super\lspecial POKéMON for just [$]3000?
#org 0x723EC6
= [player] recieved a POKéMON!
#org 0x723EDF
= I told you that POKéMON was super\nspecial!
#org 0x723E3D
= Oh well, I'll find someone else.
#org 0x723E60
= You don't have enough money. I\nsuggest you save up!
#org 0x723E96
= Your party is full. You'll need to\nmake room.

That is all you need to do.
 
Shinyizer is soooo much easier than people make it out to be. I hate how confused everyone gets. There is no need to callasm. The way it is written, is the game, when creating a pokemon, now checks var 0x8003. It works like this:

If 0x8003 = 0 : no shines

if 0x8003 = 1 : The next, and only the next, pokemon the game creates (givepokemon, trainer pokemon, wild pokemon) will be shiny

if 0x8003 = 2 : The next 2 pokemon the game creates will be shiny.

if 0x8003 = 3 : The next 3 pokemon the game creates will be shiny.
etc.

Code:
'---------------
#org 0x723C80
lock
faceplayer
checkflag 0x500
if 0x1 goto 0x8723DAB
msgbox 0x8723DB6 MSG_YESNO '"Hello there, young trainer! I've\n..."
compare LASTRESULT 0x0
if 0x1 goto 0x8723CF3
checkmoney 0xBB8 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x8723CFE
countpokemon
compare LASTRESULT 0x6
if 0x1 goto 0x8723DA0
paymoney 0xBB8 0x0
fanfare 0x101
msgbox 0x8723EC6 MSG_FACE '"[player] recieved a POKéMON!"
[COLOR=red]setvar 0x8003 0x1[/COLOR]
givepokemon 0x81 0xA 0x0 0x0 0x0 0x0
callasm 0x8723D10
setflag 0x500
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723DAB
msgbox 0x8723EDF MSG_NORMAL '"I told you that POKéMON was super\..."
release
end
'---------------
#org 0x723CF3
msgbox 0x8723E3D MSG_FACE '"Oh well, I'll find someone else."
release
end
'---------------
#org 0x723CFE
msgbox 0x8723E60 MSG_FACE '"You don't have enough money. I\nsu..."
release
end
'---------------
#org 0x723DA0
msgbox 0x8723E96 MSG_FACE '"Your party is full. You'll need to..."
release
end
 
'---------
' Strings
'---------
#org 0x723DB6
= Hello there, young trainer! I've\ngot a special deal for you today.\lHow would you like to buy a super\lspecial POKéMON for just [$]3000?
#org 0x723EC6
= [player] recieved a POKéMON!
#org 0x723EDF
= I told you that POKéMON was super\nspecial!
#org 0x723E3D
= Oh well, I'll find someone else.
#org 0x723E60
= You don't have enough money. I\nsuggest you save up!
#org 0x723E96
= Your party is full. You'll need to\nmake room.

That is all you need to do.

Thank you SO much! It works now.
 
Status
Not open for further replies.
Back
Top