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
  #8001    
Old March 10th, 2013 (11:00 AM). Edited March 10th, 2013 by karatekid552.
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by designmadman:
Whenever I try to compile this script I get the following error: "No#org/seek directives found" any suggestions?

SCRIPT:

#dynamic 0x805300
#org @start
lockall
checkflag 0x1391
if 0x1 goto @done
checkflag 0x1385
if 0x1 goto @start
releaseall
end


#org @start2
setweather 0x5
doweather
setflag 0x1392
playsong 0x127 0x0
applymovement MOVE_PLAYER @moveplayer
waitmovement 0x0
msgbox @1 0x6
msgbox @2 0x6
msgbox @3 0x6
msgbox @4 0x6
msgbox @5 0x6
msgbox @6 0x6
applymovement 0x4 @move1
waitmovement 0x4
msgbox @yesno
boxset 0x5
if 0x1 goto @yes
if 0x0 goto @no
release
end

#org @yes
applymovement 0x5 @move2
waitmovement 0x5
trainerbattle 0x1 0x066 0x0 @before @after @later
#org @before
= TRAITOR

#org @after
= DAMM YOU!

#org @later
msgbox @7 0x6
fadescreen 0x1
hidesprite 0x2
hidesprite 0x5
fadescreen 0x1
setflag 0x1388
setflag 0x1387
msgbox @8 0x6
fadescreen 0x1
hidesprite 0x4
fadescreen 0x1
setflag 0x1389
setflag 0x1391
setflag 0x1394
setflag 0x1395
release
end



#org @no
applymovement 0x5 @move2
waitmovement 0x5
trainerbattle 0x1 0x068 0x0 @before @after @later
end

#org @before
= haha he's one of us!

#org @after
= NO...

#org @later
msgbox @9 0x6
fadescreen 0x1
hidesprite 0x2
hidesprite 0x4
fadescreen 0x1
setflag 0x1389
setflag 0x1387
msgbox @10 0x6
fadescreen 0x1
hidesprite 0x5
fadescreen 0x1
setflag 0x1388
setflag 0x1391
setflag 0x1394
setflag 0x1395
release
end

#org @done
releaseall
end


#org @yesno
= Yes or no?

#org @1
= DAISY: FIENDS

#org @2
= REX: WEVE

#org @3
= DAISY: GO FIG

#org @4
= REX: .....

#org @5
= DAISY: SPEECHLE

#org @6
= REX: I WAS

#org @7
= REX: THIS ISNT

#org @8
= DASISY: MEET

#org @9
= DAISY: YOU'D

#org @10
= REX: MEET

#org @moveplayer
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE

#org@ move1
#raw 0x2F
#raw 0xFE

#org@ move2
#raw 0x2F
#raw 0xE
#raw 0xFE
Yup, you need a #org where I put it above, I made the correction in red.

Edit: Also, try not to use @1,@2, etc, as sometimes script editors will bug out and place you script at 0x000001, which will break your game, use @one and such instead. It shouldn't happen, but just to be secure.
__________________

Paired with Simba
  #8002    
Old March 10th, 2013 (11:27 AM).
designmadman designmadman is offline
 
Join Date: Dec 2012
Location: canada
Gender: Male
Nature: Adamant
Posts: 12
Yeah haha I was looking at it and I realized I missed it I was going to post that I'm an idiot before anyone replied but you beat me to it.
  #8003    
Old March 10th, 2013 (12:09 PM). Edited March 10th, 2013 by ChainStorm.
ChainStorm's Avatar
ChainStorm ChainStorm is offline
 
Join Date: Mar 2013
Gender: Male
Nature: Docile
Posts: 5
I am trying to make a script where you find a pokeball with a pokemon inside. I have gotten it to work as far as the Pokemon being added to your party but I am trying to make it disappear after I get the Pokemon, like you can walk where it was and you can't see the sprite anymore. Any suggestions? I am using PKSV-UI.
__________________
I am still working on a better signature.
  #8004    
Old March 10th, 2013 (12:45 PM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
ModeratorCSGT
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,570
Set a flag, then assign that flag to the Pokéball's Person ID in Advance Map
__________________
  #8005    
Old March 11th, 2013 (12:08 AM). Edited March 11th, 2013 by U.Flame.
U.Flame's Avatar
U.Flame U.Flame is offline
Brony Hacker
 
Join Date: Jun 2008
Location: Sapphire City in future Hoenn
Age: 19
Gender: Male
Nature: Jolly
Posts: 1,212
Is there a table of special commands I can view? diegoisawesome has an incomplete list in his tutorial, so I'd appreciate it if I can find a complete one.

I also want to know how I can change the function of items. For example, replacing Pokeblock's function with the clock command to have a portable clock. I believe I've seen something similar done before, but I don't remember where or how. I've tried opening the item's offset in XSE, then giving it the special command. That didn't change the item though, but it did perform the function when I set the item's offset to a person event. I'm obviously missing something here.
__________________
Hacks I'm currently working on:
Pokemon Sapphire Hoenn's Ruin - My own hack, actively making progress.
3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
Pokemon Ruby Destiny Broken Timeline - Mapping assigned maps, slow pace at the moment.
Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.

Times I've been ninja'd: 18
Times I've ninja'd people: 3
  #8006    
Old March 11th, 2013 (01:34 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Helfen, Wehren, Heilen
Crystal Tier
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Posts: 1,322
Quote originally posted by U_Flame:
Is there a table of special commands I can view? diegoisawesome has an incomplete list in his tutorial, so I'd appreciate it if I can find a complete one.
A list of FR's special commands can be found in this thread. If you're looking for another version's specials then I'm not sure if there is a completed list on PC.
__________________
  #8007    
Old March 11th, 2013 (10:11 AM). Edited March 11th, 2013 by jackhiggins138.
jackhiggins138 jackhiggins138 is offline
 
Join Date: Aug 2012
Gender: Male
Posts: 11
hey , this is my script for a pokeball to give a potion but as soon as i get the item and move the pokeball comes back again

#dynamic 0x2DD264

#org @start
hidesprite 5
giveitem 0xD 0x1 0x0
setflag 0x1203
release
end
  #8008    
Old March 11th, 2013 (12:07 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by jackhiggins138:
hey , this is my script for a pokeball to give a potion but as soon as i get the item and move the pokeball comes back again

#dynamic 0x2DD264

#org @start
hidesprite 5
giveitem 0xD 0x1 0x0
setflag 0x1203
release
end
Don't use flags over 900 unless you know what you are doing, see this post: http://www.pokecommunity.com/showthread.php? and this one p=6829256#post6829256http://www.pokecommunity.com/showpost.php?p=6902344&postcount=183.

You also need to set the flag that you set as the person ID for that item in A-map.
__________________

Paired with Simba
  #8009    
Old March 11th, 2013 (12:21 PM).
jackhiggins138 jackhiggins138 is offline
 
Join Date: Aug 2012
Gender: Male
Posts: 11
soo i changed it to this

#dynamic 0x2DD2A0

#org @start
hidesprite 8
giveitem 0xD 0x1 0x0
setflag 0x8
release
end

which is what i think you ment but obviously im not a clever man and now it freezes the game when i touch it
  #8010    
Old March 11th, 2013 (03:35 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by jackhiggins138:
soo i changed it to this

#dynamic 0x2DD2A0

#org @start
hidesprite 8
giveitem 0xD 0x1 0x0
setflag 0x8
release
end

which is what i think you ment but obviously im not a clever man and now it freezes the game when i touch it
Flags below 21 are temporary, they won't work for you. The best chunk is 200-2FF. Also, i can see that you changed the event number. I said change the person ID. This is at the bottom of the person event sidebar. It will specifically say "person I.D.".
__________________

Paired with Simba
  #8011    
Old March 11th, 2013 (06:16 PM).
ChainStorm's Avatar
ChainStorm ChainStorm is offline
 
Join Date: Mar 2013
Gender: Male
Nature: Docile
Posts: 5
Quote originally posted by Spherical Ice:
Set a flag, then assign that flag to the Pokéball's Person ID in Advance Map
Unfortunately I screwed up my rom with sappy trying to change the music and I am trying to remake it but here is the script
Spoiler:
#org 0x874002F
'-----------------------------------
lock
checkflag 0x1001
if true jump 0x8740069 ' Flag is set
setflag 0x828
countpokemon
compare LASTRESULT 0x6
if == jump 0x874006B ' Equal To
addpokemon ESPEON 5 NUGGET 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 ESPEON
message 0x874009F ' You got a \v\h02!
fanfare 0x101
showmsg
waitfanfare
waitbutton
release
end

#org 0x8740069
'-----------------------------------
release
end

#org 0x874006B
'-----------------------------------
msgbox 0x8740075 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x874009F
= You got a \v\h02!

#org 0x8740075
= You don't have enough room in your party.


I have the Pokeball ID set to 828 but for some reason it won't even let me click the Pokeball. Nothing happens, no beep or anything, It treats it as a wall. I have it set to the script but I am almost sure I am the most incompetent (is that how you spell it?) hacker in the world. V.V Also I have checked the movement permissions and they are as they should be.
__________________
I am still working on a better signature.
  #8012    
Old March 12th, 2013 (02:39 PM).
FBI agent's Avatar
FBI agent FBI agent is offline
If my PM box is full, VM instead :x
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 823
Quote originally posted by ChainStorm:
Unfortunately I screwed up my rom with sappy trying to change the music and I am trying to remake it but here is the script
Spoiler:
#org 0x874002F
'-----------------------------------
lock
checkflag 0x1001
if true jump 0x8740069 ' Flag is set
setflag 0x828
countpokemon
compare LASTRESULT 0x6
if == jump 0x874006B ' Equal To
addpokemon ESPEON 5 NUGGET 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 ESPEON
message 0x874009F ' You got a \v\h02!
fanfare 0x101
showmsg
waitfanfare
waitbutton
release
end

#org 0x8740069
'-----------------------------------
release
end

#org 0x874006B
'-----------------------------------
msgbox 0x8740075 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x874009F
= You got a \v\h02!

#org 0x8740075
= You don't have enough room in your party.


I have the Pokeball ID set to 828 but for some reason it won't even let me click the Pokeball. Nothing happens, no beep or anything, It treats it as a wall. I have it set to the script but I am almost sure I am the most incompetent (is that how you spell it?) hacker in the world. V.V Also I have checked the movement permissions and they are as they should be.
Don't use flags over 900s, they overwrite and are overwritten by variables. You can press ctrl + L on PKSV to see what are some important flags you shouldn't use for events like there (you'll also notice 0x1FE, 0x1FF, 0x200-0x204 are unused and perfect for this event).

To make an overworld disappear, you need to do disappear 0x[PersonID] as seen in Advance Map.
Last point is that you can just check flag 0x828 since you're setting it once the Pokemon is obtained anyways.
__________________
...

My name forum name is FBI Agent, though you can call me FBI because it's shorter.

Some of my stuff:
ASM request/resource thread
ASM tutorials thread
ASM Workshop
  #8013    
Old March 14th, 2013 (09:03 AM).
sarge981 sarge981 is offline
 
Join Date: Feb 2013
Gender: Male
Posts: 6
Would anybody be willing to play what I have and try to figure out what is going on? I have tried troubleshooting for days but come up short everytime. Its no very far into the game its the very first pokemon center that causes problems after I fight a trainer I take possession of another sprite.

I posted before but never really got any answers or help

Pokemon:
Saphire Version:
A-MAP:
XSE:

Ok I tried doing all the research that I could but I am having trouble fixing the problem. Let me try to make this as clear as possible for you guys. When I make it to the first area that I have my pokemon center and heal I go out to battle the trainers. but after I beat some of them in battle for some reason when the battle scene is over I take control of another OW sprite or I will just move around as an invisble character. I tried narrowing down the problems. I dont believe it is any of the trainer codes as they are very basic and have no flags set on any of them. I the only other thing that I could think of would be map scripts causing the effects. But this problem only happens after I heal at the POKEMON CENTER?

I would show pics but the forum wont let me until I have posted 15 times :p
  #8014    
Old March 14th, 2013 (09:17 AM). Edited March 14th, 2013 by Draimond.
Draimond Draimond is offline
 
Join Date: Mar 2013
Gender: Male
Posts: 1
I'm happy to have a look at it if you'd like, I cant figure out how to get past an issue I'm havin with my own mod atm either. Private message me or sumthing an i'll give u my email if u wana send me over the rom to have a look at.

Quote originally posted by sarge981:
Would anybody be willing to play what I have and try to figure out what is going on? I have tried troubleshooting for days but come up short everytime. Its no very far into the game its the very first pokemon center that causes problems after I fight a trainer I take possession of another sprite.

I posted before but never really got any answers or help

Pokemon:
Saphire Version:
A-MAP:
XSE:

Ok I tried doing all the research that I could but I am having trouble fixing the problem. Let me try to make this as clear as possible for you guys. When I make it to the first area that I have my pokemon center and heal I go out to battle the trainers. but after I beat some of them in battle for some reason when the battle scene is over I take control of another OW sprite or I will just move around as an invisble character. I tried narrowing down the problems. I dont believe it is any of the trainer codes as they are very basic and have no flags set on any of them. I the only other thing that I could think of would be map scripts causing the effects. But this problem only happens after I heal at the POKEMON CENTER?

I would show pics but the forum wont let me until I have posted 15 times :p
I'm happy to have a look at it if you'd like, I cant figure out how to get past an issue I'm havin with my own mod atm either. Private message me or sumthing an i'll give u my email if u wana send me over the rom to have a look at.
  #8015    
Old March 14th, 2013 (09:31 AM).
sarge981 sarge981 is offline
 
Join Date: Feb 2013
Gender: Male
Posts: 6
Quote originally posted by Draimond:
I'm happy to have a look at it if you'd like, I cant figure out how to get past an issue I'm havin with my own mod atm either. Private message me or sumthing an i'll give u my email if u wana send me over the rom to have a look at.



I'm happy to have a look at it if you'd like, I cant figure out how to get past an issue I'm havin with my own mod atm either. Private message me or sumthing an i'll give u my email if u wana send me over the rom to have a look at.
Thanks man, I will send you a PM. Anybody else is welcome to try and help me on this the more the better. Im just ready to break through this problem
  #8016    
Old March 14th, 2013 (10:17 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
ModeratorCSGT
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,570
Quote originally posted by jackhiggins138:
soo i changed it to this

#dynamic 0x2DD2A0

#org @start
hidesprite 8
giveitem 0xD 0x1 0x0
setflag 0x8
release
end

which is what i think you ment but obviously im not a clever man and now it freezes the game when i touch it
you literally need to do this:

Code:
#dynamic 0x800000
#include stditems.rbh

#org @start
giveitem ITEM_NAME 0x1 MSG_FIND
end
And then assign a flag to the Poké Ball's Person ID. (This uses XSE)
__________________
  #8017    
Old March 16th, 2013 (04:34 PM).
U.Flame's Avatar
U.Flame U.Flame is offline
Brony Hacker
 
Join Date: Jun 2008
Location: Sapphire City in future Hoenn
Age: 19
Gender: Male
Nature: Jolly
Posts: 1,212
I've been following pokedude987's XSE tutorials on Youtube (with slight differences due to him using FireRed and I'm using Sapphire, but it works), and so far my test scripts have been working up until now. My trainer script won't compile due to the error: Error 13 "Type Mismatch" on line 10. Missing dynamic label.

The is my script:
#dynamic 0x6B0A88

#org @start
checkflag 0x201
if 0x1 goto @done
lock
faceplayer
givepokemon 0x194 0x64 0x0 0x0 0x0 0x0
msgbox @talk1 0x6
trainerbattle 0x0 0x236 0x0 @challege @defeat
setflag 0x201
release
end

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

#org @talk1
= Let's test a trainer battle now!

#org @talk2
= Was it a success?

#org @challenge
= Ready?

#org @defeat
= ...

Line 10 is the line with the trainerbattle command. I can't see any difference with pokedude987's 10th line besides the trainer ID pointer, but apparently I'm doing something wrong here. I'd appreciate any advice.
__________________
Hacks I'm currently working on:
Pokemon Sapphire Hoenn's Ruin - My own hack, actively making progress.
3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
Pokemon Ruby Destiny Broken Timeline - Mapping assigned maps, slow pace at the moment.
Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.

Times I've been ninja'd: 18
Times I've ninja'd people: 3
  #8018    
Old March 16th, 2013 (05:59 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by U_Flame:
I've been following pokedude987's XSE tutorials on Youtube (with slight differences due to him using FireRed and I'm using Sapphire, but it works), and so far my test scripts have been working up until now. My trainer script won't compile due to the error: Error 13 "Type Mismatch" on line 10. Missing dynamic label.

The is my script:
#dynamic 0x6B0A88

#org @start
checkflag 0x201
if 0x1 goto @done
lock
faceplayer
givepokemon 0x194 0x64 0x0 0x0 0x0 0x0
msgbox @talk1 0x6
trainerbattle 0x0 0x236 0x0 @challege @defeat
setflag 0x201
release
end

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

#org @talk1
= Let's test a trainer battle now!

#org @talk2
= Was it a success?

#org @challenge
= Ready?

#org @defeat
= ...

Line 10 is the line with the trainerbattle command. I can't see any difference with pokedude987's 10th line besides the trainer ID pointer, but apparently I'm doing something wrong here. I'd appreciate any advice.
You spelled "challenge" wrong on line 10:p. It was searching for "Challege" and couldn't find it.
__________________

Paired with Simba
  #8019    
Old March 17th, 2013 (10:29 AM).
ProfessorBeeching's Avatar
ProfessorBeeching ProfessorBeeching is offline
Professor Of Fail
 
Join Date: Mar 2013
Location: Sol 3, MW Galaxy, Universe-1
Age: 19
Gender: Male
Nature: Quirky
Posts: 20
Alright, now this might have been covered, but for some reason the search function hasn't yielded results for me...and its slowness doesn't help.
Anyway, my script is
Spoiler:
#org $talk
lock
faceplayer
message $hello
$hello 1 = Did you know?\nSkitty like the smell of flowers!
boxset 6
release
end

The problem isn't the script itself...I think...but I'm posting here just in case it is (that and I've no idea where to post it). Obviously, it's meant to make the NPC registered with it to say "Did you know? Skitty like the smell of flowers!" but for some reason, in-game she doesn't say this. In fact, she's not even where I placed her Person Event. In all the tests I've done so far, she seems to end up in one of two places - one is in the wall of a house, and one is in the middle of the map. In both cases, talking to her does nothing - she just continues looking as if there's no interaction. I've tried reinstalling Pokescript and using a fresh rom - even changing which game I'm hacking - but it still does nothing. I don't use XSE because I keep getting a runtime error 9 no matter what I do. So...could someone tell me if it's a script problem or an external problem?
Again, sorry if it's not the right place.
  #8020    
Old March 17th, 2013 (10:53 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
ModeratorCSGT
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,570
Use XSE. The version you have is faulty. Here's the correct version.

For XSE, this is all you need to do:

Spoiler:
#dynamic 0x800000

#org @start
msgbox @string1 0x2
release
end

#org @string1
= Did you know?\nSkitty like the smell of flowers!


Hit the Gears button and hit Copy, then paste the offset into the person's script offset in Advance Map.
__________________
  #8021    
Old March 17th, 2013 (11:24 AM). Edited March 17th, 2013 by ProfessorBeeching.
ProfessorBeeching's Avatar
ProfessorBeeching ProfessorBeeching is offline
Professor Of Fail
 
Join Date: Mar 2013
Location: Sol 3, MW Galaxy, Universe-1
Age: 19
Gender: Male
Nature: Quirky
Posts: 20
Well, that would be great...if XSE was working. Just downloaded the version you linked me to, unzipped it, and tried to use the application. Still getting the exact same response I got from every other time I used XSE;
"Run-Time Error 9:
subscript out of range"

EDIT: Through a quick Youtube search I managed to acquire a version of XSE which will work. I've done exaclty as you said to do, but it still yields the same result; the woman is still standing in the wrong place, just as before, even with the changed script offset. Actually, upon further examination, she returns to 'her' spot now after I get my starter, but talking to her triggers a glitchy shop, or a slot machine. I'm starting to wonder if this is caused by deleting events in the town, but I wouldn't have thought such a thing would be possible.
EDIT EDIT: Attempted the very same script you suggested in XSE on a fresh rom, but I still get the same issues.
  #8022    
Old March 17th, 2013 (01:51 PM).
TweenyTodd TweenyTodd is offline
Quitting cuz i got a job
 
Join Date: Feb 2013
Location: NOYB
Nature: Sassy
Posts: 95
OK, I have a problem with this level script. What script type should it be if I want it to work the second you enter a map?

Right now its script type 5, which only works when you open then close the menu.
  #8023    
Old March 17th, 2013 (01:57 PM).
GoGoJJTech's Avatar
GoGoJJTech GoGoJJTech is offline
http://GoGoJJTech.com (WIP!)
Gold Tier
 
Join Date: Nov 2012
Location: Earth
Age: 16
Gender: Female
Nature: Jolly
Posts: 2,078
I use four for my level scripts. Read cooley's level script tutorial and it will work.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
Romhack.me Profile - Pokecommunity Profile - Pokemonhackersonline Profile - Youtube Channel

Join us in the romhacking chat
Pokémon Platinum Red and Blue
  #8024    
Old March 18th, 2013 (08:36 AM). Edited March 18th, 2013 by TweenyTodd.
TweenyTodd TweenyTodd is offline
Quitting cuz i got a job
 
Join Date: Feb 2013
Location: NOYB
Nature: Sassy
Posts: 95
Now it doesn't work AT ALL. I'm thinking something is wrong with my script. Here is what I wrote.
Spoiler:

#dynamic 0x800000
#org @start
checkgender
compare 0x800D 0x1
if 0x1 goto @female
checkgender
compare 0x800D 0x0
if 0x1 goto @male

#org @female
hidesprite 0x1
setflag 0x900
hidesprite 0x4
setflag 0x901

#org @male
hidesprite 0x3
setflag 0x902
hidesprite 0x5
setflag 0x903
  #8025    
Old March 18th, 2013 (08:51 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by TweenyTodd:
Now it doesn't work AT ALL. I'm thinking something is wrong with my script. Here is what I wrote.
Spoiler:

#dynamic 0x800000
#org @start
checkgender
compare 0x800D 0x1
if 0x1 goto @female
compare 0x800D 0x0
if 0x1 goto @male

#org @female
hidesprite 0x1
setflag 0x900
hidesprite 0x4
setflag 0x901

#org @male
hidesprite 0x3
setflag 0x902
hidesprite 0x5
setflag 0x903
Use option 02 for map scripts with an unused var. Also, NO flags over 900. They overwrite var and pc ram space.
__________________

Paired with Simba
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 12:55 PM.