Difference between revisions of "Player Commands"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is an index list of LUA Commands; exclusively for using with Visionaire Studio! <br/>
+
*[[createScreenshot]]
Inside each page: you will find information, syntax & working examples for each command.
+
*[[getCursorPos]]
 
+
*[[getGameClientAchievement]]
 
+
*[[getGameClientStat]]
{| style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"
+
*[[getProperty]]
|-
+
*[[getSoundId]]
| style="border-bottom: 1px dashed darkgrey" | <b>Command</b> || style="border-bottom: 1px dashed darkgrey" | <b>Description</b>
+
*[[getSoundProperty]]
|-
+
*[[getVolume]]
| ♠ [[createScreenshot|createScreenshot()]] || Save a screenshot to a folder or use stored screenshot for next save game image (n/f)
+
*[[getWindowBrightness]]
|-
+
*[[getWindowMode]]
| ♠ [[getCursorPos|getCursorPos()]] || Check current x,y position of mouse cursor
+
*[[initGameClient]]
|-
+
*[[isPointInsidePolygon]]
| ♠ [[getProperty|getProperty()]] || Check various OS properties such as platform, language etc (n/f)
+
*[[registerEventHandler]]
|-
+
*[[registerHookFunction]]
| ♠ [[getSoundId|getSoundId()]] || Obtain integer value of currently linked sound file (if sound is playing) (n/f)
+
*[[replaceGame]]
|-
+
*[[resetGameClientStats]]
| ♠ [[getSoundProperty|getSoundProperty()]] || Check current property values of linked sound (if playing) such as: volume, balance, offset & loop (n/f)
+
*[[setCursorPos]]
|-
+
*[[setGameClientAchievement]]
| ♠ [[getSteamAchievement|getSteamAchievement()]] || Check x steam achievement condition value (n/f)
+
*[[setGameClientStat]]
|-
+
*[[setSoundProperty]]
| ♠ [[getSteamStat|getSteamStat()]] || Check x steam statistic for your game (n/f)
+
*[[setVolume]]
|-
+
*[[setWindowBrightness]]
| ♠ [[getVolume|getVolume()]] || Check volume levels for: music, sound, speech, movies & global
+
*[[setWindowSize]]
|-
+
*[[setWindowTitle]]
| ♠ [[registerEventHandler|registerEventHandler()]] || Create loops, listen out for various events; such as mouse actions, action/text started/stopped etc (n/f)
+
*[[shaderCompile]]
|-
+
*[[shaderSetOptions]]
| ♠ [[registerHookFunction|registerHookFunction()]] || Set displayed & action text positions (n/f)
+
*[[shaderUniform]]
|-
+
*[[startAction]]
| ♠ [[resetSteamStats|resetSteamStats()]] || Reset x steam statistic for your game (n/f)
+
*[[startAnimation]]
|-
+
*[[startDefaultBrowser]]
| ♠ [[setCursorPos|setCursorPos()]] || Set mouse cursor to whatever x,y position you declare
+
*[[startObjectTween]]
|-
+
*[[startSound]]
| ♠ [[setSoundProperty|setSoundProperty()]] || Set the property values of a linked sound (via id) such as volume, balance, offset & loop (n/f)
+
*[[startTween]]
|-
+
*[[stopAction]]
| ♠ [[setSteamAchievement|setSteamAchievement()]] || Set condition value of x steam achievement (n/f)
+
*[[stopAnimation]]
|-
+
*[[stopSound]]
| ♠ [[setSteamStat|setSteamStat()]] || Set value of x steam statistic (n/f)
+
*[[toggleSoundPause]]
|-
+
*[[toggleWindowMode]]
| ♠ [[setVolume|setVolume()]] || Set the volume levels for: music, sound, speech, movies & global
+
*[[unregisterEventHandler]]
|-
 
| ♠ [[setWindowTitle|setWindowTitle()]] || Set a custom title in the application title bar (window mode only)
 
|-
 
| ♠ [[startAction|startAction()]] || Perform a linked "called by other action"
 
|-
 
| ♠ [[startAnimation|startAnimation()]] || Load & play a linked animation
 
|-
 
| ♠ [[startDefaultBrowser|startDefaultBrowser()]] || Launch your default internet browser / open new tab & load the included url
 
|-
 
| ♠ [[startSound|startSound()]] || Play a linked sound; includes optional properties: volume, balance, offset & loop
 
|-
 
| ♠ [[stopAction|stopAction()]] || Stop a linked "called by other action" - if action is not active, then do nothing
 
|-
 
| ♠ [[stopAnimation|stopAnimation()]] || Stop a linked animation; if animation is not playing, then do nothing
 
|-
 
| ♠ [[stopSound|stopSound()]] || Stop a linked sound (via id); if sound is not playing, then do nothing
 
|-
 
| ♠ [[toggleSoundPause|toggleSoundPause()]] || Toggle currently playing sound (via id) (n/f)
 
|}
 
{{i18n|Player_Commands}}
 

Revision as of 21:41, 30 April 2015