分享到新浪微博 分享到QQ空间 打印

[疑问] liuyanghejerry 进来看看吧!!!最后的脚本问题![花花再进下]

复制内容到剪贴板
代码:
#org $start
checkflag 0x828
if b_true goto $done
message $1
boxset 6
applymovement 0x04 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
message $2
boxset 6
playsound 0x13E
nop
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
fadesound 0x12C
nop
release
end

#org $done
release
end

#org $move
#raw 0x62 0x12 0x12 0x12 0x12 0xFE

#org $move2
#raw 0x03 0xFE

#org $move3
#raw 0x13 0x13 0x13 0x13 0xFE

#org $1
$1 1 =Waaaiiiitttt!!!

#org $2
$2 1 =You can't go out there\nwithout your own Pokemon.\pWild Pokemon will hurt you.
首先,移动脚本不能有lock,也没有faceplayer。
其次,applymovement 0x04 $move 中,0x04表示所要移动的NPC的ID——你可以在AM里看到:

$move表示移动信息所存放的地址。
#org $move
#raw 0x62 0x12 0x12 0x12 0x12 0xFE
就是移动的具体信息——0x62 0x12 0x12 0x12 0x12是动作(不同版本有不同的代码,教程里有对应), 0xFE是终止符号不能少。
最后在移动命令完成后,还必须配有停止命令:
pausemove 0就是常用的终止,它需要写在applymovement的下一行。



第二个问题:

trainerbattle 0 0x001 $before $after
你指的是0x001吧?对于一个确定的同一个NPC,战斗通常只能发生一次,而对于不同的NPC可以多次使用,但是其PM是一样的。


想死你们了!

TOP

pokescript里似乎有一个类似的命令可以让训练师再次生效,但是那个可能有毛病,这里给出XSE的一个命令:
引用:
'---------------
#org @start
trainerbattle 0x0 0x66 0x0 @string1 @string2
msgbox @string3 MSG_NORMAL '"See? It's still avaliable to use!"
repeattrainerbattle ' 该命令在pokescript中不知道是什么……
end


'---------
' Strings
'---------
#org @string1
= See? It's still avaliable to use!

#org @string2
= See? It's still avaliable to use!

#org @string3
= See? It's still avaliable to use!
使用了repeattrainerbattle之后有一个弊端:如果没有其他措施,那么写入的那个训练师将永远可以战斗……


想死你们了!

TOP