Code help in simulation

ok so i am making a game and there are 3 types of characters well i guess its more like a simulation.
bsicly each type can be converted to another.
on type it chases to convert it and the other it runs from to not be converted.

i know how to program the ai but its the conversion i am confused about.
is A.I can constantly change and i want to know if i can assert certen vareables to them to determine its type.

if anyone knows how to or a better way of going about this it would be helpful

i also need help making it so the amount of each dosent mater and it can still function thus alowing me to have a useful simulation, and i know i can use the clone command but im not sure how it works.