?? outroom.c
字號(hào):
// This is a room made by wsl.inherit ROOM;int do_climb(string arg);void create(){ set("short", "兵馬俑"); set("long", @LONG來(lái)到這里似乎已經(jīng)無(wú)路可走了,左面有個(gè)石臺(tái),不知是做什么用的,石臺(tái)的上方可以看到許多植物的根,盤根錯(cuò)節(jié),有些已經(jīng)長(zhǎng)到了石臺(tái)上了。LONG); set("exits", ([ "south" : __DIR__"shidao5",])); setup();}void init(){ add_action("do_climb", "climb"); add_action("do_jump", "jump"); add_action("do_pa", "爬");}int do_climb(string arg){ object me = this_player(); if( !arg || arg == "" ) return 0; if(me->query_temp("pa")) return notify_fail("你已經(jīng)在石臺(tái)上了,還爬什么呀!\n"); if( arg == "石臺(tái)" ) { message_vision("$N想都不想,就爬上了去。\n",me); me->set_temp("pa",1); return 1; }}int do_jump(string arg){ object me = this_player(); if( !me->query_temp("pa")) return 0; if( !arg || arg == "") return notify_fail("你要跳到什么地方去呀?\n"); if( me->query_temp("jump")) return notify_fail("你已經(jīng)跳下來(lái)了。\n"); if( arg == "down" ) { message_vision("$N提了提氣,又跳了下去。\n",me); me->set_temp("jump",1); me->delete_temp("pa"); return 1; }}int do_pa(string arg){ object me = this_player(); if( !me->query_temp("pa")) return 0; if(!arg || arg == "") return notify_fail("你要往那爬?\n"); if( arg == "根" ) { message_vision("$N顫悠悠地爬上了盤在石臺(tái)上的樹(shù)根......\n",me); me->delete_temp("pa"); me->delete_temp("jump"); call_out("go_up", 10 , me ); return 1; }}void go_up(object me){ if(!me) return; tell_object(me, "你順著樹(shù)根爬呀...爬呀......\n你爬了很久,終于你又見(jiàn)到了陽(yáng)光。\n"); me->move("/d/changan/caodi.c");}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -