ID:647065
 
(See the best response by StarKid29.)
The user needs to record and save four clicks on the map they made. I have four variables, thinking that each variable would save where the player clicks, but I have absolutely nothing on my mind on how I would approach this.

I don't want to save turfs, or anything that would increase my savefile size.

Any insights?
Save the location? Grab the turf's x, y, and z. Store them in a string.
In response to Albro1
Albro1 wrote:
Save the location? Grab the turf's x, y, and z. Store them in a string.

Not the exact turf, but just the points where you clicked.
Does Click() even work that precisely outside of grabbing the location on their screen? I know you can get it's location on the map, but I'm honestly not experienced enough with it to know how to grab the points on the map where you clicked.
I don't think I fully understand what you're asking for but it sounds like you could be looking for the "screen-loc" or "icon-x" and "icon-y" from the params in Click()
In response to StarKid29
StarKid29 wrote:
I don't think I fully understand what you're asking for but it sounds like you could be looking for the "screen-loc" or "icon-x" and "icon-y" from the params in Click()

This is likely what I am looking for, but how would I make my mouse or object move to the points where you saved the screen-loc?
Best response
Neimo wrote:
StarKid29 wrote:
I don't think I fully understand what you're asking for but it sounds like you could be looking for the "screen-loc" or "icon-x" and "icon-y" from the params in Click()

This is likely what I am looking for, but how would I make my mouse or object move to the points where you saved the screen-loc?

As far as I know, you can't move the client's mouse yourself.

If you're trying to move an object on the map to the exact position they clicked you could send the object to the clicked location then set the object's step_x and step_y vars to the icon-x and icon-y params.

turf
Click(location, control, params)
params = params2list(params)

yourObj.loc = locate(x, y, z)
yourObj.step_x = text2num( params["icon-x"] )
yourObj.step_y = text2num( params["icon-y"] )


If you're just trying to send an object on the client's screen to that screen-loc, you could just set the object's screen_loc variable to the screen-loc param.

turf
Click(location, control, params)
params = params2list(params)

yourObj.screen_loc = params["screen-loc"]