本帖最后由 小秋橙 于 2024-5-31 08:17 编辑
$gameMessage.setBackground(0); $gameMessage.setPositionType(2); $gameMessage.add('请选择'); $gameMessage.setChoices(['选项1','选项2'],-1,-2); $gameMessage.setBackground(0); $gameMessage.setPositionType(2); $gameMessage.setChoiceCallback(function(n) { $gameVariables.setValue(1, n); if($gameVariables.value(1) === 0) { $gameMessage.setBackground(0): $gameMessage.setPositionType(2); $gameMessage.add('你选择了1'); } else if($gameVariables.value(1) === 1) { $gameMessage.setBackground(0): $gameMessage.setPositionType(2); $gameMessage.add('你选择了2'); } });
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.add('请选择');
$gameMessage.setChoices(['选项1','选项2'],-1,-2);
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.setChoiceCallback(function(n) {
$gameVariables.setValue(1, n);
if($gameVariables.value(1) === 0) {
$gameMessage.setBackground(0):
$gameMessage.setPositionType(2);
$gameMessage.add('你选择了1');
} else if($gameVariables.value(1) === 1) {
$gameMessage.setBackground(0):
$gameMessage.setPositionType(2);
$gameMessage.add('你选择了2');
}
});
你要的该不会是这种吧…… |