Basically, I am trying to have the NPC joing the party with a non-removable custom helm. I could have sworn the answer was in a tutorial I read once, but I am darned if I can find it, so I would welcome any suggestions or advice.
Thanks in advance

Posted 17 May 2007 - 04:25 AM
Chrysta... could helping her to uncover her past threaten your own future?
"Pity the land in need of Heroes."- Bertolt Brecht
"A little madness, now and then, is relished by the wisest men." - Willy Wonka
Posted 17 May 2007 - 04:52 AM
Posted 17 May 2007 - 05:01 AM
COPY_EXISTING ~test.cre~ ~override~ ADD_CRE_ITEM ~helm01~ #0 #0 #0 ~NONE~ ~HELMET~ ADD_CRE_ITEM ~xbow07~ #0 #0 #0 ~NONE~ ~WEAPON1~ ADD_CRE_ITEM ~sw2h11~ #0 #0 #0 ~NONE~ ~WEAPON1~ EQUIP TWOHANDED
Edited by ronin, 17 May 2007 - 05:02 AM.
Posted 17 May 2007 - 05:39 AM
Posted 17 May 2007 - 05:42 AM
Posted 17 May 2007 - 05:47 AM
COPY_EXISTING ~test.cre~ ~override~ ADD_CRE_ITEM ~helm01~ #0 #0 #0 ~NONE~ ~HELMET~ ADD_CRE_ITEM ~xbow07~ #0 #0 #0 ~NONE~ ~WEAPON1~ ADD_CRE_ITEM ~sw2h11~ #0 #0 #0 ~NONE~ ~WEAPON1~ EQUIP TWOHANDED
for example
weidu docs: http://www.weidu.org...iDU.html#htoc31
COPY ~Butthed.cre~ ~override~ ADD_CRE_ITEM ~Ka#helm~ #0 #0 #0 ~IDENTIFIED&UNSTEALABLE&UNDROPPABLE~ ~HELMET~ ADD_CRE_ITEM ~Ka#armr~ #0 #0 #0 ~IDENTIFIED~ ~ARMOR~ ADD_CRE_ITEM ~sper01~ #0 #0 #0 ~NONE~ ~WEAPON1~ EQUIP TWOHANDED
Edited by Sir Kalthorine, 17 May 2007 - 05:50 AM.
Chrysta... could helping her to uncover her past threaten your own future?
"Pity the land in need of Heroes."- Bertolt Brecht
"A little madness, now and then, is relished by the wisest men." - Willy Wonka
Posted 17 May 2007 - 05:48 AM
Edited by berelinde, 17 May 2007 - 05:49 AM.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
Posted 17 May 2007 - 06:02 AM
Posted 17 May 2007 - 06:09 AM
Good question - but in my case it is because I am constantly changing ideas about what the NPC is going to have equipment-wise, what custom items I am going to include, where and how they are going to be equipped, etc. So it is actually easier to make the necessary changes via changing a few characters in the TP2 file than it is to fire up NI, load a CRE file, manually change the items round and then save it again.Why make a task harder than what it should be?
Chrysta... could helping her to uncover her past threaten your own future?
"Pity the land in need of Heroes."- Bertolt Brecht
"A little madness, now and then, is relished by the wisest men." - Willy Wonka
Posted 17 May 2007 - 06:13 AM
Why not just assign it to that slot when you make the cre file? Much easier to do it that way.
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
Posted 17 May 2007 - 06:27 AM
The only time I've run into trouble with this is when I tried to do it *both* ways, on the same CRE. Through endless NI CRE editing while deciding on equipment, I wound up with a whole folder full of corrupted CREs, and I'm still cleaning up after that mess in v1.2. For v1.3, I'm starting with a bare CRE, adding any items with the tp2, and it's working just fine.Why not just assign it to that slot when you make the cre file? Much easier to do it that way.
There are two different approaches, that's all. I think editing .cre file in NI is more reliable than .tp2 patching(when looking at NPC mods which attempt these approaches and the number of item-related bugs in them), but that's just my experience.
Edited by berelinde, 17 May 2007 - 06:29 AM.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
Posted 17 May 2007 - 12:32 PM
Posted 17 May 2007 - 01:00 PM
Hence the ermphasis on "trying"Thanks Kellen, but I was trying to be a coding ninja and do it via the TP2, like ronin suggested.
A coding ninja would write their own patching code, rather than relying on a WeiDU function. And the patching code would contain at last one while loop.
Chrysta... could helping her to uncover her past threaten your own future?
"Pity the land in need of Heroes."- Bertolt Brecht
"A little madness, now and then, is relished by the wisest men." - Willy Wonka
Posted 17 May 2007 - 01:27 PM
IF Global("NPCGear","LOCALS",1) //Whatever my other conditions will be THEN RESPONSE #100 SetGlobal("NPCGear","LOCALS",1) GiveItemCreate("NPCArmor",Myself,0,0,0) // Armor FillSlot(SLOT_ARMOR) GiveItemCreate("NPCShiny",Myself,0,0,0) // Amulet FillSlot(SLOT_AMULET) GiveItemCreate("NPCSword",Myself,0,0,0) // sword FillSlot(SLOT_WEAPON1) GiveItemCreate("NPCBow",Myself,0,0,0) // bow FillSlot(SLOT_WEAPON2) GiveItemCreate("POTN55",Myself,5,1,1) // Potion of Superior Healing FillSlot(SLOT_MISC1) END
Posted 17 May 2007 - 02:14 PM
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
Posted 17 May 2007 - 03:57 PM
If you're going to go that route, your first trigger had better be
Global("NPCGear","LOCALS",0)
Posted 18 May 2007 - 10:46 AM
Edited by cmorgan, 18 May 2007 - 10:46 AM.