dantedevil
Well-known member
I make some test with this script, but I do not understand how to prevent it from using the hidden palettes. It seems, that the script needs an update.
I think it would be very useful, put together the best of these two script:
The idea is to create a random alternate palette script, where you can specify which palette will you use.
Te same like this script, but instead of names, palettes:
He tried to do it on my own, but I did not succeed ...
Code:
void randomPal ()
{
// Change the entity palette to a random palette
// Douglas Baldan - 10/22/2016
void self = getlocalvar("self"); //Get calling entity.
int Pal = rand()%5;// 5 is the palette count. Chance this number to match the number of palettes your entity has
if (Pal <0){ // if the random value is negative
Pal*-1;// make it positive
}
changeentityproperty(self, "map", Pal); //
}
I think it would be very useful, put together the best of these two script:
Code:
void changepal(int Pal)
{// change the current pallete
void self = getlocalvar("self"); //Get calling entity.
changeentityproperty(self, "map", Pal);
}
The idea is to create a random alternate palette script, where you can specify which palette will you use.
Te same like this script, but instead of names, palettes:
Code:
@end_script
loop 0
@script
int i = rand()%28;
void s = "";
void self = getlocalvar("self");
if (i < 0 )
{i= -i;}
if(i==0){s = "AKio";} else
if(i==1){s = "Daiki";} else
if(i==2){s = "Eiji";} else
if(i==3){s = "Fumio";} else
if(i==4){s = "Gorou";} else
if(i==5){s = "Haru";} else
if(i==6){s = "Isamu";} else
if(i==7){s = "Juro";} else
if(i==8){s = "Katsuo";} else
if(i==9){s = "Manabu";} else
if(i==10){s = "Nobu";} else
if(i==11){s = "Osamu";} else
if(i==12){s = "Rokuro";} else
if(i==13){s = "Satoru";} else
if(i==14){s = "Takao";} else
if(i==15){s = "Yasuo";} else
if(i==16){s = "Arata";} else
if(i==17){s = "Hotaka";} else
if(i==18){s = "Izanagi";} else
if(i==19){s = "Junichi";} else
if(i==20){s = "Kazuhiko";} else
if(i==21){s = "Madoka";} else
if(i==22){s = "Noboru";} else
if(i==23){s = "Orochi";} else
if(i==24){s = "Ryota";} else
if(i==25){s = "Sadao";} else
if(i==26){s = "Takehiko";} else
if(i==27){s = "Yoshinori";} else
if(i==28){s = "Yuudai";}
changeentityproperty(self, "name", s);
@end_script
He tried to do it on my own, but I did not succeed ...
Last edited: