User Tools

Site Tools


building:quests:dql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
building:quests:dql [2019/11/29 23:54]
EternalSenenity [Syntax]
building:quests:dql [2019/11/30 00:38] (current)
EternalSenenity [Objects]
Line 92: Line 92:
 DQL itself has a very simple syntax consisting of a optional object reference with a dot and a function name followed by the function arguments inside a pair of parenthesis,​ optionally followed by an operator and more DQL. DQL itself has a very simple syntax consisting of a optional object reference with a dot and a function name followed by the function arguments inside a pair of parenthesis,​ optionally followed by an operator and more DQL.
 For example, if the PC if paying for something we would need to take something, then give something back. For example, if the PC if paying for something we would need to take something, then give something back.
-  * [The shop keeper takes your gold and hands over the hammer.]|DO PC.Take(GOLD,​ 500) AND PC.Give(QUEST_MAGIC_HAMMER)+  * [The shop keeper takes your gold and hands over the hammer.]|DO PC.Take(GOLD,​ 500) AND PC.Give(quest_magic_hammer)
 Usually it is not necessary to include the "​PC."​ part as the PC Speaker is selected by default. Usually it is not necessary to include the "​PC."​ part as the PC Speaker is selected by default.
 The AND operator is very important as DQL evaluates left hand side first and only evaluates the right hand side if the left and side if true. The AND operator is very important as DQL evaluates left hand side first and only evaluates the right hand side if the left and side if true.
Line 127: Line 127:
  
 ===== Functions ===== ===== Functions =====
- 
-=== Has === 
  
  
Line 262: Line 260:
  
 === ActionFaceNearest() === === ActionFaceNearest() ===
-Makes the NPC face in the direction of the nearest ​peaceable. Used for aligning them with chairs and tables.+Makes the NPC face in the direction of the nearest ​placeable. Used for aligning them with chairs and tables.
  
 === EscapeArea() === === EscapeArea() ===
Line 289: Line 287:
 Returns TRUE if the object was created. Returns TRUE if the object was created.
  
 +=== Destroy() ===
 +Destroy the subject, obviously, PCs are ignored so be sure to use something like QUEST_P_VICTIM.Destroy(). Returns TRUE if the subject was valid or FALSE if not.
 ==== Animation ==== ==== Animation ====
 PMOTE may be a better option. PMOTE may be a better option.
building/quests/dql.1575071663.txt.gz ยท Last modified: 2019/11/29 23:54 by EternalSenenity

phpBB Appliance - Powered by TurnKey Linux