Code: Select all
ACTOR MyTrooper: ZombieMan 666
{
health 20
int flies 30 // number of flies on his body when killed
str deaths[3] {"Game over man","Oh hell","I'm a dead man"}
}
Code: Select all
str undead="I am now undead";
int numflies=GetActorCustomProperty("flies");
printbold(s:GetActorCustomProperty("deaths[2]"));
SetActorCustomProperty("flies",numflies-1);
SetActorCustomProperty("deaths[1]",undead);
This would also make it possible to create generic actor action functions. ACS is already powerful enough to do this, I've done it, but not having to rely on TIDs and global variables to maintain custom monster properties would have made the scripts a lot cleaner and allow them to be reentrant without lot of complicated locking stuff.
How easy/hard would this be?