ID:273945
 
I can do Click() easy but how do I edit right click?
The params argument is text, and can be converted to a list using params2list(). It may contain any of the following properties, which will only be set if they are used:

icon-x, icon-y: Pixel coordinates within the icon; 1,1 is the lower left
screen-loc: Pixel coordinates in screen_loc format ("[tile_x]:[pixel_x],[tile_y]:[pixel_y]")
left, middle, right: Mouse buttons pressed/held/released
ctrl, shift, alt: Keys held down during the mouse action
drag-cell, drop-cell: Cells involved if using a Grid

client/Click(object,location,control,params)
params=params2list(params)
if(params["right"])
world<<"Right click"
if(params["left"])
world<<"Left click"


also you have to make sure that on the interface your map control supports right clicks.