Code: Select all
//below keeps user from entering edit mode. to bad it doesnt work.
editbind "E" [if (&& (= $shiftkey 0) (= $ctrlkey 0)) [echo "Whoops! No cheating!!!"]
if (&& (= $shiftkey 0) (= $ctrlkey 1)) [echo "Whoops! No cheating!!!"]
if (&& (= $shiftkey 1) (= $ctrlkey 0)) [echo "Whoops! No cheating!!!"]
if (&& (= $shiftkey 1) (= $ctrlkey 1)) [echo "Whoops! No cheating!!!"]]
Secondly, How does the basic syntax of variables in cubescript work? I want for a chest trigger to set a variable, and echo something. I got the echo part to work, but i have no idea how variables work here. How do I
A. Set a variable
B. Echo or use the contents of a variable?
thirdly, (and lastly) how do if statements in cubescript work? I have a trigger type 9 door, and i want it to open ONLY if a variable has been set by the trigger. how do i do this?
Any help would be MOST appreciated.