I'm not sure if there is a bug listed towards equiping items in a conversation but this is the script I used and it works (technically) but doesnt show the equipped gear in the conversation.
[ga_giveitem script modified to be able to give to NPCs in a conversation]
[Then I just use the standard ga_equipitem script in the convo]
#include "ginc_param_const"
#include "ginc_debug"
void main(string sTarget, string sTemplate)
{
object oPC = GetPCSpeaker();
string sTargetDefault;
string sDelim;
if (oPC == OBJECT_INVALID)
{ // script is not being run from a conversation with a PC speaker so assume it is from a console command.
sTargetDefault = "$OBJECT_SELF";
sDelim = " "; // runscripts can't use commas inside strings...
}
else
{
sTargetDefault = "$PC";
sDelim = ",";
}
object oTarget = GetTarget(sTarget, sTargetDefault);
CreateItemOnObject(sTemplate, oTarget);
}
Modifié par IxionReborn, 19 mai 2011 - 03:38 .





Retour en haut






