Project1
标题:
装弹脚本问题
[打印本页]
作者:
1207420636
时间:
2012-12-16 20:34
标题:
装弹脚本问题
本帖最后由 1207420636 于 2012-12-19 20:49 编辑
我用自己做的,脚本如下
Kboard.keyb($R_Key_U) == 1
s = $game_variables[2]
if s >= 6
$game_temp.common_event_id = 1
end
复制代码
但是他说我第2行错误,我搞不懂,求解决555~~~
作者:
沙漠点灰
时间:
2012-12-17 21:21
推测是lz没载入数据,建议在lz这代码之前加入:
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
复制代码
当然,仅
作为测试用
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1