PDA

View Full Version : Question about creating puppets


Lando Griffin
09-26-2005, 07:52 PM
I want to assign the puppet to my pc character, but i dont see how i can in the TSL Creating puppets thread. Help please.

stoffe
09-26-2005, 07:58 PM
I want to assign the puppet to my pc character, but i dont see how i can in the TSL Creating puppets thread. Help please.

You can't. The game only supports assigning puppets to party members, not the main character. I believe this was mentioned in the puppet thread. :)

Lando Griffin
09-26-2005, 08:19 PM
i wrote the the ST_GivePuppet() and after that is says the code ST_GivePuppet(NPC_KREIA, PUP_OTHER1, "st_puppet1");
do i have to make a new notepad or what?

Det. Bart Lasiter
09-27-2005, 12:31 AM
Isn't the PC's constant -1 though? So for instance, you couldn't do this:

ST_GivePuppet(-1, PUP_OTHER1, "st_puppet1");

Also, instead of trying to add a puppet to the PC, why not try an NPC, I believe there is a tutorial on that in the NWN Lexicon. I think you would just need to set the NPC's script's correctly so that the NPC would always follow the PC, for instance using the OnHeartbeat event for it.

Lando Griffin
09-27-2005, 01:01 AM
yeah thats what im tryin to do right now but i dont know what to do next. I wrote the st_ai_puppethb.nss and the ST_GivePuppet() too and i dont know what to do next.

stoffe
09-27-2005, 08:05 AM
Isn't the PC's constant -1 though? So for instance, you couldn't do this:

ST_GivePuppet(-1, PUP_OTHER1, "st_puppet1");



As said, using -1 or NPC_PLAYER will not work. The game only supports adding puppets to party members, not the main player character. Nothing happens if you try to assign a puppet to the main character via scripting. And if you try the brute force way of assigning it via editing the main character in the savegame the game will crash when attempting to load that savegame. The engine does not seem to support PUPs owned by the main character.