Hi all,
I have this script where you activate an item and the target has to be a placeable, but the generator doesn't give an option to specify the placeable. Is it possible to say which placeable has to be targeted? As you can see, using this item on a placeable starts the conversation 'workbench'. It would be great if the item wouldn't work on anything but the workbench.
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.c...=4683&id=625   */
void main()
{
object oPC;
if ((GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_PLACEABLE)
|| GetIsInCombat(GetItemActivator())
){
SendMessageToPC(GetItemActivator(), "Improper use of item!");
return;}
oPC = GetItemActivator();
//The PC will technically start a conversation with himself
//You should add some odd little sound to the first line in the
//conversation file, or the PC will give his normal voicegreeting.
object oTarget;
oTarget = oPC;
AssignCommand(oTarget, ActionStartConversation(oPC, "workbench"));
}
Any help is greatly appreciated.
'>