Me again. I want a message that I create in a script to be displayed via LeNotifications. But, in abstract terms, I have no idea how to deliver the message from my function objects to LeNotifications'. Let me explain, if I may.
I have this code:
var battleNotificationP = "You hit the "+Zarkdion.enemyManager.ids[args[0]]._type+" for "+damage+" damage.";So, let's say I hit a Dragon for 12 damage, the string becomes "You hit the Dragon for 12 damage."
Now, I want to send this message to the LeNotifManager object over in LeNotifications.js. As of right now, the only way I think I could do this is by using a script call from an event of some kind within my game. But I have no idea how I'd send the message to an event.
Or I could be totally wrong and there is a way to, for lack of better words, let my code talk directly to LeNotifications.
What do I do?
Thanks!
I have this code:
var battleNotificationP = "You hit the "+Zarkdion.enemyManager.ids[args[0]]._type+" for "+damage+" damage.";So, let's say I hit a Dragon for 12 damage, the string becomes "You hit the Dragon for 12 damage."
Now, I want to send this message to the LeNotifManager object over in LeNotifications.js. As of right now, the only way I think I could do this is by using a script call from an event of some kind within my game. But I have no idea how I'd send the message to an event.
Or I could be totally wrong and there is a way to, for lack of better words, let my code talk directly to LeNotifications.
What do I do?
Thanks!