osterac Posted January 8, 2013 Share Posted January 8, 2013 So I have this mod, run speed perk:http://newvegas.nexusmods.com/mods/42471It lets you and you companions (present and future, barring any bugs) run at 125%, 150%, 200%, 275%, 300%, or 1000% speed. If you go into sneak mode, your speed goes into normal sneak mode speed. However, I have yet to figure out how to get that working with combat at the same time. With sneak mode, I just put a condition on a perk entry that had a set value for modify run speed of 175.56. The condition was IsSneaking == 1.00. I tried making another entry of modify run speed 308 with a condition of GetAttacked==1.00, but that didn't work, my player just moved at the same speed in combat whether sneaking or running. Is there anything else I can try? I don't fully understang how the AND and OR operators work. what items do they refer to, the one above or below? What if there are no other items on the list?Anyway, that's what I've tried so far. What should I do next?Thanks Link to comment Share on other sites More sharing options...
Xaranth Posted January 8, 2013 Share Posted January 8, 2013 If there's just two in the list, try using IsInCombat in your list. It there's more, I'm pretty sure the list reads top to bottom, with no way to 'group' conditions, but I'm not sure of that. Link to comment Share on other sites More sharing options...
osterac Posted January 8, 2013 Author Share Posted January 8, 2013 I have 3 perk entries, 1 for the increased run speed for the mod (eg for 300% that would be 924), one for normal run speed (308) and one for sneak speed (175.56) I'm not sure if my math is right, but those are the numbers I arrived at for Modify run speed: set value. The first entry has 2 conditions, isincombat==1 (like you said) AND issneaking==0 OR. The second entry has one condition, isincombat==1 OR. The third entry has one condition, issneaking==1 OR. The results of this were the same, out of combat running is accelerated, sneaking is normal. In combat, running and sneaking are at sneak speed.Any ideas? Link to comment Share on other sites More sharing options...
Xaranth Posted January 8, 2013 Share Posted January 8, 2013 First, the obvious, but maybe overlooked, check to make sure the conditions are attached to the right entries. :) Second: Reorder your entries. - Put the sneak speed entry first, and attach the following condition: IsSneaking == 1 (AND/OR doesn't matter.)- Put the Combat Speed entry second, and attach the following conditions: - - - IsSneaking != 1 AND- - - IsInCombat == 1- Put the boosted speed entry LAST, and attach the following conditions:- - - IsSneaking != 1 AND- - - IsInCombat != 1 Link to comment Share on other sites More sharing options...
osterac Posted January 8, 2013 Author Share Posted January 8, 2013 So != means not equal to, right? I think that makes sense. How do I know when to use != and when to use ==0? I'll try the code when I get home.Thank you! Link to comment Share on other sites More sharing options...
Xaranth Posted January 8, 2013 Share Posted January 8, 2013 It doesn't REALLY matter which you use, but since FNV doesn't have a true boolean data type, I like to use not-equal for conditionals like that. Just in case the function reports an odd value like 2 or something. Theoretically, that's not possible, but I don't trust FNV to behave predictably. Link to comment Share on other sites More sharing options...
jazzisparis Posted January 8, 2013 Share Posted January 8, 2013 Just a general note on conditions in the GECK:The AND/OR set how the current condition is evaluated with the condition that follows it. For example: Condition 1 ORCondition 2 ANDCondition 3 ORCondition 4 Is evaluated as (Condition 1 OR Condition 2) AND (Condition 3 OR Condition 4). Link to comment Share on other sites More sharing options...
Xaranth Posted January 8, 2013 Share Posted January 8, 2013 Yeah, well, if I want to do any complicated conditionals I usually put them on a token item so I can script and force Order of Operations with parenteses. :) Link to comment Share on other sites More sharing options...
osterac Posted January 8, 2013 Author Share Posted January 8, 2013 (edited) What's a token? Can you use regular console commands that way? Also, I'm not getting any notification emails. Is something wrong with the server? I used to get them...Thanks for the speedy replies! EditAlso, when you say, put this entry first, this second, etc. Do you mean rank or priority? Edited January 8, 2013 by osterac Link to comment Share on other sites More sharing options...
Xaranth Posted January 8, 2013 Share Posted January 8, 2013 What's a token? Can you use regular console commands that way? Also, I'm not getting any notification emails. Is something wrong with the server? I used to get them...Thanks for the speedy replies! EditAlso, when you say, put this entry first, this second, etc. Do you mean rank or priority? I mean the order in which the entries appear in the perk editor. Link to comment Share on other sites More sharing options...
Recommended Posts