NarutoActor
The rocks cry out to me
- 1,974
- Posts
- 16
- Years
- Age 31
- Brooklyn/Marlboro
- Seen Apr 2, 2016
Okay, I tryed that, and now he dosen't move at all.
Poor Poke Script....which is why you should use XSE to write and compile scripts.
Nothing ;)I used XSE instead and it worked just fine. I don't know what I was missing in the previous script, but it's irrelevant if I can make it work otherwise! =)
Okay, I tryed that, and now he dosen't move at all.
'---------------
#org 0x298D2A
checkflag 0x202
if 0x1 goto 0x8298D6F
lock
faceplayer
showsprite 0x4
msgbox 0x8298D90 MSG_NORMAL '"Hold on kiddo!"
applymovement MOVE_PLAYER 0x8298D72
waitmovement 0x0
applymovement 0x4 0x8298D75
waitmovement 0x0
msgbox 0x8298DA1 MSG_NORMAL '"Where the hell did you come from?\..."
applymovement 0x4 0x8298D83
waitmovement 0x0
hidesprite 0x4
setflag 0x202
release
end
'---------------
#org 0x298D6F
release
end
'---------
' Strings
'---------
#org 0x298D90
= Hold on kiddo!
#org 0x298DA1
= Where the hell did you come from?\nI saw that statue glow,\pthen you just pop out of nowhere!\nHmph... Ill figure it out.
'-----------
' Movements
'-----------
#org 0x298D72
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements
#org 0x298D75
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x55 'Jump in Place (Facing Right)
#raw 0xFE 'End of Movements
#org 0x298D83
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0xFE 'End of Movements
I already had the persons ID converted to hex (his number in advance map is 23) and from a script before this event his movements worked. But I tried it anyway and as I thought no change. I am going to try a new person event, some new offsets or compile it with pksv. Sometimes that fixes the problem.Then try this.
---------------
#org 0x71BBE4
lock
compare PLAYERFACING 0x3
if 0x1 goto 0x871BC3E
compare PLAYERFACING 0x4
if 0x1 goto 0x871BC63
end
'---------------
#org 0x71BC3E
applymovement 0x11 0x871BC70
waitmovement 0x0
release
end
'---------------
#org 0x71BC63
applymovement 0x11 0x871BC73
waitmovement 0x0
release
end
'-----------
' Movements
'-----------
#org 0x71BC70
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements
#org 0x71BC73
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
#dynamic 0xA000000
#org @start
setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
trainerbattle 0x0 0x1 0x0 @before @in
msgbox @after
callstd 0x6
release
end
#org @1
message @2 0x2
warp 0x1 0x7B 0xFF 0x2d 0x1c
#org @2
= blablabla...
Hi,does any one know that how to make a script happens when a moving(walking around) OW see you?
And the "Green S" script won't sutable for me ,because it can't get to know whether the OW see you.
It's just like a trainerbattle script ,but I don't want to have a battle.Something like this writing to a trainer will be crash:
Code:#org @1 message @2 0x2 warp 0x1 0x7B 0xFF 0x2d 0x1c #org @2 = blablabla...
Hmm, I don't believe there is so I think you'd have to use ASM.
Actually there is no ASM involved actually. On advance map, simply check the trainer box, specify how many spaces should the trainer be able to see you, and insert your script. So whenever the trainer sees you... I'm not sure after that. I haven't tested it out yet, because just thought it up in theory. I'm going to do a lot of testing today, so I'll edit this post when I've found out..
Doesn't work, been there and tried it. So again, ASM would be the way to go.
Oh, I see.. but why wouldn't it work, would it be that there' has to be a trainer battle in the script? Or maybe for the fact that the event comes to you..
Anyways here's my problem.
After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.
Code:#dynamic 0xA000000 #org @start setvar 0x8003 0xC05 (It's same llike HackMew has in his tut) trainerbattle 0x0 0x1 0x0 @before @in msgbox @after callstd 0x6 release end
The trainerbattle has to be there first, I think the trainer box was designed only for trainerbattles, so normal scripts won't work. I remeber what happens, your game will either freeze or reset.
It's okay now :)What happens if you remove the setvar?
It's okay now :)
I found a way to get it to work :)
Well... in fact I guess problem was with ASM offset.I guess you used a walkable script tile. Anyway, it would nice if you edit your post so that if someone is having the same problem, he/she could see your reply and solve the problem as well.
'---------------
#org 0x9A3000
lock
checkflag 0x82F
if 0x1 goto 0x89A3044
applymovement 0x1 0x89A3047
applymovement 0x2 0x89A3047
waitmovement 0x0
applymovement 0xFF 0x89A304B
waitmovement 0x0
textcolor 0x1
msgbox 0x89A304F 0x6 '"DAD: Hey there [player]!\nYou have..."
giveitem 0x161 0x1 0x3
setflag 0x82F
release
end
'---------------
#org 0x9A3044
release
end
'---------
' Strings
'---------
#org 0x9A304F
= DAD: Hey there [player]!\nYou have been sleeping for a quite\la while. Your mother and I were\lwondering if you could deliver\lthis package of goodies to our\lretailer in SAFFRON at Silph Co's\lMegaMart.\lMOM: Here are some running shoes\lto help you on your journey!
'-----------
' Movements
'-----------
#org 0x9A3047
#raw 0x62 'Exclamation Mark (!)
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements
#org 0x9A304B
#raw 0x63 'Question Mark (?)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements
Cirnos Servant : It might have something to do with showsprite command... since if OW is hidden in FR it might sometimes be very buggy.
Anyways here's my problem.
After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.
Code:#dynamic 0xA000000 #org @start setvar 0x8003 0xC05 (It's same llike HackMew has in his tut) trainerbattle 0x0 0x1 0x0 @before @in msgbox @after callstd 0x6 release end