how to alter the companion panel?

Post » Sat May 28, 2011 2:15 am

most of the buttons work fine, such as "open inventory" "stimpak injection", "dialogue"

one thing that doesn't work is the Follow/Wait button here.

through the dialogue, it works fine, but if this button is pressed, the AI gets messed up. it follows after waiting for couple seconds.


is there a way we can manipulate the functions on the panel?
User avatar
sophie
 
Posts: 3482
Joined: Fri Apr 20, 2007 7:31 pm

Post » Sat May 28, 2011 5:23 am

For me, the wait/follow button works well.
User avatar
NAtIVe GOddess
 
Posts: 3348
Joined: Tue Aug 15, 2006 6:46 am

Post » Sat May 28, 2011 3:10 am

This sounds like a follower of your own. You need to take a peek at what this command wheel is actually doing when you roll wait/follow. The place to see this is the VNPCFollowers quest. You will see 2 topics, one for wait and one for follow. I believe that the command wheel, for those 2 commands, is accessing those 2 topics, and you will see how those 2 topics are toggling variables relative to the particular follower in question.

I believe that you need to make your own INFO line within those topics, and put your own followers' variable in there (being sure you defined it of course), and make your wait/follow AI packages match up appropriately. That's what I anticipate, anyway.
User avatar
Gisela Amaya
 
Posts: 3424
Joined: Tue Oct 23, 2007 4:29 pm

Post » Sat May 28, 2011 1:18 am

When I added the infos for my custom follower, the wait/follow button worked, but it seemed like the wheel wasn't keeping track of the current state - i'd have to hit the button two times to toggle it sometimes. Going back through the posts, there's something llamaRCA mentioned about the variables in the NPC script. If you use the same variables as in the vanilla followers, the wheel will read them and know the current state of the button - ie when the button is not highlighted by the mouse, it should show the icon of the current state - waiting or not.

I've verified this behavior with wait and the switchaggressive. They were both just flaky without the variables. I'll be trying it on the CS and distance - not sure which two of the distance variables are used.

scn MyNPCScript;------------- Wheel Variables -------------short CombatStyleRangedshort CombatStyleMeleeshort IsFollowingDefaultshort IsFollowingShortshort IsFollowingLongshort FollowerSwitchAggressive			; 0 = Passive (wait for player), 1 = Aggressive (attack when see enemy)short Waiting


Another thing you can do if you don't want to clutter the vNPCFollower quest, is to create a new quest for your NPC, and add the appropriate topics mentioned by Tarrant to your quest, and add the infos with conditions for your follower. When the game loads, it stacks all the infos since it's the same topic (just like a bunch of mods use GREETING', the game stacks them all together at runtime).
User avatar
Travis
 
Posts: 3456
Joined: Wed Oct 24, 2007 1:57 am

Post » Fri May 27, 2011 9:11 pm

thanks I will go take a look at that quest to see how it is done. and yes, it is for my own custome companion, and my goal is to not alter any of the original content. I will figure something out. thanks.
User avatar
Jessica Phoenix
 
Posts: 3420
Joined: Sat Jun 24, 2006 8:49 am

Post » Fri May 27, 2011 8:34 pm

ok, the panel works when I did as Tarrant and RickerHK instructed above. Problem is, that pressing the Follow/Wait once isn't enough sometimes.

Once the Follow flag is set, it resets to Wait. (Although the companion is still following).
User avatar
x_JeNnY_x
 
Posts: 3493
Joined: Wed Jul 05, 2006 3:52 pm


Return to Fallout: New Vegas