View Single Post
  #7541    
Old January 16th, 2013 (02:10 PM). Edited January 16th, 2013 by tajaros.
tajaros's Avatar
tajaros tajaros is offline
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 16
Gender: Male
Nature: Timid
Posts: 857
Send a message via Windows Live Messenger to tajaros
Quote originally posted by kj3400:
This question might be a simple thing, I think.

I have a script that starts just after the game intro and requires a sprite to be hidden before I activate it (to simulate them coming up the stairs). Problem is I can't get the sprite to disappear before the map loads. Does it involve a level script? This has been bugging me for a while now.
You can edit the movement type of the OW and set it to hidden that way it will be hidden. But you have to put a showsprite in your script.

But, if you're not using Jpan's Engine then pick something that the game uses for flags so the OW's would be hidden. Perhaps 2C try putting that in your person ID and your good.

Quote originally posted by Dragoon:
Hey guys, I have a script that doesn't seem t work in my FR rom

Spoiler:

'---------------
#org 0x730420
checkflag 0x1216
if 0x1 goto 0x8730488
showsprite 0xA
applymovement 0xA 0x873048B
applymovement MOVE_PLAYER 0x873048F
waitmovement 0x0
msgbox 0x87304A1 MSG_KEEPOPEN '"Oh!\nSorry, I didn't see you there..."
fanfare 0x100
special 0x0
waitfanfare
closeonkeypress
trainerbattle 0x1 0x2 0x500 0x873051E 0x8730548 0x8730461
end

'---------------
#org 0x730488
release
end

'---------------
#org 0x730461
msgbox 0x8730560 MSG_NORMAL '"By the way, I'm Brendan!\nThat bat..."
applymovement 0xA 0x8730493
applymovement MOVE_PLAYER 0x873049E
waitmovement 0x0
hidesprite 0xA
setflag 0x1216
setvar 0x5000 0x1
release
end


'---------
' Strings
'---------
#org 0x7304A1
= Oh!\nSorry, I didn't see you there!\lHey, you seem like a capable\ltrainer...\lHow about we battle? Don't worry\lI'll heal you.

#org 0x73051E
= Now that I've healed you,\nlet's battle!

#org 0x730548
= Wow! You're powerful!

#org 0x730560
= By the way, I'm Brendan!\nThat battle really had me going!\lI seriously think you have loads\lof potential. I hope I can see you\lagain.\lSee ya!


'-----------
' Movements
'-----------
#org 0x73048B
#raw 0x10 'Step Down (Normal)
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x73048F
#raw 0x10 'Step Down (Normal)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

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

#org 0x73049E
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements


Also the rom uses the Jambo Trainer Mugshot Hack so that is why the 3rd trainerbattle value is 0x500

Anyway, the problem is that, I placed it in Viridian City in front of the Pokemon Centre. I open the game, and I try to walk into Viridian, but the game restarts. If someone could help explain why this is, this would help a lot.

Also the script box only has the Var Number filled in which is 5000
Try removing 0x500 and make it 0x0 if everything worked then maybe it's how you inserted the Mugshot Hack.

Or for starters try using the 1st Pallete in the table so it will be 0x100.

And remove those release scripts at the end of your scripts since you didn't put a lock at the opening of your script.
__________________