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
  #3976    
Old May 29th, 2010 (06:47 AM).
gl3500's Avatar
gl3500 gl3500 is offline
Glcelebi The Rom Hacker
Team Sinnoh
 
Join Date: May 2009
Location: South Africa
Gender: Male
Nature: Calm
Posts: 11
I am sure something is wrong, i am just not too familiar with these kind of scripts, so i am not definite yet, what i wanted was that when the player steps on a particular tile very close to prof.oaks lab in firered, another sprite next to the lab will go inside the lab and the player will say "....." after the sprite has gone into the lab. Can somebody please explain what i am doing wrong and explain exactly how the commands work for the door opening and closing thing, i tried something and it is not coming out right.
Spoiler:
#dynamic 0x71B364
#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw FE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......

I cannot compile script to test it, it says error 13 type mismatch on line 12. Appreciate help if i can get any. Thanx
__________________
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...
  #3977    
Old May 29th, 2010 (07:01 AM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
@gl3500 You forgot to put it in HEX.

Code:
#dynamic 0x71B364
#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi 
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3978    
Old May 29th, 2010 (07:10 AM).
Nikolai Fox's Avatar
Nikolai Fox Nikolai Fox is offline
Team Hoenn
 
Join Date: Mar 2010
Gender: Male
Posts: 200
How do you set one variable to a value, and then change it to another value?

I am using the Fire Red Hacked engine, and I used this code which changes the level of the Pokémon a gym leader has to three levels higher than your highest level Pokémon.

setvar 0x4052 0x203
trainerbattle 0x1 etc
setvar 0x4052 0x0

The var first gets set to the value that makes the Pokélevels what I wanted them to be, which worked. But after the battle, all trainer Pokémon levels are still 3 levels higher than my highest level Pokémon. If the value of 4052 is 0, it should cancel the change?

Thanks.
  #3979    
Old May 29th, 2010 (08:40 AM).
Metroid Die Metroid Die is offline
Team Kanto
 
Join Date: Mar 2009
Posts: 54
Quote originally posted by Nikolai Fox:
Ooft busy day.

@melosfox
1. Remove the nops.
2. Make sure the overworld's Person ID is set to 1000 (same as the flag you set)
2.5. A little tip. Underneath the "wildpokémonbattle" part, put in "playsong 0xXXX". Replace XXX with any song (there is a list of them in any header in Advance Map). This will make the battle theme when fighting the Pokémon whatever you want.

@smashking
What are you asking smashking? Be a little clearer.

@metroid die
The "waitmovement 0x0" part is supposed to be the same as the applymovement.

So for move player it's
applymovement 0xFF
waitmovement 0xFF

And you can still move about because you didn't use the "lock" command at the start of your script.

@viet
Decompile isn't the opposite of compile in this case. Decompile simply translates the script into something that is more readable (if it is already readable, then nothing happens).

So yeah, you need to make the script in a new offset.

I changed the waitmovements to what you said, but the error persists... Nothing I do changes it. Can you help out with this?
  #3980    
Old May 29th, 2010 (09:44 AM). Edited May 29th, 2010 by gl3500.
gl3500's Avatar
gl3500 gl3500 is offline
Glcelebi The Rom Hacker
Team Sinnoh
 
Join Date: May 2009
Location: South Africa
Gender: Male
Nature: Calm
Posts: 11
Quote:
@gl3500 You forgot to put it in HEX.
Thanx for the help, i will give it a try and see if it works. Again, Thanx. :-)

Quote originally posted by vietazn654:
@gl3500 You forgot to put it in HEX.

Code:
#dynamic 0x71B364
#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi 
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......
Thanx, whoops, i actually missed that, sometimes, i actually dont see things as simple as that, i will give it a try, thanx for the help. :-)

Hi, i have another problem now, i was able to compile the script and everything, but it is not working properly. the sprite does not move, the door opens and closes, but the "...." shows up. Why did the sprite not go through the door and into the lab. Please help again. I am trying, but i cannot get script working correctly, i am still quite new to the door command. Can somebody please show me what i am now doing wrong. Appreciate help. Thanx
Spoiler:
#dynamic 0x71B364
#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......

__________________
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...
  #3981    
Old May 29th, 2010 (10:17 AM).
Nikolai Fox's Avatar
Nikolai Fox Nikolai Fox is offline
Team Hoenn
 
Join Date: Mar 2010
Gender: Male
Posts: 200
@gl3500

Spoiler:


#dynamic 0x71B364
#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end


#org @hi
lockall
applymovement 0x03 @clone
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
setdoorclosed 0x10 0xD
doorchange
msgbox @weird 0x6
setflag 0x202
releaseall
end


#org @hi2
lockall
releaseall

#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @weird
= .......


I think that is what you want.

If not. What exactly do you want to happen?
  #3982    
Old May 29th, 2010 (10:23 AM).
Binary's Avatar
Binary Binary is offline
え?
Team Johto
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
@gl3500:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......


EDIT: It would actually be better if you did this instead:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
release
end

#org @hi
msgbox @weird 0x2
release
end


#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @weird
= .......

Makes it a little simpler, eh?
__________________
  #3983    
Old May 29th, 2010 (10:42 AM). Edited May 29th, 2010 by gl3500.
gl3500's Avatar
gl3500 gl3500 is offline
Glcelebi The Rom Hacker
Team Sinnoh
 
Join Date: May 2009
Location: South Africa
Gender: Male
Nature: Calm
Posts: 11
Quote originally posted by Binary:
@gl3500:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......


EDIT: It would actually be better if you did this instead:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
release
end

#org @hi
msgbox @weird 0x2
release
end


#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @weird
= .......

Makes it a little simpler, eh?
Yes and thanx, i got it working, i do have one other question though, i tried testing the PC function with this script. What i wanted it to do was to display message @10, when closed by pressing a, the screen will fade to black, play fanfare and ONLY when fanfare is done, the screen will fade back to normal, open up PC, allow use of PC WHILE keeping the hero unable to move until the PC is closed, finally, when the PC is closed, i want it to display message @11 and this message will again, only close when a is pushed. Can somebody please help with this, ithis is my first time trying a PC script and i cannot work out what i am doing wrong, i have tried more than 10 scripts for it and none have given the results i want, can anybody please point out what i di wrong. Thanx
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
end
msgbox @11 0x6

#org @10
= Welcome to the computer\ndisguised as a Pokeball!
#org @11
= Thank you for using\nthis fake system! XD
release
end
P.s The PC was using the pokeball sprite that is used for items, so do not think that i needed the lock and faceplayer commands.

Also, going back to my script from earlier, everything is working, i just have one problem now, when the sprite goes through the door. I wanted the messagebox @weird to automatically popup and you close it with a, originally my script made the sprite go through the door and if i walked back over the tile with the script, it shows the ".....". I now edited it to this in the spoiler and now nothing appears if i rewalk over it, now i know what the problem is with the "...." not reappearing, but it is not what i want. I want the "...." to popup automatically after the sprite has gone through the door and close when a is pressed, and if possible, how would i delay the message a bit? Finally, how do i make it so that when the "...." is shown and closed after pressing a, the "...." will not show again so that after the "...." has shown up and closed, the next time i step on the tile with the script, nothing will happen.

Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end

#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x04 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x04 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
hidesprite 0x800F
msgbox @weird 0x6
closeonkeypress
releaseall
end


#org @hi2
releaseall
end


#org @weird
= .......
__________________
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...
  #3984    
Old May 29th, 2010 (01:43 PM). Edited May 29th, 2010 by vietazn654.
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Code:
#dynamic 0x2166E0

#org @start
checkflag 0x1000
if 0x1 goto @done
applymovement 0xFF @move
waitmovement 0x0
msgbox @1 0x6
setflag 0x1000
release
end

#org @done
release
end

#org @move
#raw 0x57
#raw 0x03
#raw 0x03
#raw 0x01
#raw 0x01
#raw 0x03
#raw 0xFE

#org @1
= \v\h01: (W-wh-where am I?)\p(Hmm... There's only one way to\nfind out.)
It's for RUBY... The movement part won't work. It skips it and goes to the message.


EDIT: NVMNVMNVM! IT WORKS! =P
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3985    
Old May 29th, 2010 (02:38 PM). Edited May 29th, 2010 by melosfox.
melosfox melosfox is offline
Team Hoenn
 
Join Date: May 2010
Gender: Male
Posts: 23
Ok, so I'm going along scripting in XSE, when I try to compile the code, I get an error.

Quote:
"Not enough free space found. Can not compile.
So I double check to make sure that there is in fact free space, and I notice that I have tons of it. Also, I can compile all parts of the script, unless I type in:
Quote:
#dynamic 0xoffset
#org @start
at the beginning of the script (which has to be done for it to function.

What am I doing wrong?

(Also, when I compile the script in another program and get it working, I get a white screen at the beginning. What could cause that? I'm almost positive I'm not overwriting anything.)
  #3986    
Old May 29th, 2010 (03:20 PM).
Shiny Quagsire's Avatar
Shiny Quagsire Shiny Quagsire is offline
STOP HIM SAM, HE'S GONNA TELL US A STORY!!!
Team Unova
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 17
Gender: Male
Nature: Jolly
Posts: 691
Quote originally posted by melosfox:
Ok, so I'm going along scripting in XSE, when I try to compile the code, I get an error.
......
If you haven't tried, put this at the beginning:

Code:
#dynamic 0x800000
__________________



  #3987    
Old May 29th, 2010 (03:46 PM). Edited May 29th, 2010 by melosfox.
melosfox melosfox is offline
Team Hoenn
 
Join Date: May 2010
Gender: Male
Posts: 23
Quote originally posted by shiny quagsire:
If you haven't tried, put this at the beginning:

Code:
#dynamic 0x800000
Hmm. . . yes, I have tried that.
Still. XSE won't compile it, but PokeSvui does.
And, as soon as it's compiled, I get a white screen at the beginning.

Here's the script (offsets removed for now.)
Spoiler:
'-----------------------
#org 0xE3CF64
lockall
faceplayer
checksound
msgbox 0x8000001 '"It... moved?!"
callstd 0x6
cry 0x96 0x2
pause 0x28
waitcry
startwildbattle 0x96 0x50 0x0
setflag 0x1001
special 0x13B
clearflag 0x1001
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto 0x0000000
compare LASTRESULT 0x4
if 0x1 goto 0x0000001
compare LASTRESULT 0x5
if 0x1 goto 0x0000001
setflag 0x1002
releaseall
end

'-----------------------
#org 0x0000000
setflag 0x1002
'-----------------------
#org 0x0000001
setvar 0x8004 0x96

'---------
' Strings
'---------
#org 0x1
= It... moved?!


I know the script works because I was careful to save the state.
  #3988    
Old May 29th, 2010 (04:51 PM).
Metroid Die Metroid Die is offline
Team Kanto
 
Join Date: Mar 2009
Posts: 54
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:

#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003

applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
  #3989    
Old May 29th, 2010 (04:56 PM).
melosfox melosfox is offline
Team Hoenn
 
Join Date: May 2010
Gender: Male
Posts: 23
@Metroid Die
Have you tried just making it hidesprite 0x10? Sometimes XSE confuses me with its peculiarities.

I mean, I don't know if it'll work, it's just something I'd try.
  #3990    
Old May 29th, 2010 (05:17 PM).
Metroid Die Metroid Die is offline
Team Kanto
 
Join Date: Mar 2009
Posts: 54
Quote originally posted by melosfox:
@Metroid Die
Have you tried just making it hidesprite 0x10? Sometimes XSE confuses me with its peculiarities.

I mean, I don't know if it'll work, it's just something I'd try.

Yeah, I tried that but it didn't work
  #3991    
Old May 29th, 2010 (06:01 PM).
Binary's Avatar
Binary Binary is offline
え?
Team Johto
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
@gl3500:
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
msgbox @11 0x4
closeonkeypress
release
end


#org @10
= Welcome to the computer\ndisguised as a Pokeball!

#org @11
= Thank you for using\nthis fake system! XD

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.
__________________
  #3992    
Old May 29th, 2010 (06:40 PM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Code:
#dynamic 0x2167D1

#org @start
checkflag 0x1001
if 0x1 goto @done
applymovement 0x05 @move
waitmovement 0x0
applymovement 0x06 @move0
waitmovement 0x0
msgbox @1 0x6
applymovement 0x05 @move1
waitmovement 0x0
msgbox @2 0x6
applymovement 0x05 @move2
waitmovement 0x0
applymovement 0x06 @move3
waitmovement 0x0
applymovement 0xFF @move4
waitmovement 0x0
msgbox @3 0x6
setflag 0x1001
release
end

#org @done
release
end

#org @1
= [red_rs]CHIMECHO: Oh look, a BUNEARY!\p[black_rs]\v\h01: Wh-what? My name is\n\v\h01!\p[red_rs]CHIMECHO: Oh, really? You look\nlike a normal BUNEARY to me.\p[blue_rs]PINECO: Sorry if we're bothering\nyou, \v\h01. CHIMECHO is always\lhyper.

#org @2
= [red_rs]CHIMECHO: I know! How about you\nbecome in an EXPLORATION TEAM with\lus?\p[black_rs]\v\h01: An EXPLORATION TEAM?\p[blue_rs]PINECO: An EXPLORATION TEAM is\nwhen POKEMON form a team where\lthey go on missions.\p[black_rs]\v\h01: Well... Um...\p[red_rs]CHIMECHO: Great! Let's go to the\nMarket!

#org @3
= [red_rs]CHANSEY: Why hello there\nguys!\pCHIMECHO: Can you call the GUILD\nMASTER to see if we can go to him\lfor a team recruitment?\pCHANSEY: No problem!\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: Hello? Ah yes, a team\nwill be coming to you today.\pYes, yes, alright.\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: You guys may now go.\pCHIMECHO: Thanks!

#org @move
#raw 0x56
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x07
#raw 0x07
#raw 0x00
#raw 0xFE

#org @move0
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0xFE

#org @move1
#raw 0x56
#raw 0xFE

#org @move2
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move3
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move4
#raw 0x56
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE
None of the movement scripts work besides the player's... <.<
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3993    
Old May 29th, 2010 (09:52 PM).
Loaf's Avatar
Loaf Loaf is offline
Just loafing around...
Team Hoenn
 
Join Date: May 2010
Location: New Zealand
Gender: Male
Nature: Calm
Posts: 13
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.
  #3994    
Old May 29th, 2010 (10:07 PM).
Samike360's Avatar
Samike360 Samike360 is offline
Lover of May
Team Unova
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Posts: 397
Quote originally posted by Loaf:
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.
Use XSE and:

1. Put setflag 0x828 in your script (or 0x800 if you're using ruby)

2. Use the command wildbattle 0x(pokemon # in hex) 0x(level in hex) 0x(item in hex)
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
  #3995    
Old May 29th, 2010 (10:37 PM).
Loaf's Avatar
Loaf Loaf is offline
Just loafing around...
Team Hoenn
 
Join Date: May 2010
Location: New Zealand
Gender: Male
Nature: Calm
Posts: 13
setflag 0x828 works great! Thanks! :D
  #3996    
Old May 29th, 2010 (11:55 PM). Edited May 30th, 2010 by Nosman.
Nosman's Avatar
Nosman Nosman is offline
I'm with stupid ^
Team Hoenn
 
Join Date: Jun 2008
Location: Not installed yet
Age: 21
Gender: Male
Nature: Naughty
Posts: 117
Send a message via Windows Live Messenger to Nosman Send a message via Skype™ to Nosman
I am having a little trouble with a map script it works fine i game but at the end it brings up a message box saying "This is a test message. This is a signpost." and keeps repeating that message box. The settings in a-map are: Script type: 02 Validaes values, loads handler to 0x3000EB0.... Script offset: $6CDE6E Script offset 2: $DF840D Flag:7000 Value: 0000. I need help please and thank you

Here is the script it is in XSE:
'---------------
#org 0xDF840D
lock
setvar 0x7000 0x1
setflag 0x1500
hidesprite 0x6
checkflag 0x860
if 0x1 goto 0x8DF85F3
applymovement MOVE_PLAYER 0x8DF85EA
waitmovement 0x0
msgbox 0x8E5E50C MSG_NORMAL '"Prof. Elm: [player]! There you are..."
release
end

'---------------
#org 0xDF85F3
release
end


'---------
' Strings
'---------
#org 0xE5E50C
= Prof. Elm: [player]! There you are!\pI needed to ask you a favour.\pI have an acquaintance called Mr.\nPokémon.\pHe keeps on finding weird things and\nraving about his discoveries.\pAnyway, I just got an e-mail from him\nsaying that this time it's real.\pIt is intriguing, but we're busy with our\nPokémon research.\pCould you look into it for us?\pI'll give you a Pokémon for a partner.\pThey're all rare Pokémon that we just\nfound.\pGo on. Pick one!


'-----------
' Movements
'-----------
#org 0xDF85EA
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
__________________

(\__/)
(='.'=) This Is Bunny. Copy And Paste Bunny Into
('')_('') Your Signature To Help Him Gain World Domination!!!!

GAMES I SUPPORT
Spoiler:





  #3997    
Old May 30th, 2010 (12:15 AM). Edited May 30th, 2010 by gl3500.
gl3500's Avatar
gl3500 gl3500 is offline
Glcelebi The Rom Hacker
Team Sinnoh
 
Join Date: May 2009
Location: South Africa
Gender: Male
Nature: Calm
Posts: 11
Quote originally posted by Binary:
@gl3500:
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
msgbox @11 0x4
closeonkeypress
release
end


#org @10
= Welcome to the computer\ndisguised as a Pokeball!

#org @11
= Thank you for using\nthis fake system! XD

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.
Thanx 4 the help, ill give it a try and see what happens. :-)

Thanx the PC script does work, i still have a problem with this script though, any ideas?
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end

#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x04 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x04 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
hidesprite 0x800F
msgbox @weird 0x6
closeonkeypress
releaseall
end


#org @hi2
releaseall
end


#org @weird
= .......


What i want to happen is have the sprite go through the door, have a slight delay, then the message "...." pops up and can only be closed with a. So far, i have tried the one above which i know will not bring up the "...." but thats not what i want, i want wat i sed above and i am not sure how to get this. Also, i only want the event to happen once.Any help appreciated. Thanx :-)
__________________
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...
  #3998    
Old May 30th, 2010 (03:53 AM).
SmashKing SmashKing is offline
Team Johto
 
Join Date: Jun 2008
Gender:
Posts: 5
I want to know whether the Battle of Fire Red with music that can replace from Smaragt (without Sappy)?
  #3999    
Old May 30th, 2010 (05:30 AM).
majorawsome's Avatar
majorawsome majorawsome is offline
Team Kanto
 
Join Date: Apr 2010
Gender: Male
Nature: Timid
Posts: 3
[b]Game: sapphire
[b]Type:
[b]Editor:
[b]Script: xse

when i press yes it goes to no. ive been looking for an up-to-date xse tutorial but i cant find any that explain boxset 0x5 well
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @question 0x5
compare LASTRESULT 0x0
if b_true goto @yes
msgbox @no 0x6
release
end

#org @question
= yes or no?

#org @yes
msgbox @ya 0x6
goto @done
release
end

#org @no
msgbox @na 0x6
goto @done
release
end

#org @ya
= you said ya!

#org @na
= you said na!

#org @done
msgbox @end 0x6
release
end

#org @end
= i love waffles

Screenshots and/or Videos:
Attached Images
File Type: png yn1.PNG‎ (5.1 KB, 3 views) (Save to Dropbox)
File Type: png yn2.PNG‎ (4.9 KB, 2 views) (Save to Dropbox)
__________________

how does the skittle company know what a rainbow tastes like
  #4000    
Old May 30th, 2010 (05:34 AM).
metapod23's Avatar
metapod23 metapod23 is offline
Hardened Trainer
Team Sinnoh
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Posts: 673
Quote originally posted by Metroid Die:
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:

#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003

applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
Check to make sure no other sprites on you map have an event # of 10 - if so, change them to a different #. Try troubleshooting by changing the person event # to a lower #, or swapping event #'s with a less significant sprite. Try deleting and reinserting the sprite. Try a different person ID, like 1004 and see if that works.
__________________
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:00 AM.