The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Help Thread (DO NOT REQUEST SCRIPTS) (https://www.pokecommunity.com/showthread.php?t=163576)

NarutoActor November 13th, 2009 8:32 PM

switch the flags. so switch the pokedex flag with the national dex flag.

Satoshi Ookami November 13th, 2009 11:59 PM

Lemme say this.
Get rid of Nintendo's level script and make your own for professor.

HackMew November 14th, 2009 1:56 AM

Quote:

Originally Posted by NarutoActor (Post 5317866)
switch the flags. so switch the pokedex flag with the national dex flag.

Before posting that, you should have known there isn't really a National Dex flag. A special is used to activate it.

Angry Ampharos November 14th, 2009 4:05 AM

lock
faceplayer
checkflag 0x1300
if 0x01 goto $done
message $talk
$talk 1 =Mommy won't let me keep Fluffy...\nPlease take it...
givepokemon 360 5 0
boxset 6
setflag 0x1300
release
end

#org $done
message $go
$go 1 =How is Fluffy doing?
boxset 6
release
end

The script is meant to display the first text. give the Pokemon and then whenever you talk to the person again it should display the second amount of text.

At the moment what it does is just display the second script. This also triggers a change in another script.

I use pokescript.

Dr. POP November 18th, 2009 10:50 AM

Hi, I've got two issues:

- On route 7, as a test, I added two person events. When I entered the map, only one person event was present. Walking all the way up the map, made the other person event appear. However, the script was the same for both events (namely the script of the first dude). What is happening here? (To be clear; route 7 didn't had any person events before I added these.) what the heck, doesn't matter actually
On other maps however I didn't have this problem yet, so it isn't very urgent.

- I am trying to make persons appear and disappear. Can I insert any random Person ID nr. into the Person-ID-nr.-box in Amap? Or should it be an empty flag/variable/thingy?

Pokepal17 November 18th, 2009 1:50 PM

Quote:

Originally Posted by Jm20 (Post 5331264)
Hi, I've got two issues:

- On route 7, as a test, I added two person events. When I entered the map, only one person event was present. Walking all the way up the map, made the other person event appear. However, the script was the same for both events (namely the script of the first dude). What is happening here? (To be clear; route 7 didn't had any person events before I added these.) what the heck, doesn't matter actually
On other maps however I didn't have this problem yet, so it isn't very urgent.

- I am trying to make persons appear and disappear. Can I insert any random Person ID nr. into the Person-ID-nr.-box in Amap? Or should it be an empty flag/variable/thingy?

Person ID must be the flag you set.

Flags are between 0x1 and 0x3FFF. Anything after is variables. So make the person, use hidesprite and the person event number and set a flag which is the person ID. 0x1000 and after are flags that you should use.

Samike360 November 19th, 2009 10:42 AM

I'm trying to make a simple warp script. You step on the tile and you're somewhere else. I'm using

warp 0x4 0x1 0xFF 0x06 0x06

As the script. However, when I step on the tile, weird things happen. If I do not assign the 0003 and the 4050 then everything goes black the minute I step on it. If I do assign those, then the screen flashes black indefinitely. Does anyone know the problem?

Satoshi Ookami November 19th, 2009 10:56 AM

Post the complete script here please... ;)
Warp one doesn't seem to be wrong... by the way you don't have to use 0s in 06 and 006.

Samike360 November 19th, 2009 11:03 AM

Quote:

Originally Posted by Ash493 (Post 5333863)
Post the complete script here please... ;)
Warp one doesn't seem to be wrong... by the way you don't have to use 0s in 06 and 006.

warp 0x4 0x1 0xFF 0x06 0x06
end

I've tried it without the 0s in front of the 6s but it doesn't make a difference

Satoshi Ookami November 19th, 2009 11:25 AM

Try this.
#dynamic 0x800000
#org @start
lock
setvar 0x4050 0x1
0x4 0x1 0xFF 0x06 0x06
release
end

Samike360 November 19th, 2009 12:08 PM

Quote:

Originally Posted by Ash493 (Post 5333916)
Try this.
#dynamic 0x800000
#org @start
lock
setvar 0x4050 0x1
0x4 0x1 0xFF 0x06 0x06
release
end

I fixed it, thanks for your help. The way I fixed it is that I changed the dimensions, and somehow it worked :P

Anyway, would you mind telling me what the setvar does in the script? I haven't really done much work with vars

Satoshi Ookami November 19th, 2009 12:41 PM

Quote:

Originally Posted by Samike360 (Post 5333995)
Anyway, would you mind telling me what the setvar does in the script? I haven't really done much work with vars

It just removes the tile script ;)
So when you fill the var number bar with 4050 and use setvar 0x4050 0x1 the tile script will be erased, it has similar function as flags when ya wanna erase person ;)

Dr. POP November 19th, 2009 1:14 PM

Quote:

Originally Posted by Pokepal17 (Post 5331580)
Person ID must be the flag you set.

Flags are between 0x1 and 0x3FFF. Anything after is variables. So make the person, use hidesprite and the person event number and set a flag which is the person ID. 0x1000 and after are flags that you should use.

Thanks alot! :) So it is normal that my person only disappears once the player begins to move (after I've run the setflag [peopleid] script), and therefore I have to use hidesprite. Right? Anyway, I think I understand! :p

NarutoActor November 19th, 2009 3:55 PM

Okay, I tryed everything, but I can't get this level script to work it's a level script in players room, and when I try it in the game the screen just gose black.

here is the script
Spoiler:

'---------------
#org 0x71A5BC
movesprite 0xFF 0x2 0x6
movesprite 0x1 0x3 0x6
lock
msgbox 0x871D3FC MSG_NORMAL '"Good Morning, Sleepy hed.\pIts 12:..."
applymovement 0x1 0x871D4A6
waitmovement 0x0
setflag 0x710
setvar 0x4056 0x1
release
end

'---------
' Strings
'---------
#org 0x71D3FC
= Good Morning, Sleepy hed.\pIts 12:30 just because your on\nsummer vacation, dosen't mean you\lhave to act like a bum.\pNow go fetch me some grocyes, from\nthe local market.

'-----------
' Movements
'-----------
#org 0x71D4A6
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements


here is the maps script
Spoiler:

'---------------
#org 0x168CA3
#raw 0x3
#raw pointer 0x871A5BC
#raw 0x4
#raw pointer 0x8168CBE
#raw 0x0
'---------------
#org 0x168CBE
#raw word 0x4056
#raw word 0x0
#raw pointer 0x871A5BC
#raw word 0x0
'---------------
#org 0x71A5BC
movesprite 0xFF 0x2 0x6
movesprite 0x1 0x3 0x6
lock
msgbox 0x871D3FC MSG_NORMAL '"Good Morning, Sleepy hed.\pIts 12:..."
applymovement 0x1 0x871D4A6
waitmovement 0x0
setflag 0x710
setvar 0x4056 0x1
release
end

'---------
' Strings
'---------
#org 0x71D3FC
= Good Morning, Sleepy hed.\pIts 12:30 just because your on\nsummer vacation, dosen't mean you\lhave to act like a bum.\pNow go fetch me some grocyes, from\nthe local market.

'-----------
' Movements
'-----------
#org 0x71D4A6
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

Pokepal17 November 19th, 2009 5:55 PM

Quote:

Originally Posted by NarutoActor (Post 5334657)
Okay, I tryed everything, but I can't get this level script to work it's a level script in players room, and when I try it in the game the screen just gose black.

here is the script
Spoiler:

'---------------
#org 0x71A5BC
movesprite 0xFF 0x2 0x6
movesprite 0x1 0x3 0x6
lock
msgbox 0x871D3FC MSG_NORMAL '"Good Morning, Sleepy hed.\pIts 12:..."
applymovement 0x1 0x871D4A6
waitmovement 0x0
setflag 0x710
setvar 0x4056 0x1
release
end

'---------
' Strings
'---------
#org 0x71D3FC
= Good Morning, Sleepy hed.\pIts 12:30 just because your on\nsummer vacation, dosen't mean you\lhave to act like a bum.\pNow go fetch me some grocyes, from\nthe local market.

'-----------
' Movements
'-----------
#org 0x71D4A6
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements


here is the maps script
Spoiler:

'---------------
#org 0x168CA3
#raw 0x2
#raw pointer 0x871A5BC
#raw 0x4
#raw pointer 0x8168CBE
#raw 0x0
'---------------
#org 0x168CBE
#raw word 0x4056
#raw word 0x0
#raw pointer 0x871A5BC
#raw word 0x0
'---------------
#org 0x71A5BC
movesprite 0xFF 0x2 0x6
movesprite 0x1 0x3 0x6
lock
msgbox 0x871D3FC MSG_NORMAL '"Good Morning, Sleepy hed.\pIts 12:..."
applymovement 0x1 0x871D4A6
waitmovement 0x0
setflag 0x710
setvar 0x4056 0x1
release
end

'---------
' Strings
'---------
#org 0x71D3FC
= Good Morning, Sleepy hed.\pIts 12:30 just because your on\nsummer vacation, dosen't mean you\lhave to act like a bum.\pNow go fetch me some grocyes, from\nthe local market.

'-----------
' Movements
'-----------
#org 0x71D4A6
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

Use a type 2 level script instead of a type 3 level script. Changes in script.

NarutoActor November 19th, 2009 6:03 PM

Quote:

Originally Posted by Pokepal17 (Post 5335029)
Use a type 2 level script instead of a type 3 level script. Changes in script.

I just did what you said, and it still dosen't work. I get the same problem as before a black screen, after the intro.

Pokepal17 November 19th, 2009 6:05 PM

Quote:

Originally Posted by NarutoActor (Post 5335056)
I just did what you said, and it still dosen't work. I get the same problem as before a black screen, after the intro.

I see what you've done. Here's the fix.

---------------
#org 0x168CA3
#raw 0x2
#raw pointer 0x8168CBE
#raw 0x0
'---------------
#org 0x168CBE
#raw word 0x4056
#raw word 0x0
#raw pointer 0x871A5BC
#raw word 0x0
'---------------
#org 0x71A5BC
movesprite 0xFF 0x2 0x6
movesprite 0x1 0x3 0x6
lock
msgbox 0x871D3FC MSG_NORMAL '"Good Morning, Sleepy hed.\pIts 12:..."
applymovement 0x1 0x871D4A6
waitmovement 0x0
setflag 0x710
setvar 0x4056 0x1
release
end

'---------
' Strings
'---------
#org 0x71D3FC
= Good Morning, Sleepy hed.\pIts 12:30 just because your on\nsummer vacation, dosen't mean you\lhave to act like a bum.\pNow go fetch me some grocyes, from\nthe local market.

'-----------
' Movements
'-----------
#org 0x71D4A6
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

And BTW, use your own offsets for the beginning of the level script, you can overwrite important data if you don't.

Larvitar170 November 21st, 2009 8:35 PM

Game: Fire Red
Type: Movement/Script
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000



#org @start

applymovement 0xFF @move

release

end



#org @move

#raw 0x10

#raw 0xFE


In the Advance Map, I entered 0003 in the unknown, and 4050 in the Var Number.
All this does is freeze the character.

NarutoActor November 21st, 2009 8:43 PM

you need to add a waitmovement 0x0

NatureKeeper November 21st, 2009 8:49 PM

Quote:

Originally Posted by Larvitar170 (Post 5340556)
Game: Fire Red
Type: Movement/Script
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000

#org @start
applymovement 0xFF @move
waitmovement 0x0
release
end

#org @move
#raw 0x10
#raw 0xFE


In the Advance Map, I entered 0003 in the unknown, and 4050 in the Var Number.
All this does is freeze the character.

I Fixed it. Try it now. :D I am positive it will work.

Larvitar170 November 21st, 2009 9:00 PM

Quote:

Originally Posted by NatureKeeper (Post 5340611)
I Fixed it. Try it now. :D I am positive it will work.

I tried it, and it still didn't work. I made sure it was entered exactly as you had, then copied and pasted after that didn't work. Could it be that I'm not giving it enough space?

EDIT: It is my Rom. I tried it in another ROM, and it worked fine.

sky_queen3 November 22nd, 2009 1:17 AM

I want a bit of help please.

See this youtube clip
http://www.youtube.com/watch?v=RWg1MVCcAMg

The Eevee has a ^_^ box appear above it's head, how do they do that? (Or the closest thing in Fire Red.)

Satoshi Ookami November 22nd, 2009 2:05 AM

Quote:

Originally Posted by sky_queen3 (Post 5340922)
The Eevee has a ^_^ box appear above it's head, how do they do that? (Or the closest thing in Fire Red.)

applymovement and one of movements needs to be #raw 0x66

Verloren November 22nd, 2009 2:31 AM

I want to edit the death script so when you get a game over it sends you back to the nearest place you healed at but only restores 1HP and 1PP to all your pokemon.

How would I go about doing this?

sky_queen3 November 22nd, 2009 2:32 AM

Quote:

Originally Posted by Ash493 (Post 5340963)
applymovement and one of movements needs to be #raw 0x66

Ok, I'll try again, that's what I thought but when I tried it the popup didn't pop up. Thank you though, I will try it anyway incase it's something I missed. :) *is in a real good mood 'cause I finally got Trend Micro and PokeCryGUI v2.0 to work at the same time. :D*


All times are GMT -8. The time now is 2:55 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 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 generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.