48 throw Common::Exception(
"Functions::isObjectPartyMember(): object is not a creature");
61 int forceNPC1 = ctx.
getParams()[1].getInt();
62 int forceNPC2 = ctx.
getParams()[2].getInt();
75 const int slot = ctx.
getParams()[0].getInt();
Object * getTriggerer() const
A class holding an UTF-8 string.
Context of an NWScript function.
Object * getCaller() const
A simple scoped smart pointer template.
void showPartySelectionGUI(Aurora::NWScript::FunctionContext &ctx)
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 addAvailableNPCByTemplate(Aurora::NWScript::FunctionContext &ctx)
bool runScript(Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
Star Wars: Knights of the Old Republic engine functions.
void getPartyMemberByIndex(Aurora::NWScript::FunctionContext &ctx)
void addAvailablePartyMember(int slot, const Common::UString &templ)
Add available party member by template.
bool isAvailableCreature(int slot)
Check if there is a party member available for this id.
static Creature * toCreature(Aurora::NWScript::Object *object)
Module & getModule()
Return the module context.
void isAvailableCreature(Aurora::NWScript::FunctionContext &ctx)
An object in a Star Wars: Knights of the Old Republic area.
The context needed to run a Star Wars: Knights of the Old Republic module.
bool isObjectPartyMember(Creature *creature)
Check if the specified creature is a party member.
Creature * getPartyMember(int index)
Get a party member by index.
Basic Star Wars: Knights of the Old Republic type definitions.
void showPartySelectionGUI(int forceNPC1, int forceNPC2)
Show the party selection GUI.
void isObjectPartyMember(Aurora::NWScript::FunctionContext &ctx)