Jump to content

Outdoor merchant script help needed


AydanPryde

Recommended Posts

It's a bit frustrating, but i'm stuck with this.

 

I made myself a normal merchant following all the tutorials and infos from the cs wiki. He's placed in an interior cell which is part of a public space. There's no ownership on the cell belonging to him, his merchant container is not in the cell, and the cell is public space. He belongs to a (playable) race that i did myself.

It's perfectly working, until i want him to stop his service and send him to sleep. I started with the most basic sleep script possible, with no flags checked at all. The selected package is sleep, location is near reference in a different cell containing the specified xmarker. There's a free bed with no ownership at all, the doors are working and the pathgrid also (in both cells).

Now, when the offer services script is terminated, due to my time setting (7:00am to 7:00pm) and the sleep script starts (7:00pm to 7:00am), he does not wander off to the specified xmarker, but runs up to me and looks angry, which is a bit cute, because i love to see the new race close up. He keeps telling me that i should go now, and he has better things to do and so on, and so on, so i guess he thinks that i'm trespassing. He frustratingly keeps following me around in the entire cell. If i enter the cell where he's supposed to sleep, wait some seconds and reenter the previous cell where he's still standing outside, he's greeitng me politely, and vanishes, entering his home, where i just came from. He then goes to bed and sleeps the full 12 hours with a good conscience while i start swearing and cursing him. The forum doesn't offer enough color to write down all of my curses while he sleeps. Anyway, when the offer service package starts (travelpackage, with must reach location, continue if PC is near and offer services checked, location is near editor placement radius 0) he simply ignores my existence, crawls out of his bed and follows the path grid to his original position. I can buy and sell objects, and there's not a single problem, until he should go to bed again. So i guess he's offended by my presence aand keeps thinking i'm trespassing.

 

Is there anything i did wrong? Or is there a workaround for this behaviour? I read a lot about merchant behaviour, and that assuming the PC to be trespassing is a default behaviour, but i haven't seen any detailed information on this topic. I tried everything i can come up with, from enabling offer service in the sleep package to reducing hie responsibilty below 10. It'd be very nice if someone can give me a hint, a link, or just point me in the right direction.

Link to comment
Share on other sites

If you followed the tutorials, you presumably checked "Continue if PC Near" in the Offer Services package? That's why he keeps running up to you when 7PM rolls around; his day is done and you're effectively "trespassing" in the interior cell he's in (that's what that little flag is meant for). As long as that's checked it won't move on (evaluate) the next package while you're in the same cell. When you head into the area he's supposed to sleep and return, it's allowed the package to update, so he's all happy now. :biggrin:

 

If you want to spy on him without him noticing you (except when he's offering services--bugger can still find you) try this mod I whipped up just for this purpose:

 

Ring of the Voyeur: http://oblivion.nexusmods.com/mods/42852

 

In a nutshell, nope, you didn't do anything wrong, in fact your merchant seems to be working better than some of mine ever do! :wallbash:

Link to comment
Share on other sites

If you followed the tutorials, you presumably checked "Continue if PC Near" in the Offer Services package? That's why he keeps running up to you when 7PM rolls around; his day is done and you're effectively "trespassing" in the interior cell he's in (that's what that little flag is meant for). As long as that's checked it won't move on (evaluate) the next package while you're in the same cell. When you head into the area he's supposed to sleep and return, it's allowed the package to update, so he's all happy now. :biggrin:

 

If you want to spy on him without him noticing you (except when he's offering services--bugger can still find you) try this mod I whipped up just for this purpose:

 

Ring of the Voyeur: http://oblivion.nexusmods.com/mods/42852

 

In a nutshell, nope, you didn't do anything wrong, in fact your merchant seems to be working better than some of mine ever do! :wallbash:

 

I knew it, i knew it... the most persistant and annoying bugs to debug are those you have actually thoughtfully written yourself. I'm a horrible scripter, but i have a single outstanding, almost metaphysical skill in scripting. I can make anything i touch by scripting do completely nothing. It seems that i recently just reached the next level skill in this profession, so i can now surprise myself with random script behaviour. Of course, it's working now, DocRob, and i feel like a complete idiot ;) Thanks a lot!

Link to comment
Share on other sites

You're welcome. :biggrin:

 

And hey, if you feel like an idiot sometimes with scripting, welcome to the club. :laugh: I spent an hour yesterday trying to troubleshoot a simple script (getting containers to refill with certain items) before realizing with a "Hey, dummy, you put it on the wrong containers!" shout just what I'd done... ;D

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...