• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
-kills self-

Okay I need help YET AGAIN.

Spoiler:


Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.
 
-kills self-

Okay I need help YET AGAIN.

Spoiler:


Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.

Which game are you hacking?
 
ok im having a problem with this script

Code:
#dynamic 0x80000C
'-----------------------
#org 0x800000
lock
faceplayer
checkflag 0x299
if 0x1 goto 0x8800029
msgbox 0x8800055 '"I Cant take \ncare of my \nBULBASAU..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800034
msgbox 0x88000C4 '"IIm sure somebody else would\nlike ..."
callstd 0x6
release
end
'-----------------------
#org 0x800029
msgbox 0x880008F '"Hows my Bulbasuar doing?"
callstd 0x6
release
end
'-----------------------
#org 0x800034
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000A9 '"You received a Bulbasaur."
callstd 0x6
waitfanfare
setflag 0x299
release
end
 
'---------
' Strings
'---------
#org 0x800055
= I cant take care of my \pBULBASAUR.\pYou can have it.
#org 0x8000C4
= Im sure somebody else would\nlike to have it.
#org 0x80008F
= Hows my Bulbasuar doing?
#org 0x8000A9
= You received a Bulbasaur.

Wen i go and talk to the girl if i say yes the game frezzes. and if i say no it says put ???????? in iteams poket??
 
-kills self-

Okay I need help YET AGAIN.

Spoiler:


Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.
Assuming that your trying to move an event thats person ID is 0003, you should have done this:
"applymovement 0x0003 @movement2"
I might be wrong though, I'm just learning too so repost if it doesn't work.
 
Assuming that your trying to move an event thats person ID is 0003, you should have done this:
"applymovement 0x0003 @movement2"
I might be wrong though, I'm just learning too so repost if it doesn't work.

I don't believe that is what the person ID is for. The person ID is for assigning it to a flag so that the person will disappear when the flag is set.
 
Yes but you CAN use it to move the person event.
 
Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?
 
Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?

That requires major ASM scripting. Maybe you should learn how to normally script first.
 
Yes but you CAN use it to move the person event.

As long as the People ID is the same as as the person number. Which doesn't make sense anyway...
Forget about that: People ID = flag.

And chrisdurer... if you don't know the difference between static and dynamic offsets, or how to handle both, then stick with dynamic.
 
Last edited:
does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

this is the code that i have
Code:
'-----------------------
#org 0x800944
lock
faceplayer
checkflag 0x827
if 0x0 goto 0x8800957
if 0x1 goto 0x8800972
end
'-----------------------
#org 0x800957
msgbox 0x8800972 '"im leaving"
callstd 0x6
closeonkeypress
compare 0x4001 0x0
applymovement MOVE_PLAYER 0x880097F
waitmovement 0x0
release
end
'-----------------------
#org 0x800972

'-----------
' Movements
'-----------
#org 0x80097F
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org 0x800972
= im leaving
 
Last edited:
erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
 
does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

this is the code that i have
Code:
'-----------------------
#org 0x800944
lock
faceplayer
checkflag 0x827
if 0x0 goto 0x8800957
if 0x1 goto 0x8800972
end
'-----------------------
#org 0x800957
msgbox 0x8800972 '"im leaving"
callstd 0x6
closeonkeypress
compare 0x4001 0x0
applymovement MOVE_PLAYER 0x880097F
waitmovement 0x0
release
end
'-----------------------
#org 0x800972

'-----------
' Movements
'-----------
#org 0x80097F
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org 0x800972
= im leaving
applymovement works like this:

Spoiler:


Here is an example

Spoiler:


That will make the person whose Person Event Number is 1 move forward 4 spaces. 0xfe is necessary to tell the script that the movement data has ended so is necessary at the end of every movement data.

erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
What script editor are you using? What problems are you encountering?
 
'-----------------------
#org 0x71E529
faceplayer
checkflag 0x1002
if 0x1 goto 0x871E6DE
givepokemon 0x55 0x5 0x1 0x0 0x0 0x0
msgbox 0x871E599 '"Dad: What do you want!\nCan't you s..."
callstd 0x6
applymovement MOVE_PLAYER 0x871E635
waitmovement 0x0
applymovement 0x3 0x871E63C
waitmovement 0x0
msgbox 0x871E63F '"You got an Eevee!"
callstd 0x6
applymovement MOVE_PLAYER 0x871E652
waitmovement 0x0
msgbox 0x871E658 '"Dad:I can't beleive you're already\..."
callstd 0x6
applymovement MOVE_PLAYER 0x871E6D4
waitmovement 0x0
applymovement 0x1011 0x871E6D8
waitmovement 0x0
setflag 0x1010
setflag 0x1020
setflag 0x1002
release
end

'-----------------------
#org 0x71E6DE
release
end


'-----------
' Movements
'-----------
#org 0x71E635
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 3 'Face Right
#raw FE 'End of Movements

#org 0x71E63C
#raw 60 'Hide
#raw FE 'End of Movements

#org 0x71E652
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw FE 'End of Movements

#org 0x71E6D4
#raw 11 'Step Up (Normal)
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x71E6D8
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 10 'Step Down (Normal)
#raw 13 'Step Right (Normal)
#raw 60 'Hide
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x71E599
= Dad: What do you want!\nCan't you see that I'm working?\lOh it's you!\lAs you know, it is time give you\lyour first pokemon!\lYour pokemon is on the desk.

#org 0x71E63F
= You got an Eevee!

#org 0x71E658
= Dad:I can't beleive you're already\ngoing on your first journey!\pDad:Now if you will excuse me\nsome feild work to do.

It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.
 
It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.

You have an "8" in front of the pointer to the applymovement.

Remove it, and it should work perfectly.
 
applymovement works like this:

Spoiler:


Here is an example

Spoiler:


That will make the person whose Person Event Number is 1 move forward 4 spaces. 0xfe is necessary to tell the script that the movement data has ended so is necessary at the end of every movement data.


What script editor are you using? What problems are you encountering?

ok i get the person event number from advanced map? and if so just say the person event number is 4 i would put in

#org @start
applymovement 0x4 @moveHere
waitmovement 0
end

#org @moveHere
#raw 0x11 0x11 0x11 0x11 0xfe[/spoiler]

??
and im using XSE and the problem is that everytime i talk to the guy it makes me move and hide instead of the other person.
 
ok well now the guy moves and hides untill i leave and come back. then hes there again. how do i fix that?
 
Status
Not open for further replies.
Back
Top