Here are some things that may help you.
For GS2:
GraalControl.onMouseDown()
For GS1:
use if (mousedown && leftmousebutton) to detect the player has pressed the right mouse button.
You will need to use testplayer(x,y) to test for a player where the player used the mouse.
If you are using GS1 look through newfeatures2002.txt to find more information on mouse commands.
If you are using GS2 look through the
graal wiki (I like using the graal.us wiki because it has a searchable list of functions/variables whereas the 'Bible' only has a list of variable types that you can click and load up the vars and functions for them.
Strive to learn things for yourself, believe me its how I got here. I know its stressful to hear people give you a few functions and say, "try and do it yourself." But it really is the way to go. GS1 is confusing, and is hard to learn this way.. I know. Your best bet is to start using GS2 if you can.. takes a few days to really get the hang of it but after that you will start getting the hang of things.
But regardless of what idiots on this forum say or try to do in your post just ignore them and continue asking questions. But make sure your questions are for help, not entire scripts (which will get your thread either closed or flamed)
Good, so.. hope that helped.
If you need any more advice, I'm on Mana Realms.