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
  #2326    
Old October 3rd, 2009 (12:05 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by TheDon:
It's still doing the same thing. >.<

Might it be because I'm trying to use a Ruby ROM? Is the move tutor event even programmed in it?
Ruby doesn't have move tutors...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #2327    
Old October 3rd, 2009 (05:11 PM).
Team Fail's Avatar
Team Fail Team Fail is offline
Dragon at heart
Platinum Tier
 
Join Date: May 2009
Age: 20
Gender: Male
Nature: Brave
Posts: 9,672
There is a big issue with my script. I've started scripting only recently, and I've been able to make my own scripts. But, this is way over my head. When the player sprite steps on the designated tile, the script activates, like it should. But, when you return, and step on that same tile, the script activates again. I'm using a basic talking script, and a variable number from a different script. Can I have the script fixed so it works? Or, have it explained so that It will work?

Game: Pokemon FireRed Version
Type: Event
Script:
Spoiler:

#org $start
lock
message $1
boxset 6
release
end

#org $1
$1 1 =Oh, boy... I am so lost...\nI wish I knew where I was...\p...\p...\p...\pI'll find a way out.


If you are wondering, I removed the faceplayer command because there is no person to talk to.
__________________
| | | | |
PM | VM
PC Minecraft Bukkit Server Moderator


Do the best with whatever you can today.
Then tomorrow, you will have surely progressed.


The Legend of Legacy - Main Battle Theme
  #2328    
Old October 3rd, 2009 (05:57 PM).
NarutoActor's Avatar
NarutoActor NarutoActor is offline
The rocks cry out to me
Silver Tier
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 21
Gender: Female
Nature: Bashful
Posts: 1,975
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
try using a setflag and a checkflag
__________________
~There are those people who understand hex, F the rest
  #2329    
Old October 3rd, 2009 (06:15 PM). Edited October 3rd, 2009 by TheDon.
TheDon's Avatar
TheDon TheDon is offline
Pokemon (kinda) Expert
 
Join Date: Apr 2008
Age: 24
Gender:
Nature: Lonely
Posts: 41
Quote originally posted by pokemonruby2:
There is a big issue with my script. I've started scripting only recently, and I've been able to make my own scripts. But, this is way over my head. When the player sprite steps on the designated tile, the script activates, like it should. But, when you return, and step on that same tile, the script activates again. I'm using a basic talking script, and a variable number from a different script. Can I have the script fixed so it works? Or, have it explained so that It will work?

Game: Pokemon FireRed Version
Type: Event
Script:
Spoiler:

#org $start
lock
message $1
boxset 6
release
end

#org $1
$1 1 =Oh, boy... I am so lost...\nI wish I knew where I was...\p...\p...\p...\pI'll find a way out.


If you are wondering, I removed the faceplayer command because there is no person to talk to.
From what you're saying, you're using this as a script, rather than a person event. If you want someone to say something when you talk to them, you'd be better off setting the script to a person's sprite in AdvanceMap, rather than using a scripting tile for it.

As the person above me said, you'd need to use flags.

Spoiler:
#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done

message $1
boxset 6
setflag 0x200
release
end

#org $done
release
end


#org $1
$1 1 =Oh, boy... I am so lost...\nI wish I knew where I was...\p...\p...\p...\pI'll find a way out.


That should work.
__________________


85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
-TheDon
  #2330    
Old October 3rd, 2009 (10:29 PM).
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: 12,939
Nope. If that's trigger script (the one which activates when ya step on it...) then ya have to use setvars... for example setvar 0x4050 0x1 and that 4050 needs to be written into var number bar.
If it's person talk script sorry for not understanding.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2331    
Old October 4th, 2009 (01:15 AM). Edited October 5th, 2009 by PastaPen.
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
Hey so I tried to make a script so that when you talk to this guy, he'll talk and then walk and disappear. It worked but after this script is activated the game seems to think i'm in a safari zone and when I press start it gives me an option to retire. ( This is in Fire Red and I'm using XSE )

Spoiler:
'---------------
#org 0x26D52E
lock
faceplayer
msgbox 0x826D548 MSG_NORMAL '"How are you finding Grey Town?\nOh..."
applymovement 0x1 0x826D6CD
waitmovement 0x0
hidesprite LASTTALKED
setflag 0x200
release
end


'---------
' Strings
'---------
#org 0x26D548
= How are you finding Grey Town?\nOh I'm sorry.\pI haven't introduced myself,\nI'm Proffessor Willow,\pI teach young trainers how to \nuse psychic powers and form a bond\pwith their pokemon. \nYou see...\pI knew you were coming...\nI need several tasks that\pneed to be completed.\nI don't have the energy to do such \pthings, not since...\n-sigh-\pAnyway I have no doubt I'll see you\nlater.\pGood luck.


'-----------
' Movements
'-----------
#org 0x26D6CD
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements


Please help

I found out the solution, if anybody else has the same problem as me just change the person ID in A-map, It was 800 previously, which is what activated the safari zone. I think... :D
  #2332    
Old October 4th, 2009 (06:25 AM).
zaraza zaraza is offline
 
Join Date: Sep 2009
Gender: Male
Posts: 1
Spoiler:
#org $start
lock
faceplayer
cry 0xA1 7
#raw 0x33
prause 0x30
message $cry
$cry 1 = Squirtle ! Squirtle !
boxset 6
pause 0x20
wildbattle 7 12 0
pause 0x60
fadescreen 0
removesprite 0x800F
setflag 0x1211
pause 0x10fadescreen 0
release
end


When i want to fight i get red color screen and game crashes why ??
  #2333    
Old October 4th, 2009 (03:33 PM).
Haz's Avatar
Haz Haz is offline
Haz ya seen my hack?
 
Join Date: Nov 2008
Location: Australia- Aussie, Aussie, Aussie!, Oi, Oi, Oi!
Gender: Female
Nature: Docile
Posts: 698
Send a message via Yahoo to Haz
Hey I'm back trying to learn to script and I'm doing the following one:
Code:
 
 
'---------------
#org 0x800010
lock
faceplayer
msgbox 0x880001D MSG_NORMAL '"Hi [player]!\n My Nidorino is bein..."
release
end

'---------
' Strings
'---------
#org 0x80001D
= Hi [player]!\n My Nidorino is being a pain.\p Can you battle him to make\n him move?\p Oh you don't have a Pokemon...\n Go see Elm, he'll have one.
Anyway, I need to know how to make the Nidorino battle you after you come back from Elms lab with a Pokemon. He disappers afterwards.
__________________
DeviantART: Haz-Za

Fanfiction.net: Ha-Za-A


Credits to Galukxy for this awesome banner
  #2334    
Old October 4th, 2009 (04:08 PM).
NarutoActor's Avatar
NarutoActor NarutoActor is offline
The rocks cry out to me
Silver Tier
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 21
Gender: Female
Nature: Bashful
Posts: 1,975
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
thats requesting a script but I will tell you what you will nead add a check flag (check the have a first pokemon flag) then have a startwildbatte and then have a seflag (0x300) and add a check flag(0x300) when if (ox300) is set it takes you to release end or if its a persone event just put 300 as the persons ID so after the wildbattle and the setflag is set put a disaprear then when you go to another map the disprence will be perminate
__________________
~There are those people who understand hex, F the rest
  #2335    
Old October 4th, 2009 (04:13 PM).
Haz's Avatar
Haz Haz is offline
Haz ya seen my hack?
 
Join Date: Nov 2008
Location: Australia- Aussie, Aussie, Aussie!, Oi, Oi, Oi!
Gender: Female
Nature: Docile
Posts: 698
Send a message via Yahoo to Haz
Alright, thanks. I was meant to add after my script about directing me to a tutorial that had how to do that but I must of hit Submit instead of Preview.
__________________
DeviantART: Haz-Za

Fanfiction.net: Ha-Za-A


Credits to Galukxy for this awesome banner
  #2336    
Old October 5th, 2009 (09:22 AM).
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
Sorry this is probably quite a common problem but I'm not sure what I'm doing wrong, I want this script to only be activated once, so I set a flag but it still seems to activate again... (Btw this is on a script event on a person event) Can anybody tell me what error I've made? Thanks.

Spoiler:
#dynamic 0x2DD4DC
#org @start
lock
message @txt 0x6
applymovement 0x2 @mvm1
waitmovement 0x0
applymovement 0x1 @mvm2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
applymovement 0x2 @mvm3
waitmovement 0x0
message @text 0x6
givepokemon 0x3F 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
fadescreen 0x1
hidesprite 0x2
fadescreen 0x0
setflag 0x8C3
release
end

#org @txt
= Uh oh...\nIt looks like Meowth wants to \pbattle!\nHold on!\p I'll help you!

#org @mvm1
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#org @mvm2
#RAW 0x4F
#RAW 0x00
#RAW 0xFE

#org @mvm3
#RAW 0x00
#RAW 0xFE

#org @text
= No need to thank me... But...\nMeowths are rare in this area\pand I've been trying to spot one,\nfor years.\pAs you saw this meowth first\nit's yours...\pBut would you take an abra \nand let me keep this meowth?\pYou would? \nThanks!\pAs I'm in a generous\n mood, you can have a \p pokedex too!
__________________
  #2337    
Old October 5th, 2009 (09:31 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: 12,939
Quote originally posted by Firaaz:
Sorry this is probably quite a common problem but I'm not sure what I'm doing wrong, I want this script to only be activated once, so I set a flag but it still seems to activate again... (Btw this is on a script event on a person event) Can anybody tell me what error I've made? Thanks.

Spoiler:
#dynamic 0x2DD4DC
#org @start
lock
checkflag 0x8C3
if 0x1 goto @(insert something here)

message @txt 0x6
applymovement 0x2 @mvm1
waitmovement 0x0
applymovement 0x1 @mvm2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
applymovement 0x2 @mvm3
waitmovement 0x0
message @text 0x6
givepokemon 0x3F 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
fadescreen 0x1
hidesprite 0x2
fadescreen 0x0
setflag 0x8C3
release
end

#org @(insert that something here)
lock
faceplayer
msgbox @1
callstd 0x6
release
end

#org @1
= Something insert here

#org @txt
= Uh oh...\nIt looks like Meowth wants to \pbattle!\nHold on!\p I'll help you!

#org @mvm1
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#org @mvm2
#RAW 0x4F
#RAW 0x00
#RAW 0xFE

#org @mvm3
#RAW 0x00
#RAW 0xFE

#org @text
= No need to thank me... But...\nMeowths are rare in this area\pand I've been trying to spot one,\nfor years.\pAs you saw this meowth first\nit's yours...\pBut would you take an abra \nand let me keep this meowth?\pYou would? \nThanks!\pAs I'm in a generous\n mood, you can have a \p pokedex too!
Ya can do it the way I did
It's practically like this... when person gives ya pokemon and dex and ya talk to it again it'll say something like "I don't have more to give ya".
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2338    
Old October 5th, 2009 (09:35 AM). Edited October 6th, 2009 by PastaPen.
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
That would be useful and thanks for replying =D but this is a script not a person event, and at the end the screen fades to black and goes to normal again, the guys gone, (you know how people like warping in pokemon) so it'd be weird if my character is talking to thin air! >_<

Should I change it so the event is activated by talking to somebody? (Thanks for replying)
__________________
  #2339    
Old October 5th, 2009 (09:46 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: 12,939
Quote originally posted by Firaaz:
That would be useful and thanks for replying =D but this is a script not a person event, and at the end the screen fades to black and goes to normal again, the guys gone, (you know how people like warping in pokemon) so it'd be weird if my pokemon is talking to thin air! >_<

Should I change it so the event is activated by talking to somebody? (Thanks for replying)
Oh I see... so ya just wanna person disappear...
That's pretty easy.

Spoiler:
#dynamic 0x2DD4DC
#org @start
lock
message @txt 0x6
applymovement 0x2 @mvm1
waitmovement 0x0
applymovement 0x1 @mvm2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
applymovement 0x2 @mvm3
waitmovement 0x0
message @text 0x6
givepokemon 0x3F 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
fadescreen 0x1
hidesprite 0x2 (don't use that command it's not really good...)
applymovement (use movement which moves the sprite somewhere where player won't see it and use raw 60 (what hides it) at the end of movement.)
waitmovement 0x0
fadescreen 0x0
setflag 0x8C3
release
end

#org @txt
= Uh oh...\nIt looks like Meowth wants to \pbattle!\nHold on!\p I'll help you!

#org @mvm1
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#org @mvm2
#RAW 0x4F
#RAW 0x00
#RAW 0xFE

#org @mvm3
#RAW 0x00
#RAW 0xFE

#org @text
= No need to thank me... But...\nMeowths are rare in this area\pand I've been trying to spot one,\nfor years.\pAs you saw this meowth first\nit's yours...\pBut would you take an abra \nand let me keep this meowth?\pYou would? \nThanks!\pAs I'm in a generous\n mood, you can have a \p pokedex too!

After you'll do that movement put number of flag (8C3 in your script) into ID of person (This way person will disappear and won't appear when ya move to other map).
Hope ya understood
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2340    
Old October 6th, 2009 (07:23 AM).
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
Erm I think i'm explaining it badly so I just made a video to show you my problem =D



So how can I stop the script reactivating because the flag won't work. The people stay hidden. Sorry if i'm annoying you ash xD
__________________
  #2341    
Old October 6th, 2009 (07:32 AM).
hashtag's Avatar
hashtag hashtag is offline
the man in black
Crystal Tier
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 20
Gender: Male
Posts: 6,683
Quote originally posted by Firaaz:
Sorry this is probably quite a common problem but I'm not sure what I'm doing wrong, I want this script to only be activated once, so I set a flag but it still seems to activate again... (Btw this is on a script event on a person event) Can anybody tell me what error I've made? Thanks.

Spoiler:
#dynamic 0x2DD4DC
#org @start
lock
message @txt 0x6
applymovement 0x2 @mvm1
waitmovement 0x0
applymovement 0x1 @mvm2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
applymovement 0x2 @mvm3
waitmovement 0x0
message @text 0x6
givepokemon 0x3F 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
fadescreen 0x1
hidesprite 0x2
fadescreen 0x0
setflag 0x8C3
release
end

#org @txt
= Uh oh...\nIt looks like Meowth wants to \pbattle!\nHold on!\p I'll help you!

#org @mvm1
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#org @mvm2
#RAW 0x4F
#RAW 0x00
#RAW 0xFE

#org @mvm3
#RAW 0x00
#RAW 0xFE

#org @text
= No need to thank me... But...\nMeowths are rare in this area\pand I've been trying to spot one,\nfor years.\pAs you saw this meowth first\nit's yours...\pBut would you take an abra \nand let me keep this meowth?\pYou would? \nThanks!\pAs I'm in a generous\n mood, you can have a \p pokedex too!
Fixed

Code:
#dynamic 0x2DD4DC

#org @start
lock
checkflag 0x8C3
if 0x1 goto @skip
message @txt 0x6
applymovement 0x2 @mvm1
waitmovement 0x0
applymovement 0x1 @mvm2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
applymovement 0x2 @mvm3
waitmovement 0x0
message @text 0x6
givepokemon 0x3F 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
fadescreen 0x1
hidesprite 0x2
fadescreen 0x0
setflag 0x8C3
release
end

#org @skip
release
end

#org @txt
= Uh oh...\nIt looks like Meowth wants to \pbattle!\nHold on!\p I'll help you!

#org @mvm1
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#org @mvm2
#RAW 0x4F
#RAW 0x00
#RAW 0xFE

#org @mvm3
#RAW 0x00
#RAW 0xFE

#org @text
= No need to thank me... But...\nMeowths are rare in this area\pand I've been trying to spot one,\nfor years.\pAs you saw this meowth first\nit's yours...\pBut would you take an abra \nand let me keep this meowth?\pYou would? \nThanks!\pAs I'm in a generous\n mood, you can have a \p pokedex too!
__________________
#
  #2342    
Old October 6th, 2009 (07:43 AM).
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
I tried the fixed script but it doesn't work... Thanks for the attempt though... What the hell is up with my game? x_X

_________________________________________________________________________________________________________

I just realised, when I compiled the fixed script you put in there, Manipulation it didn't include the checkflag command, it's there but when I compile it it's gone... Also at the end of my script is an "executeram" command which suddenly pops up, although I didn't include this in the script.
__________________
  #2343    
Old October 6th, 2009 (12:01 PM).
NarutoActor's Avatar
NarutoActor NarutoActor is offline
The rocks cry out to me
Silver Tier
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 21
Gender: Female
Nature: Bashful
Posts: 1,975
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
YOU NEED A CHECKFLAG and it must be a unused flag maniplulations script looked good what went wrong with his
__________________
~There are those people who understand hex, F the rest
  #2344    
Old October 7th, 2009 (02:25 AM).
mervyn797 mervyn797 is offline
What? I'm right here. >D
 
Join Date: Mar 2009
Gender: Male
Nature: Careful
Posts: 1,705
Game: Firered
Type : Trigger
Tool: Pksv
script:
Spoiler:
#org 0x8740001
'-----------------------------------
lock
checkflag 0x7
if true jump 0x8740019 ' Flag is set
message 0x8740023 ' Ow Man, \pWhat a per...
showmsg
pause 0x55
closemsg
setflag 0x7
release
end
#org 0x8740019
'-----------------------------------
release
end

#org 0x8740023
= Ow Man, \pWhat a perfect day to \nstart an adventure!

-------------
hi! i just started scripting after a long time, forgot most of it. XD. can anyone tell whats wrong with the script. its a trigger one, it just freezes the game when i use it. pls.
  #2345    
Old October 7th, 2009 (06:44 AM).
PastaPen PastaPen is offline
 
Join Date: Oct 2008
Posts: 48
Naruto, It had the same effect as the old one, I could activate the script as many times as I wanted by stepping on that tile.
__________________
  #2346    
Old October 7th, 2009 (07:55 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: 12,939
Quote originally posted by Firaaz:
Naruto, It had the same effect as the old one, I could activate the script as many times as I wanted by stepping on that tile.
tile script needs also setvar 0xvar number 0x1 command
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2347    
Old October 7th, 2009 (10:04 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
Moderator
CS
 
Join Date: Nov 2007
Location: UK
Posts: 3,417
Send a message via Skype™ to Spherical Ice
Script Editor: eXtreme Script Editor
Script Type: Person, GivePokémon
Script Problem: When I am a female character it gives me a Nidoran Female when it is supposed to give me a Nidoran Male. Basically the checkgender isn't working right/hasn't been used right. It works for the Male, but he gets Nidoran Female anyway.
Script:
Spoiler:
#dynamic 0x800000

#org @start
lockall
checkflag 0x8D6
if 0x0 goto @skip
checkflag 0x828
if 0x1 goto @skip
applymovement 0x7 @move1
waitmovement 0x7
msgbox @msg1 0x6
applymovement 0x7 @move2
waitmovement 0x7
msgbox @msg2 0x6
applymovement 0x7 @move3
waitmovement 0x7
msgbox @msg3 0x6
pause 0x20
msgbox @msg4 0x6
checkgender
if 0x1 goto @girl
givepokemon 0x20 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
setflag 0x828
msgbox @msg5 0x6
applymovement 0x7 @move4
waitmovement 0x7
releaseall
end

#org @skip
releaseall
end

#org @girl
givepokemon 0x1D 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
setflag 0x828
msgbox @msg6 0x6
applymovement 0x7 @move4
waitmovement 0x7
releaseall
end

#org @msg1
= ...

#org @msg2
= ...

#org @msg3
= ...

#org @msg4
= ...

#org @msg5
= ...

#org @msg6
= ...

#org @move1
#raw 0x1
#raw 0x62
#raw 0xFE

#org @move2
#raw 0x11
#raw 0x11
#raw 0x2
#raw 0x12
#raw 0x1
#raw 0x11
#raw 0xFE

#org @move3
#raw 0x53
#raw 0x62
#raw 0xFE

#org @move4
#raw 0x0
#raw 0x10
#raw 0x3
#raw 0x13
#raw 0x0
#raw 0x10
#raw 0x10
#raw 0x2
#raw 0xFE
__________________
  #2348    
Old October 7th, 2009 (10:25 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: 12,939
Quote originally posted by Spherical Ice:
Spoiler:
#dynamic 0x800000

#org @start
lockall
checkflag 0x8D6
if 0x0 goto @skip
checkflag 0x828
if 0x1 goto @skip
applymovement 0x7 @move1
waitmovement 0x7
msgbox @msg1 0x6
applymovement 0x7 @move2
waitmovement 0x7
msgbox @msg2 0x6
applymovement 0x7 @move3
waitmovement 0x7
msgbox @msg3 0x6
pause 0x20
msgbox @msg4 0x6
checkgender
if 0x1 goto @girl
givepokemon 0x20 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
setflag 0x828
msgbox @msg5 0x6
applymovement 0x7 @move4
waitmovement 0x7
releaseall
end

#org @skip
releaseall
end

#org @girl
givepokemon 0x1D 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
setflag 0x828
msgbox @msg6 0x6
applymovement 0x7 @move4
waitmovement 0x7
releaseall
end

#org @msg1
= ...

#org @msg2
= ...

#org @msg3
= ...

#org @msg4
= ...

#org @msg5
= ...

#org @msg6
= ...

#org @move1
#raw 0x1
#raw 0x62
#raw 0xFE

#org @move2
#raw 0x11
#raw 0x11
#raw 0x2
#raw 0x12
#raw 0x1
#raw 0x11
#raw 0xFE

#org @move3
#raw 0x53
#raw 0x62
#raw 0xFE

#org @move4
#raw 0x0
#raw 0x10
#raw 0x3
#raw 0x13
#raw 0x0
#raw 0x10
#raw 0x10
#raw 0x2
#raw 0xFE
Basically ya don't have checkgender rightly written
Checkgender command needs to have this.
checkgender
compare LASTRESULT 0x0
if 0x1 goto @(boy's string)
compare LASTRESULT 0x1
if 0x1 goto @(girl's string)
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2349    
Old October 7th, 2009 (11:23 AM).
Ryman1024's Avatar
Ryman1024 Ryman1024 is offline
 
Join Date: Oct 2009
Gender: Male
Posts: 2
Hey, Does anyone know how to, or what are the item values for gym badges? I cant quite figure out how to get my gym leaders to give badges, because I dont know the item code or value. Same thing for the National Dex. Thanks alot.
  #2350    
Old October 7th, 2009 (11:28 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: 12,939
Quote originally posted by Ryman1024:
Hey, Does anyone know how to, or what are the item values for gym badges? I cant quite figure out how to get my gym leaders to give badges, because I dont know the item code or value. Same thing for the National Dex. Thanks alot.
For badges ya have to use setflag + flag number of badge.
Badges
0x820 – Activates First Badge
0x821 - Activates Second Badge
0x822 - Activates Third Badge
0x823 - Activates Fourth Badge
0x824 - Activates Fifth Badge
0x825 - Activates Sixth Badge
0x826 - Activates Seventh Badge
0x827 - Activates Eighth Badge
National Dex - First ya have to activate pokedex menu (setflag 0x829) and for national dex ya have to add special 0x16F
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
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 04:13 AM.