Mystelex
Guest
- 0
- Posts
Use compare 0x800D instead of lastresult. I don't know why that's still around, because 0x800D is more technical and easy to use.
Thanks ! It worked !
Use compare 0x800D instead of lastresult. I don't know why that's still around, because 0x800D is more technical and easy to use.
Um... The script works now , but I want the script to continue after the trainerbattle. How to do it ?
If the game crashes when you step on the tile, then I suppose it's because of how you configured it in AdvanceMap. Make sure you always enter a valid var number and value for your script tiles. If you enter a var number that you haven't used in any script before, you have to put 0 for var value, since 0 is the standard value for vars. If you've used that var before, you need to enter the value that your var holds at the time your script is to be triggered.Hey, I'm having a little trouble with a script. Basically, the player is meant to walk to a tile, which triggers an NPC saying a message, approaching the player, battling them, saying another message and then vanishing along with a group of other person events. Currently it crashes the moment the player steps on the script.
Spoiler:
#org 0x8741CD2
'-----------------------------------
lockall
jump 0x8741CDE
#org 0x8741CDE
'-----------------------------------
textcolor RED
msgbox 0x8741D2B ' Oh, that's right. PI...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
applymovement 0x2 0x8741D5A ' walk_right walk_righ...
trainerbattle 0x3 0x145 0x0 0x8741D60
msgbox 0x8741D8C ' Woah, dude, not cool...
callstd MSG_LOCK ' Built-in lock command
closemsg
fadescreen FADEOUT_BLACK
disappear 0x2
disappear 0x3
disappear 0x4
disappear 0x5
fadescreen FADEIN_BLACK
setflag 0x1FE
releaseall
end
#org 0x8741D2B
= Oh, that's right. PI've got a battle to fight.
#org 0x8741D60
= Maybe I should have skipped the\nBELLSPROUT.
#org 0x8741D8C
= Woah, dude, not cool, man.\pLet's go girls, this one's no fun.
#org 0x8741D5A
M walk_right walk_right walk_up walk_up look_right end
If the game crashes when you step on the tile, then I suppose it's because of how you configured it in AdvanceMap. Make sure you always enter a valid var number and value for your script tiles. If you enter a var number that you haven't used in any script before, you have to put 0 for var value, since 0 is the standard value for vars. If you've used that var before, you need to enter the value that your var holds at the time your script is to be triggered.
That said, I don't think the crash is caused by your script, however a few things caught my eye:
- You need a pauseevent 0 after your applymovement, otherwise the person will probably not move.
- You should change the value of your var with setvar, so the script doesn't get triggered more than once.
- I think you meant to write \p instead of the capital P in your first text line.
Other than that, you should be fine. Good luck!
Thanks a bunch, it worked swimmingly!
EDIT: However, then it went sour. After the battle, I get a few glitches with other sprites on the map and the player somehow either becomes ones of the person events or the camera jumps to another part of the map and freezes. If I remove the battle script, it seems to work fine.
However, then it went sour. After the battle, I get a few glitches with other sprites on the map and the player somehow either becomes ones of the person events or the camera jumps to another part of the map and freezes. If I remove the battle script, it seems to work fine.
Guys I want to ask that in start of fire red game their professed osk ask you that are you are boy and girl so I want to delete that the don't ask this and just want to remove girl and only remain andboy so how can I do this plz tell
Just put a playsong command at the beginning of your script... or did you mean something different?How do i make a song play at the start of a script?
Just put a playsong command at the beginning of your script... or did you mean something different?
playsong 0x(song number) 0x0
#dynamic 0x800002
#org @start
lock
faceplayer
[B]playsong 0x0112 0x0[/B]
msgbox @1 0x6
release
end
#org @1
= Hello, Don't you like this music?
Hi guys I am having problem in setvar and hidescript and cheakflag that in what place this are used and 1 more question is that how to make event arranged that the event appear after player win pokemon league.and one more question how to make player over world script to climb into other over world script like this
Replay fast
You need to modify the sprite for both the surfing player and the Wailmer blob. They're separate sprites, so make the Lapras and the (I presume?) Ash Ketchum separately, and insert them (indexed to 16 colours in IrfanView) using NSE 1.x.Can anyone answer me I am waiting guys