JS-SOCIALS
Syntax
Char.social( [target,] [type1,] [type2,] ... [typeN]Mud.randomSocial( [type1,] [type2,] ... [typeN]The Char social() method and the Mud.randomSocial() methods work in a similar fashion. Both methods take a list of social types which can be optionally preceded by the "+" or "-" operator in the same fashion that the "socials types" and "social" trigger command can. For example:
// perform any of Arcane Ages's socials at random self.social(); // perform a random sleepy social self.social( 'sleepy' ); // show affectioniate adoration to the actor... self.social( actor, '+ador', '+affection' ); // gossip a random frustration (but not impolite) social self.act( "gossip", '%' + Mud.randomSocial( 'frustration', '-impolite' ) );
Note that if you use the Char.social() with a target option, only those socials which are targetable will be selected. You do not need to manually pass in a '+targetable' option.