新人tintin代码的问题。
tintin代码:#class xiulian open;#alias {lianxi} {learn guxu for tiyunzong 1
#math bool 0;
#while {$bool == 0}{
lianxi;
#action {也许是缺乏实战经验,你对谷虚道长的回答总是无法领会。} {
#math bool 1;
};
#action {你今天太累了,结果什么也没有学到。} {
e;e;sleep;
#action {你刚在三分钟内睡过一觉, 多睡对身体有害无益!} {
#delay {8} {sleep}
};
};
};
};
#class xiulian close;这个练功机器人的代码,一运行就死循环报错:DEBUG_STACK = script_driver(0x110527000,3,0x1104c90d4)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc678001000)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc67880a600)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc678812400)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc678008e00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc67881a200)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679001c00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679009a00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679011800)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679019600)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679021400)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679029200)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679031000)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679038e00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679040c00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679048a00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679050800)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679058600)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679060400)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679068200)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679070000)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679077e00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc67907fc00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679087a00)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc67908f800)
DEBUG_STACK = parse_input(xkx,lianxi)
DEBUG_STACK = script_driver(0x110527000,1,0x7fc679097600)有高手知道原因吗?
北大侠客行MUD,中国最好的MUD 你的while不应该用的。
你等不到#math bool 1的触发条件就已经循环死了 action 最好别多层嵌套,到时候查问题不好查。
感觉你对如何来写tintin在逻辑理解上还有问题。 本帖最后由 youzi 于 2020-2-20 10:20 AM 编辑
我的学功夫的代码给你参考一下你就理解了。
#alias {doxue} {
#var skill %2;
#var master %1;
xue $master for $skill 50;
#class doxue open;
#act {你共请教了五十次} {
#delay {1}{xue $master for $skill 50;};
};
#act {{书生笑着说道:您见笑了,我这点雕虫小技怎够资格「指点」您什么?|看上去书生并不想教你!|书生像是受宠若惊一样,说道:请教?这怎么敢当?|书生说道:您太客气了>,这怎么敢当?}} {
give shu 1 cash;
#delay {4}{xue $master for $skill 50;};
};
#act {你今天太累了,结果什么也没有学到。} {
yun regenerate;
};
#act {你略一凝神,精神看起来好多了。} {
#delay {1} {xue $master for $skill 50;};
};
#act {你的内力不够。} {
$gosleep;
#delay {1} {drink soup;drink jiudai;eat liang;sleep;};
};
#act {你一觉醒来,精神抖擞地活动了几下手脚。} {
dazuo max;
};
#action {{你将内息走了个小周天,流回丹田,收功站了起来。|你运功完毕,深深吸了口气,站了起来。}} {
$gomaster;
#delay {1} {xue $master for $skill 50;};
};
#action {你只觉神元归一,全身精力弥漫,无以复加,忍不住长啸一声,徐徐站了起来。} {
$gomaster;
#delay {1} {xue $master for $skill 50;};
};
#act {你刚在三分钟内睡过一觉, 多睡对身体有害无益!} {
#delay {6} {drink jiudai;drink soup;eat liang;sleep;};
};
#class doxue close;
}; 回复 4# youzi
根据您的代码重新写了一下,运行很完美,真的非常感谢您!!
页:
[1]