It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello, I'm new to scripting, can anyone tell me or show me how I might create a script to:

equip two of the same item to the same slot, say every 1.0 seconds for an NPC?
Work with this:
http://nwvault.ign.com/View.php?view=Other.Detail&id=625

It's Lilac Soul's script generator. It will write basic scripts for many different situations. It's a great learning tool to help you write your own scripts.

Also check this out:
http://www.nwn2scripting.com/
Good place to learn basic scripting also.

Also, check out and post questions in this forum:

http://social.bioware.com/forum/1/category/164/index

To get you started, this script would be placed on the npc's heartbeat. Heartbeats run every 6 secs. The script will place 2 arrows in the npc's inventory, and then equip them in the arrow slot. I'm not guaranteeing how effective this script is. It's been a long time since I scripted.

#include "ginc_param_const"

void main()
{
object oNPC = OBJECT_SELF;
object oItem = CreateItemOnObject("nw_wamar001", oNPC, 2);

ActionEquipItem(oItem, 11);
}
Post edited December 30, 2013 by Orion66