Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #3551    
Old April 12th, 2010 (06:47 AM).
Petz94's Avatar
Petz94 Petz94 is offline
 
Join Date: Apr 2010
Age: 29
Gender: Male
Posts: 32
Send a message via Skype™ to Petz94
Nvm, I fixed my script problem. Thank you anyways.
__________________
Hack in Progress: Pokemon - Black Opal(Working Title)

Hack Tools I Use:
Advance Map 1.90
Advance Text
Advance Mart
Advance Pokemon Sprite Editor
Advance Pokemon Icon Editor
A-Trainer
Intro Ed
YAPE
Overworld Editor
XSE
FSF
  #3552    
Old April 12th, 2010 (07:28 AM).
mariovstoad mariovstoad is offline
 
Join Date: Jun 2009
Gender:
Posts: 13
does anyone know if my above question is possible?
  #3553    
Old April 12th, 2010 (07:51 AM).
Mana's Avatar
Mana Mana is offline
Kariyai.
ModeratorCSEO
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,643
Quote originally posted by mariovstoad:
does anyone know if my above question is possible?
In A-Map find the script and click 'open Script'.

Pretty simple, you can then copy/paste that into a new script and edit as you please.
__________________
  #3554    
Old April 12th, 2010 (01:10 PM).
Fr0z3n's Avatar
Fr0z3n Fr0z3n is offline
 
Join Date: Mar 2009
Posts: 53
Hi again, its been a few days and no one has told me anything on how to get this script to work. The problem is, as soon as i walk out of the house, i want this script to activate, but it doesn't, and I set the flags and added a setvar, but nothing still works. If there is something wrong with his script could someone please fix it?

Spoiler:

#dynamic 0x16545A

#org @start
checkflag 0x9C4
if 0x1 goto @done
setvar 0x1B58 0x1
applymovement 0x02 @move
waitmovement 0x02
playsong 0x13E 0x0
msgbox @1 0x2
applymovement 0x02 @comemove
applymovement 0xFF @comemove2
waitmovement 0x02
waitmovement 0xFF
msgbox @2 0x2
applymovement 0x02 @move2
applymovement 0xFF @move3
waitmovement 0x02
waitmovement 0xFF
msgbox @3 0x2
applymovement 0x02 @move4
waitmovement 0x02
fadesong 0x12C
setflag 0x9C4
hidesprite 0x02
release
end

#org @done
release
end

#org @move
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x12
#raw 0x01
#raw 0xFE

#org @comemove
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE

#org @comemove2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x01
#raw 0xFE

#org @move2
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x63
#raw 0x00
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move4
#raw 0x1D
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE

#org @1
= DON'T GO ANYWHERE... YET! COME\nWITH ME!\l...\l...\lQUICKLY!!

#org @2
= So? How do you like it?\n...\l...\lWhat do you mean you don't see\lit?! It's right in FRONT of you!!\lOh, and you should come back with\lme to the lab. There's 3\lPOK\h1BMON left, so let's go\lbefore they run out!\l...\l...\lOH MY GOSH!! Your so useless\lsometimes. Come! I'll show you\lwhere it is!

#org @3
= Oh bother, I forgot! Mum needs me!\nGotta run!\lCatch ya' later!
__________________
To be or not to be is a question asked by many... But many do not know what the answer is to this question.



75% of Pokemon gamers use cheats and specially made codes to make their pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.
  #3555    
Old April 12th, 2010 (01:31 PM).
Mana's Avatar
Mana Mana is offline
Kariyai.
ModeratorCSEO
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,643
Quote originally posted by Fr0z3n:
Hi again, its been a few days and no one has told me anything on how to get this script to work. The problem is, as soon as i walk out of the house, i want this script to activate, but it doesn't, and I set the flags and added a setvar, but nothing still works. If there is something wrong with his script could someone please fix it?

Spoiler:

#dynamic 0x16545A

#org @start
checkflag 0x9C4
if 0x1 goto @done
setvar 0x1B58 0x1
applymovement 0x02 @move
waitmovement 0x02
playsong 0x13E 0x0
msgbox @1 0x2
applymovement 0x02 @comemove
applymovement 0xFF @comemove2
waitmovement 0x02
waitmovement 0xFF
msgbox @2 0x2
applymovement 0x02 @move2
applymovement 0xFF @move3
waitmovement 0x02
waitmovement 0xFF
msgbox @3 0x2
applymovement 0x02 @move4
waitmovement 0x02
fadesong 0x12C
setflag 0x9C4
hidesprite 0x02
release
end

#org @done
release
end

#org @move
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x12
#raw 0x01
#raw 0xFE

#org @comemove
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE

#org @comemove2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x01
#raw 0xFE

#org @move2
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x63
#raw 0x00
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move4
#raw 0x1D
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE

#org @1
= DON'T GO ANYWHERE... YET! COME\nWITH ME!\l...\l...\lQUICKLY!!

#org @2
= So? How do you like it?\n...\l...\lWhat do you mean you don't see\lit?! It's right in FRONT of you!!\lOh, and you should come back with\lme to the lab. There's 3\lPOK\h1BMON left, so let's go\lbefore they run out!\l...\l...\lOH MY GOSH!! Your so useless\lsometimes. Come! I'll show you\lwhere it is!

#org @3
= Oh bother, I forgot! Mum needs me!\nGotta run!\lCatch ya' later!
You need to make it a level script, follow the XSE tutorial by Diego (it has a level script section)
__________________
  #3556    
Old April 12th, 2010 (06:21 PM).
EXTREMEPokemon EXTREMEPokemon is offline
 
Join Date: Apr 2010
Gender: Male
Nature: Jolly
Posts: 6
Pokemon FireRed
Poketscript
I created this simple script but when ever i plug it in it doesnt work. Can someone tell why it doesnt work?

Spoiler:

#org $script
lock
faceplayer
checkflag 0x1200
if 0x01 goto $done
message $1
$1 = Heres a pokemon.
boxset 6
givepokemon 0x151 0x5 0x13
message $2
$2 = \v\h01 recieved \nMEW!!!
boxset 6
message $3
$3 = Take care of it!
boxset 6
setflag 0x1200
release
end

#org $done
message $hello
$hello = Hello again.
boxset 6
release
end
  #3557    
Old April 12th, 2010 (11:47 PM). Edited April 12th, 2010 by Ninja Caterpie.
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
A quick check. 0x16F is the national dex flag for FRLG, right?
__________________
Brony represent.
  #3558    
Old April 13th, 2010 (12:16 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by Ninja Caterpie:
A quick check. 0x16F is the national dex flag for FRLG, right?
Nope. It's a special actually:

Quote originally posted by std.rbh:
#define SP_FRNATIONAL 0x16F
#define SP_EMNATIONAL 0x1F3
__________________
  #3559    
Old April 13th, 2010 (11:54 AM).
pringles_king's Avatar
pringles_king pringles_king is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 29
EXTREMEPokemon!
Hexing is involved in this and i made you a script to do what you want right here!
71A6B3

Spoiler:
#dynamic 0x71A5C3

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x97 0x05 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x1200
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A47EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Heres a Mew!

#org @2
= How the **** dare you refuse him!

#org @3
= [black_fr] You received a Mew!

#org @4
= Would you like to give a nickname\nto mew?

#org @5
= Make him deadly.

#org @6
= Hi again [player]


That is the script if u wanna look and tweak it
lmk how it works
  #3560    
Old April 13th, 2010 (01:56 PM).
Binary's Avatar
Binary Binary is offline
え?
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
Okay, I'm having a problem with 'setmaptile'.
setmaptile [X Coordinate] [Y Coordinate] [Tile Number] [Movement allowed?]
I know the values of everything else except the tile number. What value is supposed to be put there? I put the block number displayed on the bottom left, but it doesn't turn out right.
__________________
  #3561    
Old April 13th, 2010 (02:01 PM).
Mana's Avatar
Mana Mana is offline
Kariyai.
ModeratorCSEO
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,643
Quote originally posted by Binary:
Okay, I'm having a problem with 'setmaptile'.
setmaptile [X Coordinate] [Y Coordinate] [Tile Number] [Movement allowed?]
I know the values of everything else except the tile number. What value is supposed to be put there? I put the block number displayed on the bottom left, but it doesn't turn out right.
That should be right, eg: 0x168 for the Gym Sign tile in tileset 0.

Are you sure that the X and Y co-ordinate are correct?

Also remember to use Special 0x8E after the setmaptile command to reset the map so the changes are visible straight away.
__________________
  #3562    
Old April 13th, 2010 (02:13 PM).
Binary's Avatar
Binary Binary is offline
え?
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
Quote originally posted by SwiftSign:
That should be right, eg: 0x168 for the Gym Sign tile in tileset 0.

Are you sure that the X and Y co-ordinate are correct?

Also remember to use Special 0x8E after the setmaptile command to reset the map so the changes are visible straight away.
Yeah, I also figured it out myself.
It seems that I tried changing the numbers into hex even though they were already in hex. lol.
Anyways, thanks.
__________________
  #3563    
Old April 13th, 2010 (05:48 PM).
Scytha's Avatar
Scytha Scytha is offline
mass effect freak
 
Join Date: Apr 2010
Location: Australia
Gender: Male
Nature: Naughty
Posts: 155
im not so good at scripting....can anyone tell me how i could, instead of Birch giving you the Hoenn dex he will give you the National Dex? This is ruby by the way.
  #3564    
Old April 13th, 2010 (08:34 PM).
Jonny Buuz's Avatar
Jonny Buuz Jonny Buuz is offline
La di da di do di da di dum...
 
Join Date: Oct 2005
Location: Behind you.
Age: 24
Gender: Male
Nature: Modest
Posts: 56
Send a message via AIM to Jonny Buuz
Could anyone tell me what I'm doing wrong here? I am at a complete loss.

Spoiler:
'---------------
#org 0x80007D
checkflag 0x828
if 0x1 goto 0x880009B
msgbox 0x880009E MSG_NORMAL '"Wait a sec..."
applymovement MOVE_PLAYER 0x88000AE
waitmovement 0x0
release
end

'---------------
#org 0x80009B
release
end


'---------
' Strings
'---------
#org 0x80009E
= Wait a sec...


'-----------
' Movements
'-----------
#org 0x8000AE
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


This is my actual XSE script, here.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @fin
msgbox @1 0x6
applymovement 0xFF @move
waitmovement 0x0
release
end

#org @fin
release
end

#org @1
= Wait a sec...

#org @move
#raw 0x11
#raw 0xFE
__________________
</signature>
  #3565    
Old April 13th, 2010 (10:37 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
Quote originally posted by Jonny Buuz:
Could anyone tell me what I'm doing wrong here? I am at a complete loss.

Spoiler:
'---------------
#org 0x80007D
checkflag 0x828
if 0x1 goto 0x880009B
msgbox 0x880009E MSG_NORMAL '"Wait a sec..."
applymovement MOVE_PLAYER 0x88000AE
waitmovement 0x0
release
end

'---------------
#org 0x80009B
release
end


'---------
' Strings
'---------
#org 0x80009E
= Wait a sec...


'-----------
' Movements
'-----------
#org 0x8000AE
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


This is my actual XSE script, here.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @fin
msgbox @1 0x6
applymovement 0xFF @move
waitmovement 0x0
release
end

#org @fin
release
end

#org @1
= Wait a sec...

#org @move
#raw 0x11
#raw 0xFE
Might want to explain the problem first.

Alright, so I made a level script;
Code:
#org @start
lockall
textcolor 0x0
applymovement MOVE_PLAYER @move1
msgbox @string1 MSG_NORMAL '"You're here to help me with my\nre..."
setflag 0x202
setvar 0x4055 0x2
end


'---------
' Strings
'---------
#org @string1
= You're here to help me with my\nresearch, right?\pOn the table there are three\nspecial POKéMON from KANTO.\pPick one!


'-----------
' Movements
'-----------
#org @move1
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
But, uhm, when I go into the map, the shop menu comes up instead.
__________________
Brony represent.
  #3566    
Old April 14th, 2010 (01:12 AM).
Johnhconnor's Avatar
Johnhconnor Johnhconnor is offline
Learning Trainer
 
Join Date: Apr 2010
Gender: Male
Nature: Jolly
Posts: 2
Game:Fire Red
Type:Gba
Editor:pokescript
Script: movement script (sound)

Spoiler:
#org $script
jingle
message $1
$1 1 = Hey \v\h01!
boxset 6
checkflag 0x1201
showsprite 10
applymovement 0xFF $surprised
$surprised 1 ; #binary 0x62 0xFE
pausemove 0
applymovement 10 $walk
pausemove 0
message $lazy
$lazy 1 = You're finally up then! \nAnyway \v\h01 Professor OAK is looking \pfor you so you better hurry \nI'll meet you there
boxset 6
applymovement 10 $walkaway
pausemove 0
removesprite 10
setflag 0x1201
setvar 0x6001 0x0001
release
end

#org $walk
#raw 0x0B 0x0B 0x0B 0x09 0x09 0x09 0x09 0x0B 0x0B 0xFE

#org $walkaway
#raw 0x0A 0x0A 0x08 0x08 0x08 0x08 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0xFE

Screenshots and/or Videos:

Basicly what im trying to do is get Gary to walk towards tell me
something and then walk away.
Ive done that fine all works perfectly now i want to add his music 0x13B
whilst he is in motion does anyone know how to do this because i cant find anyone
who can yet
I would be incredibly gratefull for any help
  #3567    
Old April 14th, 2010 (02:50 AM).
Scytha's Avatar
Scytha Scytha is offline
mass effect freak
 
Join Date: Apr 2010
Location: Australia
Gender: Male
Nature: Naughty
Posts: 155
OK i am having trouble getting a script right. I made an item, CLEANSE STONE, that evolves pokemon. In Item Manager it is after the LEAF STONE. I use pskvui. Can someone help me with the script?
Spoiler:
#dyn 0x740000
#org @start
copyvarifnotzero 0x8000 CLEANSESTONE
copyvarifnotzero 0x8001 1=1
callstd MSG_FIND
end
  #3568    
Old April 14th, 2010 (03:39 AM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
Quote originally posted by Johnhconnor:
Game:Fire Red
Type:Gba
Editor:pokescript
Script: movement script (sound)

Spoiler:
#org $script
jingle
message $1
$1 1 = Hey \v\h01!
boxset 6
checkflag 0x1201
showsprite 10
applymovement 0xFF $surprised
$surprised 1 ; #binary 0x62 0xFE
pausemove 0
applymovement 10 $walk
pausemove 0
message $lazy
$lazy 1 = You're finally up then! \nAnyway \v\h01 Professor OAK is looking \pfor you so you better hurry \nI'll meet you there
boxset 6
applymovement 10 $walkaway
pausemove 0
removesprite 10
setflag 0x1201
setvar 0x6001 0x0001
release
end

#org $walk
#raw 0x0B 0x0B 0x0B 0x09 0x09 0x09 0x09 0x0B 0x0B 0xFE

#org $walkaway
#raw 0x0A 0x0A 0x08 0x08 0x08 0x08 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0x0A 0xFE

Screenshots and/or Videos:

Basicly what im trying to do is get Gary to walk towards tell me
something and then walk away.
Ive done that fine all works perfectly now i want to add his music 0x13B
whilst he is in motion does anyone know how to do this because i cant find anyone
who can yet
I would be incredibly gratefull for any help
You can split the movements into two different ones and put a song command thing in the middle or you could use fadesong (or w/e its Pokescript equivalent is) and have it fade into his theme as he's walking.
__________________
Brony represent.
  #3569    
Old April 14th, 2010 (03:49 AM).
Pokepal17's Avatar
Pokepal17 Pokepal17 is offline
More cowbell~
Silver Tier
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Posts: 1,517
Quote originally posted by Ninja Caterpie:
Might want to explain the problem first.

Alright, so I made a level script;
Code:
#org @start
lockall
textcolor 0x0
applymovement MOVE_PLAYER @move1
msgbox @string1 MSG_NORMAL '"You're here to help me with my\nre..."
setflag 0x202
setvar 0x4055 0x2
end
 
 
'---------
' Strings
'---------
#org @string1
= You're here to help me with my\nresearch, right?\pOn the table there are three\nspecial POKéMON from KANTO.\pPick one!
 
 
'-----------
' Movements
'-----------
#org @move1
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
But, uhm, when I go into the map, the shop menu comes up instead.
Okay, first can you please alsoshow us the #raws at the beginning of the script.

Also, you need a waitmovement 0x0 under the applymovement.
__________________
Pokémon Stardrop
  #3570    
Old April 14th, 2010 (11:15 AM).
pringles_king's Avatar
pringles_king pringles_king is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 29
I kinda need help!
Spoiler:

#org @start
trainerbattle 0x0 0x002 0x0 @before @after
msgbox @beaten 0x6
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
release
end

#org @before
= I'm from the Elite four!\nDon't be alarmed for\pThis is a team under Training!

#org @after
= You're pretty good!

#org @beaten
= I know i'll see you again\nIn the future!


Pokemon Ruby hacking im working on
and i put in a trainer with Elite four Sidney as the trainer but
when i battle him
he sends out the first pokemon i set for him properly but when he sends out another its a level 80 sandslash
and i cant change it why is that?
  #3571    
Old April 14th, 2010 (04:18 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
Oops, yeah, sorry about that. This, right?

Code:
'---------------
#org 0x721578
#raw 0x2
#raw pointer 0x871AF7A
#raw 0x0

'---------------
#org 0x71AF7A
#raw word 0x4055
#raw word 0x1
#raw pointer 0x8721589
#raw word 0x1

'---------------
#org 0x721589
lockall
textcolor 0x0
applymovement MOVE_PLAYER 0x872161A
msgbox 0x87215A5 MSG_NORMAL '"You're here to help me with my\nre..."
setflag 0x202
setvar 0x4055 0x2
end


'---------
' Strings
'---------
#org 0x7215A5
= You're here to help me with my\nresearch, right?\pOn the table there are three\nspecial POKéMON from KANTO.\pPick one!


'-----------
' Movements
'-----------
#org 0x72161A
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
__________________
Brony represent.
  #3572    
Old April 14th, 2010 (05:47 PM).
Pokepal17's Avatar
Pokepal17 Pokepal17 is offline
More cowbell~
Silver Tier
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Posts: 1,517
Quote originally posted by Ninja Caterpie:
Oops, yeah, sorry about that. This, right?

Code:
'---------------
#org 0x721578
#raw 0x2
#raw pointer 0x871AF7A
#raw 0x0
 
'---------------
#org 0x71AF7A
#raw word 0x4055
#raw word 0x1
#raw pointer 0x8721589
#raw word 0x0
 
'---------------
#org 0x721589
lockall
textcolor 0x0
applymovement MOVE_PLAYER 0x872161A
msgbox 0x87215A5 MSG_NORMAL '"You're here to help me with my\nre..."
setflag 0x202
setvar 0x4055 0x2
end
 
 
'---------
' Strings
'---------
#org 0x7215A5
= You're here to help me with my\nresearch, right?\pOn the table there are three\nspecial POKéMON from KANTO.\pPick one!
 
 
'-----------
' Movements
'-----------
#org 0x72161A
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

Fixes in bold. That #raw word 0x0 should always be 0x0 because it acts as an "end" command for the level script header. If it's not #raw word 0x0, it does stupid things like item givings. It'd be cool if you could make it give a rare candy.
__________________
Pokémon Stardrop
  #3573    
Old April 15th, 2010 (05:06 AM).
Satoshi Ookami's Avatar
Satoshi Ookami Satoshi Ookami is offline
Memento Mori
Gold Tier
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Posts: 13,208
Quote originally posted by pringles_king:
I kinda need help!
he sends out the first pokemon i set for him properly but when he sends out another its a level 80 sandslash
and i cant change it why is that?
Did you re-check it with A-Trainer?
You might not have saved it properly.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #3574    
Old April 15th, 2010 (07:07 PM).
Reverse Dimension Reverse Dimension is offline
 
Join Date: Apr 2010
Gender: Male
Posts: 1
how to a make a script (preferably with PKSV) where the pesron event is deleted after you use it once
  #3575    
Old April 15th, 2010 (09:31 PM). Edited April 15th, 2010 by Ninja Caterpie.
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
Quote originally posted by Reverse Dimension:
how to a make a script (preferably with PKSV) where the pesron event is deleted after you use it once
You add this:

Code:
hidesprite 0xZ
setflag 0xY
Z is the event number of the person.
Y is an unused flag.

After that, in A-Map, put the person event's Person ID as Y and the person event should be gone after the script.



Now for my own question.

Code:
#dynamic 0x720000

'---------------
#org @start
checkflag 0x204
if 0x1 goto @snippet1
textcolor 0x0
msgbox @string1 MSG_NORMAL '"Hey! [player]!"
showsprite 0x9
playsong 0x13B 0x0
applymovement MOVE_PLAYER @move1
applymovement 0x9 @move2
waitmovement 0x0
compare 0x4000 0x1
if 0x1 goto @snippet2
compare 0x4000 0x2
if 0x1 goto @snippet3
compare 0x4000 0x3
if 0x1 goto @snippet4
release
end

'---------------
#org @snippet1
release
end

'---------------
#org @snippet2
trainerbattle 0x1 0x149 0x0 @string2 @string3 @snippet5
end

'---------------
#org @snippet3
trainerbattle 0x1 0x14A 0x0 @string2 @string3 @snippet5
end

'---------------
#org @snippet4
trainerbattle 0x1 0x14B 0x0 @string2 @string3 @snippet5
end

'---------------
#org @snippet5
msgbox @string4 MSG_NORMAL '"You're quite a POKéMON TRAINER,\n[..."
additem 0x153 0x1
loadpointer 0x0 @string5 '" BLACK FR You got the HM01!"
giveitem2 0x153 0x1 0x105
msgbox @string6 MSG_NORMAL '"Before I go, watch out for a chick..."
applymovement 0x9 @move3
waitmovement 0x0
hidesprite 0x9
release
end


'---------
' Strings
'---------
#org @string1
= Hey! [player]!

#org @string2
= It's me, [player]!\pI'm helping PROF. SPRUCE with his\nresearch as well!\pYou're taking on FOREGROVE CITY\nPOKéMON GYM, right?\pWell, let me test your ability!

#org @string3
= Whoa! Blown away!

#org @string4
= You're quite a POKéMON TRAINER,\n[player]!\pYou'll do great if you're going to\ndo the GYM LEADER challenge!\pYou can be my rival!\pOh, almost forgot, PROF. SPRUCE\ntold me to give you this.\pIt's a HM, or HIDDEN MACHINE, for\nCUT!

#org @string5
=  BLACK FR You got the HM01!

#org @string6
= Before I go, watch out for a chick\nnamed LISA.\pShe's also helping PROF. SPRUCE\nwith his research.\pYou can't miss her, she's got a\nhuge white hat and matching bag.\pAnyway, I should be going now!\nCatch you later!


'-----------
' Movements
'-----------
#org @move1
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org @move2
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
I have this script written and everything, but when I try to run it, it just skips past the compare vars. I definitely set 0x4000 when you get your first Pokemon. Depending on the one you get, it'll set to something different, but it seems to have not set at all. =| 'tis strange.

How do you check what is set as a var?
__________________
Brony represent.
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 09:52 PM.