Well, I thought I was making a simple script, but naturally it's giving me trouble.
Basically the script is for a player to place a blanket on the ground, and then pick it up again.
The first script works fine. It takes the item from the inventory and a blanket appears on the ground.
The second script starts a convo when the player uses the blanket that is on the ground, and the convo asks if the player wants to pick it up. I figured it was best to use a convo for that in case the blanket was clicked on accidentally.
The third script is where things go wrong. Instead of picking up the blanket, and replacing the blanket in the player's inventory, it creates another blanket on the ground.
Here's the third script that's giving me trouble. Let me know if you need to see the others. (Sorry, I can't figure out how to put it in bbcode...*sheepish*) Thank you for any help.
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.c...=4683&id=625 */
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0f, 1.0f));
CreateItemOnObject("blanket", oPC);
object oTarget;
oTarget = OBJECT_SELF;
DestroyObject(oTarget, 0.0);
}





Retour en haut






