Planeshift
|
This script operation is used to unset 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). | |
virtual bool | Load (iDocumentNode *node) |
Loads the script for the operation. | |
virtual bool | Run (gemNPC *who, gemActor *target, NpcResponse *owner, csTicks &timeDelay, int &voiceNumber) |
Actually runs the precompiled script. | |
UnSetVariableResponseOp () | |
Constructor. Practically does nothing. | |
virtual | ~UnSetVariableResponseOp () |
Destructor. | |
Protected Attributes | |
csString | variableName |
The name of the variable to be set. |
This script operation is used to unset character variables from npc dialogs.
It can unset a name a variable from its name. Note that each name must be unique for the current character or it will be overwritten.
Definition at line 649 of file dictionary.h.
UnSetVariableResponseOp::UnSetVariableResponseOp | ( | ) | [inline] |
Constructor. Practically does nothing.
Definition at line 657 of file dictionary.h.
virtual UnSetVariableResponseOp::~UnSetVariableResponseOp | ( | ) | [inline, virtual] |
Destructor.
Definition at line 663 of file dictionary.h.
virtual csString UnSetVariableResponseOp::GetResponseScript | ( | ) | [virtual] |
Gets the script representation of this object (after it has been loaded).
Implements ResponseOperation.
virtual bool UnSetVariableResponseOp::Load | ( | iDocumentNode * | node | ) | [virtual] |
Loads the script for the operation.
node | The document node of this operator. |
Implements ResponseOperation.
virtual bool UnSetVariableResponseOp::Run | ( | gemNPC * | who, |
gemActor * | target, | ||
NpcResponse * | owner, | ||
csTicks & | timeDelay, | ||
int & | voiceNumber | ||
) | [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.
csString UnSetVariableResponseOp::variableName [protected] |
The name of the variable to be set.
Definition at line 652 of file dictionary.h.