So I have this mod, run speed perk:
http://newvegas.nexu....com/mods/42471
It 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
working on run speed mod for player and companions
Started by
osterac
, Jan 08 2013 06:24 AM
18 replies to this topic
#1
Posted 08 January 2013 - 06:24 AM
#2
Posted 08 January 2013 - 02:19 PM
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.
#3
Posted 08 January 2013 - 03:39 PM
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?
Any ideas?
#4
Posted 08 January 2013 - 04:03 PM
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
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
#5
Posted 08 January 2013 - 06:50 PM
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!
Thank you!
#6
Posted 08 January 2013 - 06:58 PM
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.
#7
Posted 08 January 2013 - 10:34 PM
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 OR
Condition 2 AND
Condition 3 OR
Condition 4
Is evaluated as (Condition 1 OR Condition 2) AND (Condition 3 OR Condition 4).
The AND/OR set how the current condition is evaluated with the condition that follows it. For example:
Condition 1 OR
Condition 2 AND
Condition 3 OR
Condition 4
Is evaluated as (Condition 1 OR Condition 2) AND (Condition 3 OR Condition 4).
#8
Posted 08 January 2013 - 10:41 PM
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.
#9
Posted 08 January 2013 - 10:53 PM
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!
Edit
Also, when you say, put this entry first, this second, etc. Do you mean rank or priority?
Thanks for the speedy replies!
Edit
Also, when you say, put this entry first, this second, etc. Do you mean rank or priority?
Edited by osterac, 08 January 2013 - 10:58 PM.
#10
Posted 08 January 2013 - 11:11 PM
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!
Edit
Also, 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.



Sign In
Create Account
Back to top









