Expanded the addToken description:
some common tokens: attack,maxhp,vision,speed,range
// also: age,work,entrench,sleep,vigor,spawn,soul,termite
// you can look in helpers/counters.xml for a complete list
// Example: ent.addToken("attack",1);
// it is case sensitive
> When a figure is taken, doesExist() returns false.
yeah it doesn't exist anymore
> I had a very strange bug where an entity i created and undimmed would become aloft for some reason.
Are you creating it from an aloft Location?
Quote:
I noticed the AI was recently updated, I wonder if it would be possible to choose which AI a script would use.
The scripts are using the same AI that the download client has. You want to be able to use the weaker Flash AI?
Quote:
Also I used to have problems where on a preset map my novice adventurer would always gain the same stat tokens. (adding a dimwitted manticore made the tokens more random). I dont know if this is still a problem with the new ai.
I'll fix this in the next patch.
> string player.getName();
The server doesn't actually have the player's name you can still display their name though by going:
string msg="{u,";
msg += player.getID();
msg += "}";
and sending msg to the client.
> bool ent.isType(string typeName);
this exists as isType(EnityType );
Let me know if you need any of the other functions and I'll add them.