16 lines
437 B
Plaintext
16 lines
437 B
Plaintext
void main()
|
|
{
|
|
int oDice;
|
|
int oCreature;
|
|
oDice = d6();
|
|
|
|
if (oDice==1)oCreature = APPEARANCE_TYPE_DRAGON_BLUE;
|
|
if (oDice==2)oCreature = APPEARANCE_TYPE_DRAGON_BRASS;
|
|
if (oDice==3)oCreature = APPEARANCE_TYPE_DRAGON_BLACK;
|
|
if (oDice==4)oCreature = APPEARANCE_TYPE_DRAGON_BRONZE;
|
|
if (oDice==5)oCreature = APPEARANCE_TYPE_DRAGON_BLACK;
|
|
if (oDice==6)oCreature = APPEARANCE_TYPE_DRAGON_RED;
|
|
|
|
SetCreatureAppearanceType(OBJECT_SELF, oCreature);
|
|
}
|