![]() |
PowerQuest
0.10.2
|
Each room you create will have its own room class and script file. These are created automatically with the name appended, eg: RoomForest.cs.
Public Member Functions | |
void | OnEnterRoom () |
Called whenever you enter a room, before fading in. Non-blocking functions only Use this function to set up stuff you need to in your room, like where characters should be standing. More... | |
IEnumerator | OnEnterRoomAfterFade () |
Blocking script called whenever you enter a room, after fade in is complete. More... | |
IEnumerator | OnExitRoom (IRoom oldRoom, IRoom newRoom) |
Blocking script called whenever you exit a room, as it fades out. More... | |
IEnumerator | UpdateBlocking () |
Blocking script called every frame when no other scripts are blocking. More... | |
void | Update () |
Called every frame. Non-blocking functions only. More... | |
IEnumerator | OnAnyClick () |
Blocking script called whenever the player clicks anywhere. This function is called before any other click interaction. If this function blocks, it will stop any other interaction from happening. More... | |
IEnumerator | OnWalkTo () |
Blocking script called whenever the player tries to walk somewhere. Even if C.Player.Moveable is set to false. More... | |
void | OnPostRestore (int version) public IEnumerator OnInteractHotspot(Hotspot hotspot) |
Called after restoring a game. Use this if you need to update any references based on saved data. Non-blocking functions only. More... | |
IEnumerator | OnLookAtHotspot (Hotspot hotspot) |
Blocking script called when "Look At" is used on a hotspot. The name is appended to the function, eg: OnInteractHotspotTree(...). More... | |
IEnumerator | OnUseInvHotspot (Hotspot hotspot, Inventory item) |
Blocking script called when an item is used on a hotspot. The name is appended to the function, eg: OnInteractHotspotTree(...). Query the passed in 'item' to see if you should perform the action. Eg: ‘if ( item == I.Key ) {...}’ or 'if ( I.Key.Active ) {...}'. More... | |
IEnumerator | OnInteractProp (Prop prop) |
Blocking script called when "Interact" is used on a prop. The name is appended to the function, eg: OnInteractPropDoor(...). More... | |
IEnumerator | OnLookAtProp (Prop prop) |
Blocking script called when "Look At" is used on a prop. The name is appended to the function, eg: OnLookAtPropDoor(...). More... | |
IEnumerator | OnUseInvProp (Prop prop, Inventory item) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnUseInvPropDoor(...). Query the passed in 'item' to see if you should perform the action. Eg: ‘if ( item == I.Key ) {...}’ or 'if ( I.Key.Active ) {...}'. More... | |
IEnumerator | OnEnterRegion (IRegion region, ICharacter character) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnEnterRegionMud(...). Query the passed in 'character' to see if you should perform the action. Eg: ‘if ( character == C.Plr ) {...}’. More... | |
IEnumerator | OnExitRegion (IRegion region, ICharacter character) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnExitRegion(...). Query the passed in 'character' to see if you should perform the action. Eg: ‘if ( character == C.Plr ) {...}’. More... | |
void OnEnterRoom | ( | ) |
Called whenever you enter a room, before fading in. Non-blocking functions only Use this function to set up stuff you need to in your room, like where characters should be standing.
IEnumerator OnEnterRoomAfterFade | ( | ) |
Blocking script called whenever you enter a room, after fade in is complete.
Blocking script called whenever you exit a room, as it fades out.
IEnumerator UpdateBlocking | ( | ) |
Blocking script called every frame when no other scripts are blocking.
void Update | ( | ) |
Called every frame. Non-blocking functions only.
IEnumerator OnAnyClick | ( | ) |
Blocking script called whenever the player clicks anywhere. This function is called before any other click interaction. If this function blocks, it will stop any other interaction from happening.
IEnumerator OnWalkTo | ( | ) |
Blocking script called whenever the player tries to walk somewhere. Even if C.Player.Moveable
is set to false.
void OnPostRestore | ( | int | version | ) |
Called after restoring a game. Use this if you need to update any references based on saved data. Non-blocking functions only.
Blocking script called when "Interact" is used on a hotspot. The name is appended to the function, eg: OnInteractHotspotTree(...).
IEnumerator OnLookAtHotspot | ( | Hotspot | hotspot | ) |
Blocking script called when "Look At" is used on a hotspot. The name is appended to the function, eg: OnInteractHotspotTree(...).
IEnumerator OnUseInvHotspot | ( | Hotspot | hotspot, |
Inventory | item | ||
) |
Blocking script called when an item is used on a hotspot. The name is appended to the function, eg: OnInteractHotspotTree(...). Query the passed in 'item' to see if you should perform the action. Eg: ‘if ( item == I.Key ) {...}’ or 'if ( I.Key.Active ) {...}'.
IEnumerator OnInteractProp | ( | Prop | prop | ) |
Blocking script called when "Interact" is used on a prop. The name is appended to the function, eg: OnInteractPropDoor(...).
IEnumerator OnLookAtProp | ( | Prop | prop | ) |
Blocking script called when "Look At" is used on a prop. The name is appended to the function, eg: OnLookAtPropDoor(...).
IEnumerator OnUseInvProp | ( | Prop | prop, |
Inventory | item | ||
) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnUseInvPropDoor(...). Query the passed in 'item' to see if you should perform the action. Eg: ‘if ( item == I.Key ) {...}’ or 'if ( I.Key.Active ) {...}'.
IEnumerator OnEnterRegion | ( | IRegion | region, |
ICharacter | character | ||
) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnEnterRegionMud(...). Query the passed in 'character' to see if you should perform the action. Eg: ‘if ( character == C.Plr ) {...}’.
IEnumerator OnExitRegion | ( | IRegion | region, |
ICharacter | character | ||
) |
Blocking script called when an item is used on a prop. The name is appended to the function, eg: OnExitRegion(...). Query the passed in 'character' to see if you should perform the action. Eg: ‘if ( character == C.Plr ) {...}’.