Forum

> > CS2D > Scripts > X;Y bbuton
Forums overviewCS2D overview Scripts overviewLog in to reply

English X;Y bbuton

5 replies
To the start Previous 1 Next To the start

old X;Y bbuton

Bobakrome
User Off Offline

Quote
1
elseif buton==2 then
then show on the screen your X:Y tile like this
RGB:000255255:Tile : X[..x..] ; Y[..y..]@C

old Re: X;Y bbuton

Kel9290
User Off Offline

Quote
1
2
3
4
5
6
addhook("serveraction","batman")
function batman(i,a)
	if a == 2 then
		msg2(i,"Tile X: "..player(i,"tilex")..", Y: "..player(i,"tiley")
	end
end

old Re: X;Y bbuton

EP
User Off Offline

Quote
1
msg2(id,"©000255255Tile X: "..player(id,"tilex").." : Tile Y "..player(id,"tiley").."@C")

old Re: X;Y bbuton

Infinite Rain
Reviewer Off Offline

Quote
1
msg2(id, 'x = '.. player(id, 'x') ..', y = '.. player(id, 'y') ..'@C')

old Re: X;Y bbuton

Bobakrome
User Off Offline

Quote
i dont want hook i want just if press buton==2 from a menu then show that

EDIT cuz of fast post of factis and filbum

user EP Exactly what i wanted ty!

old Re: X;Y bbuton

MikuAuahDark
User Off Offline

Quote
ok
untested >

just choice you want, you want floating value(e.x.: 1.1111111111) of tile or else.
if you want floating value of tile just delete
1
2
3
4
5
addhook("movetile","aaa")
function aaa(id,x,y)
	pos[id].tilex=x
	pos[id].tiley=y
end
else, don't delete it
have fun
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview