tworld icon indicating copy to clipboard operation
tworld copied to clipboard

Extended event() method

Open erkyrath opened this issue 11 years ago • 2 comments

Need to be able to target a player (or list of players?)

event(msg, others=None, player=None) ? eventall(msg, others=None, players=None) ? eventloc(loc, all, others=None, players=None) ?

erkyrath avatar Jul 11 '13 19:07 erkyrath

event(msg, others=None, player=None) implemented.

erkyrath avatar Jul 31 '13 22:07 erkyrath

I'm not sure if this is what you are talking about here, but one situation I've encountered seems like it'd require the following: Send one event message to the acting player, another event message to a second player (whose ObjectId is stored as a Value), and a third event message to everyone else.

For instance, one player is positioned under a high ledge with a prize on top, prepared to boost someone else up. Another player clicks on a link to accept that help -- the acting player should see "Helper boosts you up to the ledge", the helping player should see "You help Actor up to the ledge," and any onlookers should see "Helper boosts Actor up to the ledge". In my current implementation of something similar, the helper sees their own name as an onlooker. I could send a specific event message to only the actor, and a specific message to the helper via "event(you, others, player)", but there's no way yet (that I know of) to send a message to everyone but those two people.

3Phen avatar Aug 27 '13 02:08 3Phen