This component provides a bridge between RPG Kit and the Dialogue System's Lua environment. More...
Public Member Functions | |
virtual void | Awake () |
virtual void | Start () |
void | OnConversationStart (Transform actor) |
When a conversation starts, freeze the player and sync to Lua. More... | |
void | OnConversationEnd (Transform actor) |
When a conversation ends, unfreeze the player and sync to RPG Kit. More... | |
void | UpdateTracker () |
Static Public Member Functions | |
static void | SetPlayerControl (bool value) |
Sets player control on or off. More... | |
static void | SaveDialogueSystemData () |
Saves the Dialogue System data. More... | |
static void | DeleteDialogueSystemData (string characterName) |
Deletes the Dialogue System data associated with a specific character. More... | |
static void | SyncToLua () |
Syncs RPG Kit player name and class to Lua. More... | |
static void | SyncFromLua () |
Syncs from Lua to RPG Kit. More... | |
static GameObject | GetPlayer () |
static string | GetPlayerName () |
static string | GetPlayerGender () |
static string | GetPlayerClass () |
static double | GetPlayerLevel () |
static double | GetPlayerStatus (string statusName) |
static double | GetEntityStatus (string gameObjectName, string statusName) |
static double | GetGameObjectStatus (GameObject go, string statusName) |
static void | ModifyPlayerStatus (string statusName, double amount) |
static void | ModifyEntityStatus (string gameObjectName, string statusName, double amount) |
static void | ModifyGameObjectStatus (GameObject go, string statusName, double amount) |
static Unitycoding.StatusSystem.Status | FindStatus (GameObject go, string statusName) |
static bool | ItemContainerHasItem (Unitycoding.ItemSystem.ItemContainer container, string itemName, double amount) |
static void | ItemContainerAddItem (Unitycoding.ItemSystem.ItemContainer container, string itemName, double amount) |
static void | ItemContainerRemoveItem (Unitycoding.ItemSystem.ItemContainer container, string itemName, double amount) |
static bool | PlayerHasItem (string itemName, double amount) |
static void | PlayerAddItem (string itemName, double amount) |
static void | PlayerRemoveItem (string itemName, double amount) |
static bool | EntityHasItem (string gameObjectName, string itemName, double amount) |
static void | EntityAddItem (string gameObjectName, string itemName, double amount) |
static void | EntityRemoveItem (string gameObjectName, string itemName, double amount) |
static Unitycoding.ItemSystem.Item | FindItem (string itemName) |
static string | FindItemId (string itemName) |
static void | OpenShop (string gameObjectName) |
static void | SetOverheadIcon (string gameObjectName, string iconName) |
Public Attributes | |
string | actorName = "Player" |
The name of the player actor in the dialogue database. More... | |
bool | freezeInConversations = true |
If true , freeze player controls during conversations. More... | |
bool | syncLuaInConversations = true |
If true , RPG Kit data is synchronized with Lua. More... | |
string | saveDataKey = "DialogueSystemSaveData" |
The PlayerPrefs key to use for Dialogue System save data. More... | |
string | playerInventoryContainerName = "Inventory" |
Properties | |
static RPGKitBridge | Instance [get] |
string | CharacterSaveDataKey [get] |
This component provides a bridge between RPG Kit and the Dialogue System's Lua environment.
It syncs the player name, class, attributes, and equipment count, and also freezes player controls during conversations. Add the RPG Kit Bridge component to the Dialogue Manager.
|
virtual |
|
static |
Deletes the Dialogue System data associated with a specific character.
characterName | Character name. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.OnConversationEnd | ( | Transform | actor | ) |
When a conversation ends, unfreeze the player and sync to RPG Kit.
actor | Actor. |
void PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.OnConversationStart | ( | Transform | actor | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
Saves the Dialogue System data.
Currently saves to PlayerPrefs.
|
static |
|
static |
Sets player control on or off.
This method only looks for ThirdPersonController and ThirdPersonCamera. If you use other scripts, you should handle them elsewhere.
value | If set to true , enable control. |
|
virtual |
|
static |
Syncs from Lua to RPG Kit.
Does nothing currently.
|
static |
Syncs RPG Kit player name and class to Lua.
void PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.UpdateTracker | ( | ) |
string PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.actorName = "Player" |
The name of the player actor in the dialogue database.
bool PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.freezeInConversations = true |
If true
, freeze player controls during conversations.
string PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.playerInventoryContainerName = "Inventory" |
string PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.saveDataKey = "DialogueSystemSaveData" |
The PlayerPrefs key to use for Dialogue System save data.
bool PixelCrushers.DialogueSystem.RPGKit.RPGKitBridge.syncLuaInConversations = true |
If true
, RPG Kit data is synchronized with Lua.
|
get |
|
staticget |