kert349 Posted January 4, 2011 Share Posted January 4, 2011 How do you save the companion wheel settings? When you access the wheel and click the NPC to wait for example the setting isnt saved. i tried "saving" it via the dialog entries like the vanilla companions seems to do but im not sure if thats it? using quest variable there in the dialogs condition field didnt make the companionwheel icon be according to the variable. but i was only able to make the NPC say different dialog lines depending the variables value. Link to comment Share on other sites More sharing options...
rickerhk Posted January 4, 2011 Share Posted January 4, 2011 How do you save the companion wheel settings? When you access the wheel and click the NPC to wait for example the setting isnt saved. i tried "saving" it via the dialog entries like the vanilla companions seems to do but im not sure if thats it? using quest variable there in the dialogs condition field didnt make the companionwheel icon be according to the variable. but i was only able to make the NPC say different dialog lines depending the variables value. The game engine reads these variables on your NPC's object script in order for the wheel to 'know' what the settings are. ;------------- Wheel Variables ------------- short CombatStyleRanged short CombatStyleMelee short IsFollowingDefault short IsFollowingLong short FollowerSwitchAggressive ; 0 = Passive (wait for player), 1 = Aggressive (attack when see enemy) short Waiting You don't necessarily have to use these variables to control your AI packages. For example, I have all my package variables in a quest script. When I hit the wheel button to wait, I have the result script change both variables. Then you just add infos to the FollowersXXX topics for your NPC. Use the VNPCFollowers quest as a guide for setting the conditions on the infos. Link to comment Share on other sites More sharing options...
kert349 Posted January 5, 2011 Author Share Posted January 5, 2011 (edited) How do you save the companion wheel settings? When you access the wheel and click the NPC to wait for example the setting isnt saved. i tried "saving" it via the dialog entries like the vanilla companions seems to do but im not sure if thats it? using quest variable there in the dialogs condition field didnt make the companionwheel icon be according to the variable. but i was only able to make the NPC say different dialog lines depending the variables value. The game engine reads these variables on your NPC's object script in order for the wheel to 'know' what the settings are. ;------------- Wheel Variables ------------- short CombatStyleRanged short CombatStyleMelee short IsFollowingDefault short IsFollowingLong short FollowerSwitchAggressive ; 0 = Passive (wait for player), 1 = Aggressive (attack when see enemy) short Waiting You don't necessarily have to use these variables to control your AI packages. For example, I have all my package variables in a quest script. When I hit the wheel button to wait, I have the result script change both variables. Then you just add infos to the FollowersXXX topics for your NPC. Use the VNPCFollowers quest as a guide for setting the conditions on the infos. THX, thats the same thing i was trying to do ( i think). but i cant get it to work. Is the only thing you need a condition (variable either in quest or follower script) in the FollowerWait / FollowerLetsgo topic? Edited January 5, 2011 by kert349 Link to comment Share on other sites More sharing options...
rickerhk Posted January 5, 2011 Share Posted January 5, 2011 Is the only thing you need a condition (variable either in quest or follower script) in the FollowerWait / FollowerLetsgo topic? You save the state of the variables in the NPC's script. Example, if MyCompanionREF.Waiting is set to one, the wheel knows that your NPC is waiting. So when you hit that wheel button, it knows to use the FollowersLetsGo. If Waiting is 0, it knows to use the FollowersWait topic.The important condition on the FollowersXXX topics for the wheel is GetIsID. The other conditions are important if you go into dialog with your NPC - you don't want 'wait here' displaying if they are already waiting, for example. Link to comment Share on other sites More sharing options...
kert349 Posted January 6, 2011 Author Share Posted January 6, 2011 (edited) Right but for some reason i cant get the companion wheel to show the proper icon for wait/follow. its always the default. I attached screenshot of the dialog settings i have... OH and they do say different dialog lines, its just the wheel that doesnt update. Edited January 6, 2011 by kert349 Link to comment Share on other sites More sharing options...
rickerhk Posted January 7, 2011 Share Posted January 7, 2011 Right but for some reason i cant get the companion wheel to show the proper icon for wait/follow. its always the default. I attached screenshot of the dialog settings i have... OH and they do say different dialog lines, its just the wheel that doesnt update. Then you are almost there ;)The wheel icons update by reading the variables on a script that you need to put on your NPC. The NPC script needs to have a variable called 'Waiting'. All the vanilla followers have this same variable name in their scripts. Then in your case, if your NPC had a Ref of kert349Ref, it's script should have the minimum of this: scn kert349NPCScript short Waiting Then the result script in your quest, to make the NPC wait, would be: set BaseOprQ.solWaiting to 1 ;Using this for the AI packages and conditions is fine set kert349Ref.Waiting to 1 ;The wheel uses this to know which button to show Link to comment Share on other sites More sharing options...
kert349 Posted January 8, 2011 Author Share Posted January 8, 2011 THx that did it. btw does anyone know command to manually open the companionwheel? Link to comment Share on other sites More sharing options...
Recommended Posts