Jump to content

Need an NPC to accept money to add guards


QaxeIsKaze

Recommended Posts

I've got a castle in my town mod. I'd simply (famous last words) like to have an npc that I made, give the player an option to staff the castle with guards for some amount of gold. I've got the npc, got the location, can easily put 10 more guards around the place with "initially disabled" ticked on them waiting for the sale to happen, but I'm not sure how to set up this quest.

 

Looking at House Purchase and Stables quest hasn't helped me out. Ideas?

Link to comment
Share on other sites

I've got a castle in my town mod. I'd simply (famous last words) like to have an npc that I made, give the player an option to staff the castle with guards for some amount of gold. I've got the npc, got the location, can easily put 10 more guards around the place with "initially disabled" ticked on them waiting for the sale to happen, but I'm not sure how to set up this quest.

 

Looking at House Purchase and Stables quest hasn't helped me out. Ideas?

 

Define each guard as a reference alias. Under the topic for purchasing the guards make a script fragment defining their reference aliases as properties. (putting properties in fragments requires a workaround: http://forums.nexusmods.com/index.php?/topic/864848-calling-functions-in-extends-topicinfo/) Once you have them successfully defined as properties in the script fragment, put pMyGuardReferenceAlias1.enable().... 2.enable(), 3.enable(), etc. in the start or end fragment.

Link to comment
Share on other sites

Define each guard as a reference alias.

Thanks for replying. This isn't the area I'm confused about however. I understand how to enable the guards, and how to make the dialogue that gives the option to buy them. What I don't know how to set up is the exchange of money for this to happen.

 

Example:

Stage 10 talk to steward (as an example)

Stage 20 I've talked to steward and paid my 20k gold (whatever). Get all the guard aliases enabled here.

 

What needs to happen in 20 is the actual exchange of money, and I'm guessing it's some papyrus fragment that needs to be put in the dialogue somewhere. The Stables quest dialogue contains a fragment of script, in the part where you say "I'll buy the horse" and I'm wondering how I can replicate this to suit my needs. I feel like I'm close, but haven't gotten the cigar. (No, that didn't work)

 

Edit: WOO HOO! It works! Part of the trouble was broken dialogue, which is sussed out now.

I just made a stage 0 and stage 10. The dialogue advances the stage to 10 when the player says "yes". And everything is enabled or disabled as need be in stage 10.

Edited by Ahondara
Link to comment
Share on other sites

  • Recently Browsing   0 members

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