根据改区现存的两篇XSE教程编写。
作用:
XSE脚本代码高亮,适合于教程中使用,方便阅读,取代code代码。
[xse]
脚本代码
[/xse]
1.0版
功能:
1.对变量进行高亮
2.对关键的命令高亮(由于命令表尚未完全,所以命令高亮十分有限)
3.对脚本结构进行划分
注意:
使用该代码显示的脚本,不可直接复制(会把行号等也复制走),所以特意在脚本底下附上了一个“点击查看原始代码”的按键,点击后就可以查看到原始的脚本,按需取用。
下面是在
XSE初级教程当中摘录的一段脚本001 '---------以及进阶篇中的屏幕变色脚本
002 ' 范例
003 '---------
004 ┍#org @start
005 │checkflag 0x828
006 │if 0x1 goto @done
007 │msgbox @1 0x6 '消息
008 │applymovement 0x04 @move
009 │waitmovement 0x0
010 │applymovement 0xFF @move2
011 │pause 0x30 '停
012 │msgbox @2 0x6
013 │playsong 0x13E 0x0
014 │applymovement 0x04 @move3
015 │applymovement 0xFF @move3
016 │waitmovement 0x0
017 │fadesong 0x12C
018 │release
019 ┕end
020
021 ┍#org @done
022 │release
023 ┕end
024
025 ┍#org @move '移动
026 │#raw 0x62
027 │#raw 0x12
028 │#raw 0x12
029 │#raw 0x12
030 │#raw 0x12
031 │#raw 0xFE
032
033 ┍#org @move2
034 │#raw 0x03
035 │#raw 0xFE
036
037 ┍#org @move3
038 │#raw 0x13
039 │#raw 0x13
040 │#raw 0x13
041 │#raw 0x13
042 │#raw 0xFE
043 ┍#org @1
044 ┕= Waaaiiiitttt!!!
045 ┍#org @2
046 ┕= You can't go out therenwithout your own Pokemon.pWild Pokemon will hurt you.点击查看原始代码001 ┍#org @start以上为两个XSE帖子代码的使用范例。建议将脚本发布时使用该代码,方便他人阅读。
002 │lock
003 │faceplayer
004 │msgbox @1 0x6
005 │cry 0x6 0x0
006 │wildbattle 0x6 0x0 0x1E 0x8B 0x0
007 │fadescreen 0x1 '使屏幕变黑
008 │fadescreen 0x0 '使屏幕由黑会到原状
009 │msgbox @2 0x6
010 │release
011 ┕end
012
013 ┍#org @1
014 ┕= CHARIZARD: Raaarrgghh!
015
016 ┍#org @2
017 ┕= God...点击查看原始代码
原帖由 5944 于 2009-5-1 23:05 发表
LZ用的XSE是几版的????
为什么会有显示中文提示?!!!!
PS:XSE我很少用!小白了!
PS:
1 ┍#org @start → XSE支持这种写法吗?不是0x8123456这样的吗?
0002 │lock
003 │faceplayer
004 ...
原帖由 pokemon002 于 2009-5-2 00:27 发表
019 │$1 1 =How's the weather?
这里出错了‘s是指is,它认为这个是注释了..........希望在xse中没有这种错误.........(我说的是e文的rom)
欢迎光临 口袋社区-Poke The BBS (https://ww.poketb.com/) | Powered by Discuz! 6.1.0F |