赤红之Z 赤红之Z
关注数: 7 粉丝数: 10 发帖数: 12 关注贴吧数: 0
事件中的常用脚本 显示文章:$game_temp.message_text= ""显示引号中的文章。更改文章选项:$game_system.message_position =0,1,2表示上、中、下,三个位置$game_system.message_frame = 0 ,10表示不透明,其他的话就透明等待:@wait_count = X等待X帧中断事件处理:command_end把某一个事件暂时消除$game_map.events[X].erase其中X表示把X号事件暂时消除,如果是消除本事件X = @event_id执行公共事件:$game_temp.common_event_id = 编号执行编号的公共事件。注意,这个执行和直接在事件中的公共事件有微妙区别。开关操作:$game_switches[编号] = true / falsetrue是打开,false是关闭变量操作:$game_variables[编号] = 数值这里有一些常用的内容:rand(100):返回0-99的随机数rand(100)+10000:返回10000-10099的随机数$game_party.item_number(编号):编号物品的个数角色相关:以下为某编号的角色的相关属性生命:$game_actors[编号].hp精神:$game_actors[编号].sp经验:$game_actors[编号].exp等级:$game_actors[编号].level最大生命:$game_actors[编号].maxhp最大精神:$game_actors[编号].maxsp力量:$game_actors[编号].str灵巧:$game_actors[编号].dex速度:$game_actors[编号].agi魔力:$game_actors[编号].int攻击力:$game_actors[编号].atk物理防御:$game_actors[编号].pdef魔法防御:$game_actors[编号].mdef回避修正:$game_actors[编号].eva姓名:$game_actors[编号].name职业编号:$game_actors[编号].class_id职业名称:$game_actors[编号].class_name武器编号:$game_actors[编号].weapon_id防具1编号:$game_actors[编号].armor1_id防具2编号:$game_actors[编号].armor2_id防具3编号:$game_actors[编号].armor3_id防具4编号:$game_actors[编号].armor4_id完全回复:$game_actors[编号].recover_all领悟特技:$game_actors[编号].learn_skill(编号)遗忘特技:$game_actors[编号].forget_skill(编号)位置(前卫返回0,中卫返回1,后卫返回2):$data_classes[$game_actors[编号].class_id].position学会特技总数:$game_actors[编号].skills.size敌人:$game_troop.enemies[编号]敌人拥有角色的部分功能,包括.hp,.sp,.maxhp,.maxsp,.str,.dex,.agi,.int,.atk,.pdef,.mdef,.eva地图的事件属性:$game_map.events[编号].x,$game_map.events[编号].y编号事件的x,y坐标$game_map.events[编号].screen_x,$game_map.events[编号].screen_y编号事件的屏幕x,y坐标$game_map.events[编号].direction编号事件的朝向$game_map.events[编号].terrain_tag编号事件所处的地形标志$game_map.events[编号].moveto(x,y)把事件扔到(x,y)——————————————————以上几个事件的,如果要求为角色,则为“$game_player.x”等地图ID:$game_map.map_id同伴总人数:$game_party.actors.size步数:$game_party.steps金钱:$game_party.gold游戏总时间(秒数):Graphics.frame_count / Graphics.frame_rate游戏总帧数:Graphics.frame_count游戏帧速率(可直接=n调整):Graphics.frame_rate计时器剩余秒数:$game_system.timer / Graphics.frame_rate存档次数:$game_system.save_count独立开关操作:$game_self_switches[[地图编号,事件编号,"A"]] = true/false把地图编号的地图上的事件编号的事件的A开关打开。其实不光ABCD,还可以建立更多独立开关,不过调用也得用同样脚本。计时器打开:$game_system.timer = 需要的秒数;$game_system.timer_working = true计时器关闭:
1 下一页