say

say(string message)
Makes your entity speak. Costs 1 TP.

Makes your entity say the sentence message.

This function costs 1 TP .

The length of the message is limited to 100 characters; anything beyond that is cut off. To keep the chatter down, there is a limit of 2 say() per turn: beyond that, say() still costs 1 TP but displays nothing and returns false.

Example: greeting your opponent:

say("Hello there, " + getName(getNearestEnemy()) + "!")
Fight.me.say("Hello there, " + Fight.getNearestEnemy().name + "!")
Fight.me.say(f"Hello there, {Fight.getNearestEnemy().name}!")
Parameters
See also