Seven Towers: UCC Reference

SCRIPT COMMANDS

setegg crit, dist

If the actor is an egg, changes the egg's activation criteria. Both parameters are integers; 'dist' indicates the distance at which the egg will fire, if applicable. 'crit' can take one of the following values:

ValueMeaning
0Egg is activated when the chunk is cached-in; 'dist' is ignored;
1When any party member comes within 'dist' tiles of the egg;
2When the avatar comes within 'dist' tiles of the egg;
3When the avatar comes within 'dist' tiles of the egg and then leaves the area;
4When the avatar steps on the egg; 'dist' is ignored;
5When any party member steps on the egg; 'dist' is ignored;
6When anything is placed on/near the egg or when something already on/near the egg is removed;
7The egg can be activated only through usecode or through 'button' eggs; 'dist' is ignored.

Related script commands