Forum

> > CS2D > Scripts > Tile xy msg2
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tile xy msg2

5 replies
To the start Previous 1 Next To the start

old Tile xy msg2

Marcell
Super User Off Offline

Quote
Hi!

I'd like to get some help, i already tried with map editor but it send message to all players if he go to that position.
I'd like that only appears to that player on that position!

old Re: Tile xy msg2

Yates
Reviewer Off Offline

Quote
movetile

if x == .. and y == .. then
     msg2(id,"")
end

blah

old Re: Tile xy msg2

Marcell
Super User Off Offline

Quote
Otherwise i' would like that if someone use a button then it's start a trigger, and send a msg to that player,who used this button
edited 2×, last 21.06.13 11:04:48 pm

old Re: Tile xy msg2

DarkBooy
User Off Offline

Quote
@user Marcell: i have another way , on editor map you can make (msg2), there is steps to make msg2 :

1 > make Trigger_Start on somewhere and write in his Trigger : example1

2 > make Trigger_If on somewhere and write in his name : example1
           • Write in Condition :
1
addhook("usebutton","Onbtn")

3 > make Trigger_Use on somewhere and write in his Trigger : example2
     Edit: >      and set his name : Use

4 > make another Trigger_If and set his name : example2

• and write in Condition :
1
(function()Onbtn=function(id,x,y) if entity(x,y,"name")=="Use" then msg2(id,"©Here you'r Message!") end end return false end)()

then , test it Press Trigger_Use With [default: e].
maybe its now will work , i not test it.
edited 1×, last 22.06.13 01:46:33 pm

old Re: Tile xy msg2

Marcell
Super User Off Offline

Quote
It's works.
But somewhy when i press any usebutton on the map the message appears
edited 1×, last 22.06.13 01:13:49 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview