轉載自:www.66rpg.com
原作者:Dubealex
Near Fantastica(特別講)
主講人(翻譯):frantice
電子書製作:小湖
特別講 Near Fantastica的RGSS語法列表
今天主要地看下RGSS的重要代碼,記憶是不要求的,但是這裡由Near Fantastica 總結出的重要字對於今後腳本的修改編寫都有非常重要的作用,女F特別給每個詞都做出了解釋,所以可以省去很多查找的麻煩啦^0^
1---有關Actors (人物) 數據
代碼: $data_actors[id].
id ID,數字,人物編號
name 人物名字
class_id 職業ID
initial_level 初始等級
exp_basis 基本經驗
character_name 角色文件名
character_hue 角色色相
battler_name 戰鬥者文件名
battler_hue 戰鬥者色相
weapon_id 武器ID
weapon_fix 武器固定
armor1_id 盾牌ID
armor2_id 頭ID
armor3_id 身體防具ID
armor4_id 裝飾品ID
2---有關Actors 的 Current 屬性
代碼: $game_actors[id].
maxhp 血最大量
maxsp 魔最大量
level 等級
exp 經驗
str 力量
dex 靈巧
agi 速度
int 魔力
atk 攻擊
pdef 物理防禦
mdef 魔法防禦
eva 迴避修正
3 有關Armor (裝備)
代碼: $data_armors[id].
id ID號
name 名字
icon_name 圖標的名字
kind 種類
auto_state_id 自動狀態ID
price 價格
pdef 物理防禦
mdef 魔法防禦
eva 迴避修正
str_plus 增加的力量
dex_plus 增加的靈巧
agi_plus 增加的速度
int_plus 增加的魔力
guard_element_set[id] 屬性防禦
4 各種classes
代碼: $data_classes[id]
position 角色位置(前衛,中衛,後衛)
weapon_set 可裝備武器
armor_set 可裝備防具
state_ranks 狀態有效度
element_rank 屬性有效度
learnings[level,skill_id] 習得技能
5 有關公共事件
代碼: $data_common_events[id].
name 名字
trigger 獲取目標
switch_id 開關ID
6 有關敵人
代碼: $data_enemies[id].
name 名
maxhp 最高HP
maxsp 最高SP
str 力量
dex 靈巧
agi 速度
int 魔力
atk 攻擊
pdef 物理防禦
mdef 魔法防禦
animation1_id 普通攻擊攻擊方動畫ID
animation2_id 普通攻擊對象方動畫ID
exp 經驗
gold 金錢
item_id 物品ID
weapon_id 武器ID
armor_id 裝備ID
treasure_prob 寶物出現率
battler_name 戰鬥者文件名
battler_hue 戰鬥者色相
7 有關物品
代碼: $data_items[id].
name 名
occasion 可以使用的時機
icon_name 圖標文件名
description 描述
price 價格
common_event_id 公共事件ID
scope 使用的範圍
consumable 消耗
8 有關技能
代碼: $data_skills[id].
icon_name 圖標文件名
description 描述
scope 特技或是物品的範圍
occasion 可以使用的時機
animation1_id 普通攻擊攻擊方動畫ID
animation2_id 普通攻擊對象方動畫ID
common_event_id 公共事件ID
sp_cost 消費的SP
power 威力
atk_f 關聯的攻擊
eva_f 關聯的迴避
str_f 關聯的力量
dex_f 關聯的靈巧
agi_f 關聯的速度
int_f 關聯的魔力
hit 攻擊
pdef_f 關聯的物防
mdef_f 關聯的魔防
variance 分散
element_set[id]
9 有關狀態
代碼; $data_states[id].
animation_id 動畫ID
restriction 限制
nonresistance 不可抵抗
zero_hp HP為0
cant_get_exp 不能獲得經驗
cant_evade 無法迴避
slip_damage 連續傷害
rating 比例
hit_rate 命中率
eva 迴避修正
battle_only 戰鬥後解除
hold_turn 自然解除
shock_release_prob 狀態攻擊解除
auto_release_prob 狀態自動解除
plus_state_set[id] 狀態變化為+
minus_state_set[id] 狀態變化為-
guard_element_set[id] 防具防禦屬性