ID:163007
 
So, I'm trying out parameters for pretty much the first time. I'm trying out the mouse parameters, and I can't figure out how to check if a parameter is 1 or not. Something like...

var/list/P=params2list(params)
if(P["middle"])
//Blah, blah, blah.


How should I do the if(P["middle"]) thing?

EDIT: Also, when I tried using DblClick() as an alternative, middle clicking would set it off. Normal?
Bump, I still need help.
Read up on associative lists and perhaps params2list(), the DM Reference Has the Answers.
EDIT: Also, when I tried using DblClick() as an alternative, middle clicking would set it off. Normal?

I can verify this. Normal? No, that shouldn't happen...