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/01 01:11]
EternalSenenity [Die Rolls]
building:quests:dql [2019/11/30 00:38]
EternalSenenity [Objects]
Line 52: Line 52:
 The only major downside is the PC can end up with hundreds of pointless journal entries. The only major downside is the PC can end up with hundreds of pointless journal entries.
 Builders can help by removing journal entries when a quest or quest chain is complete. ​ Builders can help by removing journal entries when a quest or quest chain is complete. ​
-If you want to avoid journal clutter but still want to track quest history, then consider using both Journal and the quest_census item. Remove the journal entry but leave the quest_census local variable. DQL will actually cache the journal state in the quest_census if found, or the PC is not, so using the quest_census to store quests results is seamless. ​+If you want to avoid journal clutter but still want to track quest history, then consider using both Journal and the quest_census item. Remove the journal entry but leave the quest_census local variable. DQL will actually cache the journal state in the quest_census if found, or the PC if not, so using the quest_census to store quests results is seamless. ​
 Include an NPC in the city, perhaps the library, who can clean up all the quests for your island. Include an NPC in the city, perhaps the library, who can clean up all the quests for your island.
  
Line 90: Line 90:
 **|PMOTE** - Pass the following text to the pmote script with Self as Subject and the PC Speaker as the partner. **|PMOTE** - Pass the following text to the pmote script with Self as Subject and the PC Speaker as the partner.
  
-DQL itself has a very simple syntax consisting of a option ​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.txt ยท Last modified: 2019/11/30 00:38 by EternalSenenity

phpBB Appliance - Powered by TurnKey Linux