PowerQuest 0.20.6
Loading...
Searching...
No Matches
QuestScript Class Reference

Detailed Description

All quest object scripts inherit from this, it provides some convenient functions (along with the PowerScript namespace)

Properties

static IPowerQuest E [get]
 Access to PowerQuest Engine functions. Eg. E.FadeIn(); E.ChangeRoom(R.Kitchen);
 
static ICursor Cursor [get]
 Access to Cursor functions. eg. Cursor.Hide(); Cursor.PlayAnimation("Sparkle");
 
static ICamera Camera [get]
 Access to Camera functions. eg. Camera.Shake(4); Camera.Zoom = 1.5f;
 
static QuestSettings Settings [get]
 Access to Settings. Eg. Settings.Volume = 0.5f
 
static GlobalScript Globals [get]
 Access to your global script. Use this to access your own variables and functions in your globals script. Eg. Globals.MyCustomFunction();
 

Static Protected Member Functions

static IHotspot Hotspot (string name)
 Get a hotspot in the current room. Shortcut to R.Current.GetHotspot(...). In the quest script editor, this is shortened to "H". Eg. H.Tree
 
static IProp Prop (string name)
 Get a prop in the current room. Shortcut to R.Current.GetProp(...). In the quest script editor, this is shortened to "P". Eg. P.Door.PlayAnimation("Open");
 
static IRegion Region (string name)
 Get a region in the current room. Shortcut to R.Current.GetRegion(...). In the quest script editor, this is shortened to "Regions". Eg. Regions.Puddle
 
static Vector2 Point (string name)
 Get a point in the current room. Shortcut to R.Current.GetPoint(...). In the quest script editor, this is shortened to "Points". Eg. Points.Entry
 

Property Documentation

◆ E

IPowerQuest E
staticgetprotected

◆ Cursor

ICursor Cursor
staticgetprotected

Access to Cursor functions. eg. Cursor.Hide(); Cursor.PlayAnimation("Sparkle");

◆ Camera

ICamera Camera
staticgetprotected

Access to Camera functions. eg. Camera.Shake(4); Camera.Zoom = 1.5f;

◆ Settings

QuestSettings Settings
staticgetprotected

Access to Settings. Eg. Settings.Volume = 0.5f

◆ Globals

GlobalScript Globals
staticgetprotected

Access to your global script. Use this to access your own variables and functions in your globals script. Eg. Globals.MyCustomFunction();

Member Function Documentation

◆ Hotspot()

static IHotspot Hotspot ( string name)
inlinestaticprotected

Get a hotspot in the current room. Shortcut to R.Current.GetHotspot(...). In the quest script editor, this is shortened to "H". Eg. H.Tree

◆ Prop()

static IProp Prop ( string name)
inlinestaticprotected

Get a prop in the current room. Shortcut to R.Current.GetProp(...). In the quest script editor, this is shortened to "P". Eg. P.Door.PlayAnimation("Open");

◆ Region()

static IRegion Region ( string name)
inlinestaticprotected

Get a region in the current room. Shortcut to R.Current.GetRegion(...). In the quest script editor, this is shortened to "Regions". Eg. Regions.Puddle

◆ Point()

static Vector2 Point ( string name)
inlinestaticprotected

Get a point in the current room. Shortcut to R.Current.GetPoint(...). In the quest script editor, this is shortened to "Points". Eg. Points.Entry