Kongregate Developers

Note: This feature will not function unless we have enabled it for your game. If you would like to have this feature enabled, please email us at apps@kongregate.com.

Showing the shout box

If a player is logged-in and you want to allow them to post a shout on their profile page, you may bring up the shout box, optionally populated with some initial content.

showShoutBox(initialMessage:String):void
if(!kongregate.services.isGuest()){
  kongregate.services.showShoutBox("I accidentally ate the whole thing!");
}

When the function is called, a pop-up will appear giving the player a preview of the shout, and allowing them to add their own text. Once they've done this, the message will read:

[User added text] [Text added by function call] on [Game name with link]

So, for example, if your game "Grind Quest MMO" called kongregate.services.showShoutBox("User43 spent 50 hours grinding to get to level 4"), and the user added "I really need to get a life!", the resulting shout would read:

I really need to get a life! User43 spent 50 hours grinding to get to level 4 on Grind Quest MMO

Comments