Torchmodders

Modding => Modding Questions => Topic started by: Haxley on February 24, 2015, 12:32:48 am


Title: NPC problems x_x
Post by: Haxley on February 24, 2015, 12:32:48 am
I created a custom npc merchant to use, all is well, placed and saved.

She acts like an enchanter in the field, though, after you click her once she walks away and vanishes.

Wander is set to false [or true, whichever means she CANNOT wander]


Anyone know what's up with this? I can't seem to find what's making her walk off and disappear <.<

I need her to stay in one place and be awesome.

~Thanks in advance to whomever may be able to help out
Title: Re: NPC problems x_x
Post by: Phanjam on February 24, 2015, 04:01:54 am
Hi Hax. I dont know the answer right off, but what i would do is take apart the unit .DATs of the stationary merchants to find the right settings...


Edit - my guess is an AI setting...
Title: Re: NPC problems x_x
Post by: Kva3imoda on February 24, 2015, 06:00:25 am
after you click her once she walks away and vanishes.
I think your UNITTYPE somehow connected with UNITTYPE:ENCHANTER.
As far as I know, only ENCHANTER has this property.
Title: Re: NPC problems x_x
Post by: Haxley on February 24, 2015, 11:41:39 am
I'm using MERCHANT unittype, as is the standard for merchants. I've been going through the .DAT for my merchant and had to manually add in the no wander line [it didn't save in the editor like 5 times for some reason?] and still no go. I'm going to try and edit some more lines before completely starting from scratch again.
Title: Re: NPC problems x_x
Post by: Kva3imoda on February 24, 2015, 03:48:27 pm
Hmm ... I always thought that only enchanters have this property. Possibly any merchant has this property in outdoor locations?
Title: Re: NPC problems x_x
Post by: Haxley on February 24, 2015, 09:42:49 pm
I thought that too, so here's what I did:

I started from scratch. Fixed whatever the problem was, and then I then placed that merchant in an outdoor layout and packed it up nice and visited him in-game, no problems. He chilled right where he was~

Something must have been awry with my .DAT like previously stated, but we can safely say that you can indeed put a merchant in outdoors without him running off on you~

whoop!