Mod Companion Questions

Post » Tue Sep 21, 2010 10:58 am

i am making a companion as part of my mod some of what she is to do is heal the player repair his gear and show her inventory. the questions i have for this topic are. i need for when the companion heals the player or repairs his gear for it not to cost any caps. how would i get it so you don't pay caps to hte npc when you use either of those two services? the next question i have is how do i get the npc to show me her inventory?
User avatar
Tamika Jett
 
Posts: 3301
Joined: Wed Jun 06, 2007 3:44 am

Post » Tue Sep 21, 2010 7:17 pm

If you call http://geck.gamesas.com/index.php/ShowRepairMenu on the player, then any money that they pay to repair their equipment will be returned to them instantly. They'll still need enough money to actually make the repairs though.

You can use http://geck.gamesas.com/index.php/OpenTeammateContainer to open your companion's inventory.

Cipscis
User avatar
Harinder Ghag
 
Posts: 3405
Joined: Wed Jan 17, 2007 11:26 am

Post » Tue Sep 21, 2010 6:12 pm

that answers one question and part of the other. i still need to know how to have the npc perform medical services for free.
User avatar
kiss my weasel
 
Posts: 3221
Joined: Tue Feb 20, 2007 9:08 am

Post » Tue Sep 21, 2010 3:32 pm

You can do it two ways.

Either add some dialogue options in the 'doctors' quest for your NPC and don't use the results scripts commands to take 50 caps from the player. Or you can simply script the whole process your self, using the doctors quest as a guide.
User avatar
Kristina Campbell
 
Posts: 3512
Joined: Sun Oct 15, 2006 7:08 am

Post » Tue Sep 21, 2010 10:44 am

is this the script i have to use in the dailogue on turquoises dailogue to do the medical services. SetAv Variable01 1
User avatar
Johanna Van Drunick
 
Posts: 3437
Joined: Tue Jun 20, 2006 11:40 am

Post » Tue Sep 21, 2010 11:39 am

That should work if -
* You add her to the DoctorsDialoguefaction
*You create new dialogue topics for her within the doctors quest
*You giver her the 'DoctorTempltescript' or modify her script to include the nescessay parts from the DoctorTemplatescript.

I think it would be simpler to script you own healing sequence than doing all that. Just look at how its done for other doctors in the game.
User avatar
Kayla Oatney
 
Posts: 3472
Joined: Sat Jan 20, 2007 9:02 pm

Post » Tue Sep 21, 2010 5:44 pm

when i looked at all the doctor quest dailogue it all had that script in the results script field of anyline that would be said before they healed the player. and the quest has no script in the script menu all the script is done in the dailogue.
User avatar
Peetay
 
Posts: 3303
Joined: Sun Jul 22, 2007 10:33 am

Post » Tue Sep 21, 2010 8:08 pm

That command 'SetAv Variable01 1' is used to run code in the 'DoctorTemplateScript' that all doctors in the game have attached to the NPC.
User avatar
Theodore Walling
 
Posts: 3420
Joined: Sat Jun 02, 2007 12:48 pm


Return to Fallout 3