close

這幾天稍微有點嚇到。

撇開那個時間點大概是對的很微妙的心得文,我的網誌居然有人在關注。恩...其實不是甚麼大不了的事情,只是凡事都有第一次。

 

最近打算用VX快速的作一款玩具出來...那.......果然CODING是正義(何)

這裡收一些RPG VX理論上可以用的指令,方便我自己查詢(?)

 

還有,阿貝R5賀文被插隊AGAIN

 

這篇只是網路上查到的東西作的筆記,絕大部分我都還沒用過,想用的人可以拿去玩玩看?

 

原址在這裡

 

 


 


 
$game_message.texts.push("顯示此文字,據說要配合set_message_waiting來使用")
 
 


 
$game_message.position = 0,1,2
 
這個我還沒嘗試過
 


 
$game_message.background = 0 ,1,2

0=normal

1=暗背景

2=透明



對話框初始化?
 
set_message_waiting


 

 

中斷事件
 
command_end
 

 

暫時消除事件X的事件(?)
 
$game_map.events[X].erase
 

 

執行公用事件
 
$game_temp.common_event_id = 公用事件編號 

 

操作開關X的開關
 
$game_switches[X] = true / false
 

 

變數操作
 
$game_variables[編號] = 數值
 

亂數 

rand(100):0~99隨機一個數字
 

物品數量

$game_party.item_number($data_items[X]):隊伍中編號X的物品數量
 

角色屬性(不解釋)
 
$game_actors[編號]
 
.hp
 
.mp
 
.maxhp
 
.maxmp
 
.id

.name
 
.class_id
 
.initial_level
 
.two_swords_style(二刀流)
.fix_equipment(裝備固定)
 
.auto_battle
 
.super_guard
 
.pharmacology(不懂)
.critical_bonus
.skill_learn?(X)(是否學會了ID=X的技能)
 
.learn_skill(X)
 
.atk
 
.def
 
.spi(精神力?)
 
.agi(敏捷)
 

取得地圖ID

$game_map.map_id

 
隊伍總人數

$game_party.members.size

 
步數

$game_party.steps
 

金錢

$game_party.gold
 

遊戲時間(秒)

Graphics.frame_count / Graphics.frame_rate
 

遊戲總FPS(?)

Graphics.frame_count
 

每秒刷新的次數

Graphics.frame_rate
 

計時器剩餘時間

$game_system.timer / Graphics.frame_rate
 

存檔次數

$game_system.save_count
 

 

獨立開關操作
 
$game_self_switches[地圖ID,事件ID,"A"]] = true/false
 
這東西有空玩玩看?
 

 

打開計時器
 
$game_system.timer = 秒數;

$game_system.timer_working = true
 

 

關掉計時器
 
$game_system.timer_working = false
 

 

改變金錢數量
 
$game_party.gain_gold(數字)
 

 

獲得物品
 
$game_party.gain_item(物品,數量)
 
EX:
 
$game_party.gain_item($$$$data_items[1],1):獲得物品1*1
 
$game_party.gain_item($$$$data_weapons[1],1):獲得武器1*1
 

更換隊伍內角色
 
$game_party.add_actor(ID)
 
$game_party.remove_actor(ID)
 

 

更改視窗
 
self.windowskin = Cache.system("資料夾名稱")

沒用過,找時間嘗試


 

允許/禁止存檔
 
$game_system.save_disabled = true/false
 

允許/禁止開啟主選單
 
$game_system.menu_disabled = true/false
 

允許/禁止遇敵
 
$game_system.encounter_disabled = true/false
 

 

移動看的見的地圖(吧)
 
$game_map.start_scroll(方向,距離,速度)
 

 

某事件顯示動畫

$game_map.events[id].animation_id = 動畫編號
要玩玩看才知道意思 

 

角色透明?!
 
$game_player.transparent = true/false
 

 

更改色調
 
(平時)$game_map.screen.start_tone_change(Tone.new(R,G,B,A),偵數)
 
(戰鬥)$game_troop.screen.start_tone_change(Tone.new(R,G,B,A),偵數)
 

畫面閃爍
 
(平時)$game_map.screen.start_flash(Color.new(R,G,B,A),偵數)
 
(戰鬥)$game_troop.screen.start_flash(Color.new(R,G,B,A),偵數)
 

畫面震動
 
(平時)$game_map.screen.start_shake(震動大小,速度,偵數)

(戰鬥)$game_troop.screen.start_shake(震動大小,速度,偵數)
 

 

顯示圖片
 
$game_map.screen.pictures[圖片編號].show("檔案名稱",原點, x座標, y座標,x放大率,y放大率,不透明度,顯示方式)

"檔案名稱"不用含副檔名,但路徑固定在\Graphics\Pictures底下。想在底下增加資料夾的話那檔案名稱必須要把路徑一併附上。

放大率不放大時設為100,不透明度範圍是0~255。顯示方式預設為0,1是陰影2是加亮(?)

原點設為0的時候表示圖以左上角作為XY座標的放置處。

 


 
移動圖片
 
$game_map.screen.pictures[圖片編號].move(原點, x座標, y座標,x放大率,y放大率,不透明度,顯示方式,移動時間)
 座標應該是目的地座標(?)
 

旋轉圖片
 
$game_map.screen.pictures[圖片編號].rotate(速度)
 

刪除圖片(顯示完之後一定要刪除)
 
$game_map.screen.pictures[圖片編號].erase
 

動畫(戰鬥中)
 
battler.animation_id = 動畫編號
 
battler須先定義,敵我皆可。
 

戰鬥中斷
 
$game_temp.battle_abort = true
 

呼叫主選單
 
$scene = Scene_Menu.new
 

呼叫存檔畫面
 
$scene = Scene_File.new(true,false,true)

呼叫讀檔畫面 

$scene = Scene_File.new(false,false,true)
 

遊戲結束
 
$scene = Scene_Gameover.new
 

返回開頭畫面
 
$scene = Scene_Title.new
 

強制執行事件
 
$game_map.events[ID].start
 

通行判定
 
$game_player.passable?(x,y)
 
判斷地圖的某處是否可通行
 

 

移動判定
 
$game_player.moving?
 
$game_map.events[編號].moving?
這個沒有用過

 

 

 

播放
 
Sound.play_*****
 
EX:Sound.play_decision
 

系統用語
 
Vocab::****
 
EX:Vocab::hp

以上兩個還沒用過 

 

判斷某角色是否在隊伍中

$game_party.members.include?($game_actors[編號])
 

 

判斷某按鈕被按下

Input.press?(按鈕)

Input.trigger?(按鈕)
 

arrow
arrow
    全站熱搜

    IVY 發表在 痞客邦 留言(1) 人氣()