Script Programming Question

mistahmikey

Active Member
I am interested in writing some code that is triggered when the game displays the big red emote text on screen (but does not go to your chat window.) Would I use the ISXEQ2 "Announcement" trigger or the "Text" trigger? Does anyone have a simple example they would be willing to share?
 

Kannkor

Ogre
I am interested in writing some code that is triggered when the game displays the big red emote text on screen (but does not go to your chat window.) Would I use the ISXEQ2 "Announcement" trigger or the "Text" trigger? Does anyone have a simple example they would be willing to share?
Add the event to a function (function main, for example), then make a loop to keep the script active. Below will fire every time there is an announcement.

Code:
Event[EQ2_onAnnouncement]:AttachAtom[EQ2_onAnnouncement]
atom EQ2_onAnnouncement(string Message, string SoundType, float Timer)
{
	echo ${Time}:EQ2_onAnnouncement: ${Message}
}
 
Top Bottom