• 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.

Hack Tutorials: Scripting

Status
Not open for further replies.

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
  • Age 33
  • Seen Dec 23, 2023
ALAS! I have found a very nice tutorial. Thanks 4 this!

I was really dying to learn movement and trainer battle scripting.

Thanks again!
 

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
  • Age 33
  • Seen Dec 23, 2023
Ok, I've tried to put the givepokemon script to ROM. I used the example:

#org $Startscript
lock
faceplayer
checkflag 0x200
if 1 goto $GotIt
message $AskMe
$AskMe 1 = Would you like a free pokemon?
boxset 5
compare LASTRESULT 1
if 1 goto $Giveit
message $Forget
$Forget 1 = Oh.. Ok, forget it!
boxset 6
release
end

#org $Gotit
message $Howis
$Howis 1 = So, How's the pokemon?
boxset 6
release
end

#org $Giveit
message $Whatisit
$Whatisit 1= You Recieved a BulbaSaur!
boxset 6
givepokemon 0x1 5 0
release
setflag 0x200
end


So it must be good.
I encoded it with pokescript, then it opened in bufrite. And I did it:
cojarobieti2.jpg

And then:
amaptg2.jpg

And when i talk to this man, game freezes - what's wrong?

I see you have put the script on the advance map, but have you included to put the flag "200" in the people I.D in advance map..?

I have a problem like this once, and when I reviewed everything, I forgot to include the flag in the script I made.

Hope I helped.
 
Last edited:
4
Posts
16
Years
  • Seen Jan 19, 2009
wats

can u tell me wats wrong with this script because wen the professor's aid is going to give me the premierballs the whole screen turns red and it freezes up
p.s. im using a firered rom

Spoiler:
 
16
Posts
16
Years
  • Seen Nov 30, 2007
can u tell me wats wrong with this script because wen the professor's aid is going to give me the premierballs the whole screen turns red and it freezes up
p.s. im using a firered rom

Spoiler:

Spoiler:
 
4
Posts
16
Years
  • Seen Jan 19, 2009
Spoiler:

wat do i do with that?
sorry im new at this
 
1,104
Posts
16
Years
Spoiler:

I found another little mistake.
 
156
Posts
16
Years
  • Seen Oct 24, 2009
Thanks, Although this has to be a joke, Why would nintendo program this into a kids game

#define ITEM_SHOALSALT 0x2E
#define ITEM_SHOALSHELL 0x2F
#define ITEM_REDSHARD 0x30
#define ITEM_BLUESHARD 0x31
#define ITEM_YELLOWSHARD 0x32
#define ITEM_GREENSHARD 0x33
#define ITEM_HENTAIMAG 0x34
#define ITEM_NAMETAG 0x35
#define ITEM_HPUP 0x3F
 

Ooka

[font=Maven Pro][color=#A75EE2]Cosmic[/color][/fon
2,626
Posts
16
Years
Um, the script in the first post just made the aid at the begining not talk to me. When I load the script to compress it it says "File not found or user cancel"
 
156
Posts
16
Years
  • Seen Oct 24, 2009
How do you put your script into your ROM hack anyways?

And again, Someone please tell me that this is a joke
ITEM_HENTAIMAG 0x34
Or is that just something like this
missingnoofitems.png

That can't be used (And if it is Nintendo should have givin it another name)
 
1,104
Posts
16
Years
How do you put your script into your ROM hack anyways?

And again, Someone please tell me that this is a joke

Or is that just something like this
missingnoofitems.png

That can't be used (And if it is Nintendo should have givin it another name)

Okay on how to look at insert a script look at Irish Witch's tutorial. It's in Part 1. About the Hentaimag, I'm sick of seeing this question. It isn't in the game. To set things straight here is a full item list(No Hentaimag)
Spoiler:
 

Short Range

Chargin' mah Solarbeam!
270
Posts
16
Years
My script doesn't work. The character walks straight past it. It may be because it's ontop of a warp though...

#org $PokeCheck
checkflag 0x001
if 0x0 goto $NoPoke
end

#org $NoPoke
message $WhatNoPoke
$WhatNoPoke 1 = NURSE: You can't go out without\pa POKEMON. Wild ones will attack\pyou!
boxset 6
applymovement 0xff $GetHere
$GetHere 1 ; #Binary 0x62 0x01 0x09 0xfe
pausemove 0
end

I don't see anything wrong with it, do you? It just doesn't exaccute when I walk on it.
 
1,104
Posts
16
Years
My script doesn't work. The character walks straight past it. It may be because it's ontop of a warp though...



I don't see anything wrong with it, do you? It just doesn't exaccute when I walk on it.

Try using a different flag. Try starting at around the 0x200 point. 0x001 could have been set at the start of the game.
 
Status
Not open for further replies.
Back
Top