quote:
Originally posted by SmokingCookie
Hello debeste95
(Cool name! )
Event handlers, as these are called, are just functions with a specific name that Plus! recognises:
JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
if(Origin !== Messenger.MyName) { // Check if we did not send the message
MsgPlus.DisplayToast("","A contact has said something!");
[whatever you want to do]
}
return Message; // We don't want to do anything with the Message
}
This will display a pop-up message in the bottom-right corner of the screen, titled "Messenger Plus! Live", saying "A contact has said something!"; no sound will be played when displaying the toast and it won't be clickable.
so when do i have to put 'if', and when do i have to put 'function' before the event?
çause in GML (it's a noob language, i know) you always use if, so i don't have any experience with function...
but i think this will work, much thanx, now i can try to make my own pokemon battler with uber-pro functiens etc. (kidding!
)