Difference between revisions of "NDGID"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DebugMessage() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DebugGetAvgFrameTime()</p> || Returns the average running frametime of simulation thread.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DebugMessage()</p>Params<br>(...) One or more strings to be written. A space is inserted between each argument || Writes a message to the debug console and/or lua logs.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DeleteCharacter()</p>Params<br>userid - userid to player to delete<br>charid - characterId record to delete || Deletes a given character, requires a userId and valid characterId.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DelView()</p>Params<br>eventid - event identifier of the view to remove ||  Remove an object search subscription.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DestroyAllObjects()</p>Params<br>bool - ture/false to destroy no reset objects, defaults to false<br>responseidentifier - the signal when this command has completed || Sends a request to the object database.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DiceRoll()</p>Params<br>numdice -  number of dice to roll<br>numsides - number of sides of the dice || Rolls n-dice with k-sides (max 100 dice with 1,000 sides) and returns the summed total.
 
|}
 
|}
 
</center>
 
</center>

Latest revision as of 04:50, 18 November 2019

[Main] [Lua Examples]

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Global Functions & Examples

DebugGetAvgFrameTime()

Returns the average running frametime of simulation thread.

Example

 CODE EXAMPLE BLOCK

DebugMessage()

Params
(...) One or more strings to be written. A space is inserted between each argument
Writes a message to the debug console and/or lua logs.

Example

 CODE EXAMPLE BLOCK

DeleteCharacter()

Params
userid - userid to player to delete
charid - characterId record to delete
Deletes a given character, requires a userId and valid characterId.

Example

 CODE EXAMPLE BLOCK

DelView()

Params
eventid - event identifier of the view to remove
Remove an object search subscription.

Example

 CODE EXAMPLE BLOCK

DestroyAllObjects()

Params
bool - ture/false to destroy no reset objects, defaults to false
responseidentifier - the signal when this command has completed
Sends a request to the object database.

Example

 CODE EXAMPLE BLOCK

DiceRoll()

Params
numdice - number of dice to roll
numsides - number of sides of the dice
Rolls n-dice with k-sides (max 100 dice with 1,000 sides) and returns the summed total.

Example

 CODE EXAMPLE BLOCK