Script Help Thread (DO NOT REQUEST SCRIPTS) Page 328

Started by HackMew December 20th, 2008 5:10 AM
  • 625760 views
  • 9682 replies

Shadowraze

ur mum

Age 24
Non-binary
ur mum
Seen November 24th, 2022
Posted October 16th, 2016
794 posts
10.1 Years
Does anyone know how to make a sprite invisible and become visible once I step on a tile with the green "S"?
I can keep the char invisible/hidden with hidesprite and flag in the end. But I want him to be hidden to begin with.

Right now my code looks like this:
What I basically want is kinda like the Professor Oak script in Pallet Town. You dont see him on the map. When you step a tile. He comes up. But instead that you follow him, I just want the (in my case) teacher you to give the National Dex and then walks off the screen and then let it hidesprite.
But the character is visible to begin with.

Can any of ya help me out? (:
Many thanks in advance.

#dynamic 0x81DFD2

#org @start
checkflag 0x1213
if 0x1 goto @updatedex
msgbox @talk1 0x6
applymovement 0xFF @1stepleft
waitmovement 0xFF
release
end

#org @updatedex
checkflag 0x1214
if 0x1 goto @nothing
msgbox @wait 0x6
applymovement 0xFF @lookleft
waitmovement 0xFF
showsprite 0x19
applymovement 0x19 @come
waitmovement 0x19
lock
faceplayer
msgbox @upgrade 0x6
applymovement 0x19 @go
waitmovement 0x19
hidesprite 0x19
special 0x16F
setflag 0x10A
fanfare 0x105
msgbox @gotdex 0x4
waitfanfare
setvar 0x6001 0x0
setflag 0x1214
release
end

#org @lookleft
#raw 0x2
#raw 0xFE


#org @go
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x12
#raw 0xFE

#org @come
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE


#org @1stepleft
#raw 0x12
#raw 0xFE

#org @gotdex
= \v\h01 has the newest software\ninstalled on the POKEDEX.\pIt now became the:\nNATIONAL POKEDEX.

#org @upgrade
= [darknavyblue_fr]Oh thank god, you're still here.\nI noticed that the POKEDEXes I\lhanded out are not included with\lthe most recent software.\pPlease gimme your Dex for a sec.\p(Mr. Stonemountains plugged\nsomething in the Pokedex. The\llights are flickering)\pAlright \v\h01. Now you have the\nlatest software on your dex. This\lis also known as the NATIONAL DEX.\pThis will register the current 386\nPokemon that are available around\lhere.\pNow I am sounding like it's easy,\nbut some are never seen or never\lseen again.\pGood luck on collecting your data.\nI'm going back to the Academy.\lI've gotta do my usual work again.\pSee ya, \v\h01. :)

#org @wait
= [darknavyblue_fr] \v\h01! Wait!

#org @talk1
= I should go to the Cicero Academy\nand make my exams.

#org @nothing
release
end
That is because that prof.oak uses a flag that has already been set. If that happens an ow that has that flag will become invisible/vanish. Just use a flag that has been already set and to make him appear do a clearflag command and a showsprite command and just set and hide it back when you're done.

horcruxrocks

Pokemon Lover

Male
Seen August 6th, 2016
Posted June 20th, 2016
12 posts
11 Years
Hey how to write a map script?
For ex - Littleroot Town
WE come out of truck and that stuff starts
I opened advanced map - Emerald - LITTLEROOT TOWN
There i clicked on header tab and opened its map script.
Its bit tough so can anyone explain by making a map script.

Thank you

-Horcrux
Male
Seen January 4th, 2015
Posted May 28th, 2014
124 posts
10.2 Years
1. Make a new Map-Script with type "02"
2. Insert where "Flag" is written a var like "5000"
3. Let the value 0000
4. Open XSE or whatever
5. Start the script with

#dynamic 0xoffset
#org @start
SETVAR 0x5000 0x1 (If you have 4900 as flag for example, you must write setvar 0x4900 0x1

6. Now you can freely design your script with applymovements etc..

BTW, if you have 0000 as value, ALWAYS make a setvar 0xflag 0x1


Age 23
Male
Portugal
Seen July 5th, 2021
Posted October 26th, 2014
287 posts
10 Years
FSF? That stands for Free Space Finder, but you won't need to bother with that.

When you being a script, just use this:

#dynamic 0x800000
XSE will automatically find the right thing for you to copy and paste onto the different events :D
yeah, i still cant do anything, do you know any good youtube tutorial?
if so i would be much appreciated :)
Male
Seen April 22nd, 2014
Posted April 22nd, 2014
8 posts
10 Years
First of all hello im currently hacking firered . Utnil now i could solve any problem i had by looking into this sites tutorials.
I searched everywhere but i couldn't find a solution.

The basic idea is that once you enter your houses living room your mom comes to you and gives you the running shoes. Everything works fine except for the running shoes.
If i leave the house and press b the hero doesnt start sprinting

Here's the script and thanks in advance to anybody who helps me out :) .

Spoiler:
#dynamic 0x800000
#org @main
checkflag 0x82F
if b_true goto @done
lock
applymovement 0x1 @go
waitmovement 0x0
msgbox @text 0x6
fanfare 0x13E
waitfanfare
applymovement 0x1 @sit
waitmovement 0x0
setflag 0x82F
release
end

#org @done
release
end

#org @go
#raw 0x30
#raw 0x62
#raw 0x0D
#raw 0x0D
#raw 0x30
#raw 0xFE

#org @sit
#raw 0x0C
#raw 0x0C
#raw 0xFE

#org @text
= Oh! Hello [player], Prof. Oak \nwanted to see you. \pI didn't want to wake you up, \nso I told him you'll stop by later. \pAnd put on your shoes. \p[player] received the RUNNING SHOES

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
First of all hello im currently hacking firered . Utnil now i could solve any problem i had by looking into this sites tutorials.
I searched everywhere but i couldn't find a solution.

The basic idea is that once you enter your houses living room your mom comes to you and gives you the running shoes. Everything works fine except for the running shoes.
If i leave the house and press b the hero doesnt start sprinting

Here's the script and thanks in advance for anybody who helps me out :) .

Spoiler:
#dynamic 0x800000
#org @main
checkflag 0x82F
if b_true goto @done
lock
applymovement 0x1 @go
waitmovement 0x0
msgbox @text 0x6
fanfare 0x13E
waitfanfare
applymovement 0x1 @sit
waitmovement 0x0
setflag 0x82F
release
end

#org @done
release
end

#org @go
#raw 0x30
#raw 0x62
#raw 0x0D
#raw 0x0D
#raw 0x30
#raw 0xFE

#org @sit
#raw 0x0C
#raw 0x0C
#raw 0xFE

#org @text
= Oh! Hello [player], Prof. Oak \nwanted to see you. \pI didn't want to wake you up, \nso I told him you'll stop by later. \pAnd put on your shoes. \p[player] received the RUNNING SHOES
I didn't even need to look at your script. I have found in past experience that for some reason, you can't change when the running shoes are given to you or ot causes them not to work until reaching a certain city. Don't ask why, I don't know. However, I did find that this can be fixed by applying the knowlege found in HackMew's Running Shoes Indoors. This should fix it for you.

Paired with Simba
Male
Seen April 22nd, 2014
Posted April 22nd, 2014
8 posts
10 Years
I didn't even need to look at your script. I have found in past experience that for some reason, you can't change when the running shoes are given to you or ot causes them not to work until reaching a certain city. Don't ask why, I don't know. However, I did find that this can be fixed by applying the knowlege found in HackMew's Running Shoes Indoors. This should fix it for you.
Thank you very much it worked.

Golden Warrior

Pokemon Professor

Age 25
Male
Hoenn
Seen August 30th, 2014
Posted May 30th, 2014
375 posts
12 Years
Ooookay. This happened. I had set a maptile script according to a tutorial and changed the FFFF to 0 and all that and the events worked fine, in an infinite loop...

Spoiler:
'---------------
#org 0x800210
msgbox 0x8800275 MSG_NORMAL '"???: You're finally here!"
applymovement 0x2 0x8800259
waitmovement 0x0
pause 0x30
msgbox 0x8800291 MSG_NORMAL '"Jack: Hey [player]! I was starting..."
applymovement 0x2 0x8800267
applymovement MOVE_PLAYER 0x8800267
waitmovement 0x0
pause 0x30
msgbox 0x8800340 MSG_NORMAL '"Jack: Here it is. I had it made\nr..."
applymovement MOVE_PLAYER 0x8800272
pause 0x30
release
end


'---------
' Strings
'---------
#org 0x800275
= ???: You're finally here!

#org 0x800291
= Jack: Hey [player]! I was starting to\nget worried that you didn't get\lon the boat at all.\pAnyway, now that you're here,\nlet me show you where you'll be\lliving for the time being.

#org 0x800340
= Jack: Here it is. I had it made\nrecently so you should take a look\linside.\pGet comfortable with the place and\nthen you can come see me at my lab\lin Comet City.


'-----------
' Movements
'-----------
#org 0x800259
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x800267
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org 0x800272
#raw 0x6 'Step Left (Slow)
#raw 0xFE 'End of Movements


There's the script. Anyone know why it's going in a loop like this?
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.

miksy91

Dark Energy is back in action! ;)

Male
Finland
Seen September 21st, 2022
Posted September 21st, 2022
1,480 posts
14.6 Years
Ooookay. This happened. I had set a maptile script according to a tutorial and changed the FFFF to 0 and all that and the events worked fine, in an infinite loop...

Spoiler:
'---------------
#org 0x800210
msgbox 0x8800275 MSG_NORMAL '"???: You're finally here!"
applymovement 0x2 0x8800259
waitmovement 0x0
pause 0x30
msgbox 0x8800291 MSG_NORMAL '"Jack: Hey [player]! I was starting..."
applymovement 0x2 0x8800267
applymovement MOVE_PLAYER 0x8800267
waitmovement 0x0
pause 0x30
msgbox 0x8800340 MSG_NORMAL '"Jack: Here it is. I had it made\nr..."
applymovement MOVE_PLAYER 0x8800272
pause 0x30
release
end


'---------
' Strings
'---------
#org 0x800275
= ???: You're finally here!

#org 0x800291
= Jack: Hey [player]! I was starting to\nget worried that you didn't get\lon the boat at all.\pAnyway, now that you're here,\nlet me show you where you'll be\lliving for the time being.

#org 0x800340
= Jack: Here it is. I had it made\nrecently so you should take a look\linside.\pGet comfortable with the place and\nthen you can come see me at my lab\lin Comet City.


'-----------
' Movements
'-----------
#org 0x800259
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x800267
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org 0x800272
#raw 0x6 'Step Left (Slow)
#raw 0xFE 'End of Movements


There's the script. Anyone know why it's going in a loop like this?
Sounds like the script is loaded from a part of the script header that is accessable all the time when the player is on the map. So everytime the script ends, the script is interpreted again (after an extremely short delay), so it looks like it's going on in infinite loop while in fact, the game just knows that it should interpret this script data again since it's loaded with that part of the script header.

To fix things up, try switching the value that determines the "type" of this script, so that is loaded only when the map is entered.

The following is unlikely but I see it being possible too;
If what I just said doesn't fix the problem, that script may need some command that breaks loop in the end of the script. This would be a normal "while...break" case in programming but the game makers probably didn't program the game to require anything like this.
Pokémon Dark Energy
Some ROM hacking related stuff

Aethestode

Hacker

Male
Seen October 5th, 2022
Posted October 25th, 2020
1,700 posts
15.4 Years
Hello, I need help with hacking FireRed.

I want to know how to hack Pokemon Evolution. I know there are some programs that allows you to do it, but they are limited to what already existed in [COLOR=blue !important][COLOR=blue ! important]the [COLOR=blue ! important]game[/COLOR][/COLOR][/COLOR]. I want to create different type of evolution, e.g.

- Mutation
- Fusion
- Location Evolution

Furthermore, is there a way to create more evolution items? I want to evolve pokemon like Poliwhirl to politoad by just giving it a King's rock, but it doesn't work. Thank you.

My next question is, are there a way to temporarily change the sprite of the main protagonist? In my game, I want the main character to dress up as team rocket, but I got no idea how I can do it. Thank you.

If someone can send me a link to a guide would be much appreciated.

Name: Sinep
Adopt one yourself! @Pokémon Orphanage

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Hello, I need help with hacking FireRed.

I want to know how to hack Pokemon Evolution. I know there are some programs that allows you to do it, but they are limited to what already existed in [COLOR=blue !important][COLOR=blue ! important]the [COLOR=blue ! important]game[/COLOR][/COLOR][/COLOR]. I want to create different type of evolution, e.g.

- Mutation
- Fusion
- Location Evolution

Furthermore, is there a way to create more evolution items? I want to evolve pokemon like Poliwhirl to politoad by just giving it a King's rock, but it doesn't work. Thank you.

My next question is, are there a way to temporarily change the sprite of the main protagonist? In my game, I want the main character to dress up as team rocket, but I got no idea how I can do it. Thank you.

If someone can send me a link to a guide would be much appreciated.
There is a tutorial (that I wrote) about making new evolution stones in the tutorials section.

New types of evolution; it's possible but will require ASM.

This is a feature of JPAN's Hacked Engine for FireRed. It is called "runtime character customization".

Paired with Simba

horcruxrocks

Pokemon Lover

Male
Seen August 6th, 2016
Posted June 20th, 2016
12 posts
11 Years
Hey read this script
Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x01
if 0x1 goto @done
msgbox @talk1 0x6
giveitem 0xD 0x1 0x6
setflag 0x01
release
end

#org @done
lock
faceplayer
msgbox @talk2 0x6
release
end

#org @talk1
= Hey I am going to give you something.

#org @talk2
= If you need more buy from\nPokemarts

When i go to the person and talk to him.
The first msgbox text comes.But then the item is not given and the 2nd msgbox directly comes when i go and talk to him next time.
Whats wrong?

-Horcrux

Golden Warrior

Pokemon Professor

Age 25
Male
Hoenn
Seen August 30th, 2014
Posted May 30th, 2014
375 posts
12 Years
To fix things up, try switching the value that determines the "type" of this script, so that is loaded only when the map is entered.
I tried doing this, now all I get is a black screen...

If what I just said doesn't fix the problem, that script may need some command that breaks loop in the end of the script. This would be a normal "while...break" case in programming but the game makers probably didn't program the game to require anything like this.
How would I do this?
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Hey read this script
Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x01
if 0x1 goto @done
msgbox @talk1 0x6
giveitem 0xD 0x1 0x6
setflag 0x01
release
end

#org @done
lock
faceplayer
msgbox @talk2 0x6
release
end

#org @talk1
= Hey I am going to give you something.

#org @talk2
= If you need more buy from\nPokemarts

When i go to the person and talk to him.
The first msgbox text comes.But then the item is not given and the 2nd msgbox directly comes when i go and talk to him next time.
Whats wrong?

-Horcrux
Use different flag. Flags under 200 are most likely used in game.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Age 25
Male
California
Seen December 26th, 2019
Posted February 23rd, 2014
98 posts
10.4 Years
So, i'm having trouble doing a trainerbattle and then having the person disappear after walking away, but he keeps returning

My script is:
Spoiler:
#dynamic 0x9C0000

#org @start
checkflag 0x220
if 0x0 goto @done
checkflag 0x220
if 0x1 goto @ok
setflag 0x220
release
end

#org @ok
release
end

#org @done
applymovement 0x0 @turn
waitmovement 0x0
msgbox @1 0x6
msgbox @2 0x6
trainerbattle 0x0 0x001 0x0 @go @end
applymovement 0x0 @move
waitmovement 0x0
release
end

#org @turn
#raw 0x56
#raw 0x00
#raw 0xFE

#org @move
#raw 0x18
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0xFE

Not going to show the messages

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
So, i'm having trouble doing a trainerbattle and then having the person disappear after walking away, but he keeps returning

My script is:
Spoiler:
#dynamic 0x9C0000

#org @start
checkflag 0x220
if 0x0 goto @done
checkflag 0x220
if 0x1 goto @ok
setflag 0x220
release
end

#org @ok
release
end

#org @done
applymovement 0x0 @turn
waitmovement 0x0
msgbox @1 0x6
msgbox @2 0x6
trainerbattle 0x0 0x001 0x0 @go @end
applymovement 0x0 @move
waitmovement 0x0
release
end

#org @turn
#raw 0x56
#raw 0x00
#raw 0xFE

#org @move
#raw 0x18
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0x18
#raw 0xFE

Not going to show the messages
You need to set the flag in his person ID and the do a hidesprite command after he walks away. That should do the trick.

Paired with Simba

horcruxrocks

Pokemon Lover

Male
Seen August 6th, 2016
Posted June 20th, 2016
12 posts
11 Years
What are the flags and Vars that we should basically use
One more question Diff b/w Var and flag is that
Flag lets an event happen once and Var lets it happen acc. to our specifications right?
And what happens when we use clearflag that means this flag will be cleared?
And we can use it again?

One more question related to Truck thing in LITTLEROOT TOWN.
In A-Map Events tab i deleted the truck event.But when i open my rom i still enter the map through truck what shall i do?

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
What are the flags and Vars that we should basically use
Diego's tutorial has a list of free flags.

One more question Diff b/w Var and flag is that
Flag lets an event happen once and Var lets it happen acc. to our specifications right?
And what happens when we use clearflag that means this flag will be cleared?
And we can use it again?
Yes. Clearflag clears the use of flag so it can be used again.

One more question related to Truck thing in LITTLEROOT TOWN.
In A-Map Events tab i deleted the truck event.But when i open my rom i still enter the map through truck what shall i do?
You can use Start Map Editor Advance to change the start map.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
It still wont help
if i change the map the truck wont be shown but the shaking happens.
The shaking is removed by truck remover: http://www.pokecommunity.com/showthread.php?t=181369

(First result on google-_- for "Tuck Remover".)

Paired with Simba

Gyrath

Pokemon Lurid Creator

Male
Western Australia.
Seen December 15th, 2013
Posted May 19th, 2013
23 posts
10.1 Years
Ok, So im having a little problemo here. My script starts but doesnt continue to the next part. Any suggestions? I'm still a beginner.

#dyn 0x740000
#org @main
lock
faceplayer
message @intro
callstd MSG_NORMAL
setflag 0x2010
jump @start
DOESNT GO TO #ORG @START
#org @start
lock
checkflag 0x2025
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon EEVEE 0x5 ORANBERRY 0 0 0
setflag 0x2025
storepokemon 0 EEVEE
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!\pNow, my Grandson will be waiting\nfor you in Dream City.\pWith him you will find Martin.\pThe legend of Rayquaza might be\ntrue.\pTalk with Martin to find out more.

#org @intro
= Hello \v\h01!.\pIt is your 13th birthday and I\npromised that I would give you a...\pPokemon!!
I see a red door and I want it painted black.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Ok, So im having a little problemo here. My script starts but doesnt continue to the next part. Any suggestions? I'm still a beginner.

#dyn 0x740000
#org @main
lock
faceplayer
message @intro
callstd MSG_NORMAL
setflag 0x2010
jump @start
DOESNT GO TO #ORG @START
#org @start
lock
checkflag 0x2025
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon EEVEE 0x5 ORANBERRY 0 0 0
setflag 0x2025
storepokemon 0 EEVEE
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!\pNow, my Grandson will be waiting\nfor you in Dream City.\pWith him you will find Martin.\pThe legend of Rayquaza might be\ntrue.\pTalk with Martin to find out more.

#org @intro
= Hello \v\h01!.\pIt is your 13th birthday and I\npromised that I would give you a...\pPokemon!!
Put an "end" after the jump @start.
Remove the "lock" after the @start.
Don't use flags over 900: refer to this list: http://www.pokecommunity.com/showpost.php?p=6829256&postcount=158
Change ":end" to @end
There really isn't a need for the @start section to have it's own label. It would have done fine under the @main label without the need for a jump.

Paired with Simba

Gyrath

Pokemon Lurid Creator

Male
Western Australia.
Seen December 15th, 2013
Posted May 19th, 2013
23 posts
10.1 Years
Put an "end" after the jump @start.
Remove the "lock" after the @start.
Don't use flags over 900: refer to this list: http://www.pokecommunity.com/showpost.php?p=6829256&postcount=158
Change ":end" to @end
There really isn't a need for the @start section to have it's own label. It would have done fine under the @main label without the need for a jump.
Thanks! It worked!
However It only works "once".
This might be a file problem but when I played the game the script worked fine. I wanted to see my Eevee's nature and it was "hardy". I didn't like it so I closed the game and opened up a fresh.
But then when I talk to the NPC. He just says the first line and doesn't go on with the script.
Solutions?
I see a red door and I want it painted black.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Thanks! It worked!
However It only works "once".
This might be a file problem but when I played the game the script worked fine. I wanted to see my Eevee's nature and it was "hardy". I didn't like it so I closed the game and opened up a fresh.
But then when I talk to the NPC. He just says the first line and doesn't go on with the script.
Solutions?
Probably the flag you used, which is over 900, which overlaps ram used for other things, which could have been changed by something else.

No flags over 900!

Paired with Simba