I have a setup where I set an AI number using spvar when I load a room. Then using for I=_ to _, I check the AI number and turn it into a string. Ex: SPVAR I,0 OUT AI R$="@AI"+STR$(AI) GOSUB R$ From there I just tell it how slimes act