TA的每日心情 | 奋斗 2022-8-19 16:10 |
---|
签到天数: 1 天 [LV.1]初来乍到
注册会员
- 积分
- 154
|
发表于 2022-8-24 13:44:14
|
显示全部楼层
var status; var zhanghao; var jine; function start(){ status = -1; action(1, 0, 0); } function action(mode, type, selection){ if(mode == -1 || (mode == 0 && status == 0)){ cm.dispose(); return; } else if(mode == 0) status--; else status++; if(status == 0){ cm.sendGetNumber("请输入ID:",1,1,9999999); } else if(status == 1){ zhanghao = selection; cm.sendGetNumber("请输入数量:",1,1,9999999); } else if(status == 2){ jine = selection; cm.spawnMonster(zhanghao, jine); cm.dispose(); } } |
|