73 for (
int i = 0; i < nth; ++i) {
93 bool enabled = ctx.
getParams()[1].getInt();
121 int maxHitPoints = ctx.
getParams()[1].getInt();
123 if (maxHitPoints == 0)
void createItemOnObject(Aurora::NWScript::FunctionContext &ctx)
Object * getTriggerer() const
A class holding an UTF-8 string.
void getEnteringObject(Aurora::NWScript::FunctionContext &ctx)
void getIsPC(Aurora::NWScript::FunctionContext &ctx)
Context of an NWScript function.
void getMinOneHP(Aurora::NWScript::FunctionContext &ctx)
void getObjectByTag(Aurora::NWScript::FunctionContext &ctx)
Inventory & getInventory()
void destroyObject(Aurora::NWScript::FunctionContext &ctx)
void getCurrentHitPoints(Aurora::NWScript::FunctionContext &ctx)
A simple scoped smart pointer template.
void setMinOneHP(Aurora::NWScript::FunctionContext &ctx)
void setCurrentHitPoints(int hitpoints)
Set the current hitpoints.
int getCurrentHitPoints()
Return the objects current hitpoints.
The context handling the gameplay in Star Wars: Knights of the Old Republic.
Utility templates and functions.
A container of Star Wars: Knights of the Old Republic objects.
void getClickingObject(Aurora::NWScript::FunctionContext &ctx)
bool getMinOneHitPoints() const
Get if the object has a minimum of one hp.
int getMaxHitPoints()
Get the maximum hit points for the objects.
ObjectSearch * findObjectsByTag(const Common::UString &tag) const
Return a search context to iterate over all objects with this tag.
void setMinOneHitPoints(bool enabled)
Set if the object has a minimum of one hp.
A scoped plain pointer, allowing pointer-y access and normal deletion.
void getItemInSlot(Aurora::NWScript::FunctionContext &ctx)
Star Wars: Knights of the Old Republic engine functions.
The context holding a Star Wars: Knights of the Old Republic area.
Inventory & getInventory()
A placeable in a Star Wars: Knights of the Old Republic area.
void addItem(const Common::UString &tag, int count=1)
static KotOR::Object * toObject(::Aurora::NWScript::Object *object)
static Creature * toPC(Aurora::NWScript::Object *object)
void getExitingObject(Aurora::NWScript::FunctionContext &ctx)
void getIsObjectValid(Aurora::NWScript::FunctionContext &ctx)
static Placeable * toPlaceable(Aurora::NWScript::Object *object)
void setMaxHitPoints(Aurora::NWScript::FunctionContext &ctx)
static Creature * toCreature(Aurora::NWScript::Object *object)
Module & getModule()
Return the module context.
Item * getEquipedItem(EquipmentSlot slot) const
void removeObject(KotOR::Object *object)
void getMaxHitPoints(Aurora::NWScript::FunctionContext &ctx)
An object in a Star Wars: Knights of the Old Republic area.
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
void setMaxHitPoints(int maxHP)
Set the maximum hit points for the objects.
The context needed to run a Star Wars: Knights of the Old Republic module.
Area * getCurrentArea()
Return the area the PC is currently in.
void getArea(Aurora::NWScript::FunctionContext &ctx)
Basic Star Wars: Knights of the Old Republic type definitions.
Creature * getPC()
Return the currently playing PC.