MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #include <properties.h> |
| 2 | inherit "/std/room"; |
| 3 | |
| 4 | void create() { |
| 5 | ::create(); |
| 6 | SetProp(P_LONG, "AddCmd-Testraum, Kommandos " |
| 7 | "\"kriech\" und \"schleiche&heran|herum\"."); |
| 8 | AddCmd("schleiche&heran|herum", "action_schleichen"); |
| 9 | AddExit("gilde", "/gilden/abenteurer"); |
| 10 | } |
| 11 | |
| 12 | void init() { |
| 13 | ::init(); |
| 14 | add_action("action_kriechen", "kriech", 1); |
| 15 | } |
| 16 | |
| 17 | static action_schleichen(string str) { |
| 18 | string tmp = this_player()->QueryProp(P_RACE); |
| 19 | if(tmp[<1]=='e') tmp=tmp[0..<2]; |
| 20 | write(break_string("Du versuchst leise zu schleichen, dabei passiert " |
| 21 | "dir aber ein allzu "+ |
| 22 | (tmp=="Mensch"?"menschliches":lower_case(tmp)+"isches")+ |
| 23 | " Missgeschick. Verflucht!", 78)); |
| 24 | this_player()->command_me("\\furze"); |
| 25 | return 1; |
| 26 | } |
| 27 | |
| 28 | static int action_kriechen(string str) { |
| 29 | write(break_string("Deine Knie tun zu sehr weh dafuer.", 78)); |
| 30 | tell_room(this_object(), break_string(this_player()->Name(WER)+ |
| 31 | " knackt mit den Knien.", 78)); |
| 32 | return 1; |
| 33 | } |