NedFox

I want to go out with a bang but BE :(

4 posts in this topic

Since I'm using Infistar, not sure if I should post here but probably get the best response :)

Using the F35, since I want to let all players 'destroy the world' when the wipe comes , but :

Setvariable.log

07.11.2015 15:32:09: NedFox (192.168.2.2:2304) f23ecdb4d05f886aa4e80cc303d203e7 - Value Restriction #0 "cannonammo" = 180 2:1976 mas_F_35C
07.11.2015 19:56:15: NedFox (192.168.2.2:2304) f23ecdb4d05f886aa4e80cc303d203e7 - Value Restriction #0 "cannonammo" = 180 2:2150 mas_F_35C
07.11.2015 20:04:53: NedFox (192.168.2.2:2304) f23ecdb4d05f886aa4e80cc303d203e7 - Value Restriction #0 "cannonammo" = 180 2:2288 mas_F_35C

I know how to handle scripts.txt, but this one is beyond me.

Line #2 is : 7 "" !="exilexm8isonline" !="bis_fnc_selectrespawntemplate_respawned" !="slx_xeh_playable" !"cannonammo"

 

 

 

Share this post


Link to post
Share on other sites

you have to mod your setVariableVal.txt and not setVariable.txt :P it says VALUE Restriction ;-)

I don't really remember what of the single parts are the actual VALUE

 

"cannonammo" = 180 2:2288 mas_F_35C

180
2:2288

or

mas_F_35C


I guess it simply is
mas_F_35C

so you just add !="mas_F_35C" to your first line

 

Share this post


Link to post
Share on other sites
Advertisement

Ah!! That makes sense.. I would expect a setvariableval.log

mas_F_35C wasn't enough, but I know my way around with regex :)

This is how it works :

!="mas_F_35C" !="180" !="2:[0-9]+"
 
EXPLANATION
  •  
    /2:[0-9]+/
    • 2: matches the characters 2: literally
    •  
      [0-9]+ match a single character present in the list below
      • Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]
      • 0-9 a single character in the range between 0 and 9

All works now, can be closed. You sir are an (infi) star ! 

Edited by NedFox

Share this post


Link to post
Share on other sites

You can remove

 

!="2:[0-9]+"

 

because if it works for you now then probably not because of that, it shows the netid of the object and that is always different, even the 2 should be different so this should not be needed there

 

The value might just be 180 and then you could just white-list

 

I guess

!="[0-9]"

 

would be enough  ^^

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.