|
Planeshift
|
This script operation is used to set character variables from npc dialogs. More...
#include <dictionary.h>
Public Member Functions | |
| virtual csString | GetResponseScript () |
| Gets the script representation of this object (after it has been loaded). More... | |
| virtual bool | Load (iDocumentNode *node) |
| Loads the script for the operation. More... | |
| virtual bool | Run (gemNPC *who, gemActor *target, NpcResponse *owner, csTicks &timeDelay, int &voiceNumber) |
| Actually runs the precompiled script. More... | |
| SetVariableResponseOp () | |
| Constructor. Practically does nothing. More... | |
| virtual | ~SetVariableResponseOp () |
| Destructor. More... | |
Public Member Functions inherited from ResponseOperation | |
| const char * | GetName () |
| only used for output in error messages while parsing the script in NpcResponse More... | |
| virtual bool | IsPublic () |
| virtual | ~ResponseOperation () |
Protected Attributes | |
| csString | variableName |
| The name of the variable to be set. More... | |
| csString | variableValue |
| The value of the variable to be set. More... | |
Protected Attributes inherited from ResponseOperation | |
| csString | name |
This script operation is used to set character variables from npc dialogs.
It can set a name and a value to associated to it. Note that each name must be unique for the current character or it will be overwritten.
Definition at line 602 of file dictionary.h.
|
inline |
Constructor. Practically does nothing.
Definition at line 610 of file dictionary.h.
|
inlinevirtual |
Destructor.
Definition at line 616 of file dictionary.h.
|
virtual |
Gets the script representation of this object (after it has been loaded).
Implements ResponseOperation.
|
virtual |
Loads the script for the operation.
| node | The document node of this operator. |
Implements ResponseOperation.
|
virtual |
Actually runs the precompiled script.
| who | The npc action which is running the script (ignored). |
| target | The npc actor which is being subject of the script. |
| owner | The npc response containing this script operation (ignored). |
| timeDelay | The time to wait before applying this script operation (ignored). |
| voiceNumber | The voice to apply for this operation (ignored). |
Implements ResponseOperation.
|
protected |
The name of the variable to be set.
Definition at line 605 of file dictionary.h.
|
protected |
The value of the variable to be set.
Definition at line 606 of file dictionary.h.