turf/MouseUp(location,xx,yy) |
This was made in 3.5, xx and yy stand for icon_x and icon_y. How would this work in 4.0 I'm guessing they would be params but I have no idea how to use params xD And yes I did look at the refrence.
ID:163289
Sep 14 2007, 1:36 am (Edited on Sep 14 2007, 1:43 am)
|
||
This was made in 3.5, xx and yy stand for icon_x and icon_y. How would this work in 4.0 I'm guessing they would be params but I have no idea how to use params xD And yes I did look at the refrence. | ||
#1 Sep 14 2007, 2:06 am
|
||
I tried doing this but it didn't work it gave me this error runtime error: Cannot read "default.map1".x proc name: MouseUp (/turf/map/MouseUp) usr: Miran (/mob/Player) src: the map (132,95,1) (/turf/map) call stack: the map (132,95,1) (/turf/map): MouseUp(the map (132,95,1) (/turf/map), "default.map1", "icon-x=26;icon-y=19;left=1") Miran94 (/client): MouseUp(the map (132,95,1) (/turf/map), the map (132,95,1) (/turf/map), "default.map1", "icon-x=26;icon-y=19;left=1") | ||
They were replaced by the control and location arguments and moved into params. An easy way to see how it all works:
| ||
I know I read that in the DM guide but I tried a new method of doing it I posted my snippet.
| |
Ah! I got this problem a lot last night before I worked it out. You need to use text2num() - that'll fix everything. It's just that the params are saved strictly as text so you can't do any maths with them!
~Ease~ | |
An example would be nice but thats actually clever.
| |
I tried this and it works sadly MouseUp() is slow
| ||
Thanks to all those who helped me (Nadrew and Ease) but is there a way to speed up the proc?
| |
I read over it, and I just can't see anything in it that might make it slow. There's no real loops, or anything that might get stuck for a while. Are you sure its not something around or near this code that is slow? Any loops that are involved with it that you haven't shown us?
~Ease~ | |