That was it! That fixed it! Thank you very, very much! 










This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuint CallSuspect;
String FirstName[520];
String LastName[260];
struct People{
bool Active;
int Formality;
int Manners;
int Forgetfullness;
int Firstly;
int Middly;
int Lastly;
int Beard;
int Hair;
int PersonView;
int Race;
};
struct Placement{
int MumX;
int MumY;
bool Active;
int Dummy;
};
Placement Fools[5];
People Suspects[1000];
function MakePlacements(){
Fools[0].MumX = 120;
Fools[0].MumY = 120;
Fools[0].Active = true;
Fools[1].MumX = 140;
Fools[1].MumY = 120;
Fools[1].Active = true;
Fools[2].MumX = 160;
Fools[2].MumY = 120;
Fools[2].Active = true;
Fools[3].MumX = 180;
Fools[3].MumY = 120;
Fools[3].Active = true;
Fools[4].MumX = 200;
Fools[4].MumY = 120;
Fools[4].Active = true;
}
function MakeSuspects(){
int Countit = 999;
while (Countit >= 0){
int ViewCount = 0;
Suspects[Countit].Active = true;
Suspects[Countit].Formality = Random(2);
Suspects[Countit].Manners = Random(2);
Suspects[Countit].Forgetfullness = Random(2);
Suspects[Countit].Firstly = Random(519);
Suspects[Countit].Middly = Random(519);
Suspects[Countit].Lastly = Random(259);
Suspects[Countit].Beard = Random(1);
Suspects[Countit].Hair = Random(1);
if (Suspects[Countit].Beard == 0){
ViewCount += 7;
}
if (Suspects[Countit].Hair == 0){
ViewCount += 14;
}
Suspects[Countit].Race = Random(3);
if (Suspects[Countit].Race == 1){
ViewCount += 28;
}
else if (Suspects[Countit].Race == 2){
ViewCount += 56;
}
else if (Suspects[Countit].Race == 3){
ViewCount += 84;
}
Suspects[Countit].PersonView = (Random(6)+1) + ViewCount;
Countit --;
}
}
function RandomName(int Pack){
CallSuspect = Random(999);
Fools[Pack-1].Dummy = CallSuspect;
character[Pack].ChangeView(Suspects[Fools[Pack-1].Dummy].PersonView);
Display("Number is %d",Fools[0].Dummy);
Display("Number is %d",Fools[1].Dummy);
Display("Number is %d",Fools[2].Dummy);
Display("Number is %d",Fools[3].Dummy);
Display("Number is %d",Fools[4].Dummy);
}
function Talkie(int Pick){
if (Suspects[Fools[Pick-1].Dummy].Manners == 2){
character[Pick].Say("It's a pleasure to meet you.");
character[Pick].Say("My name is %s %s. %s", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly], FirstName[Suspects[Fools[Pick-1].Dummy].Middly].Truncate(1), LastName[Suspects[Fools[Pick-1].Dummy].Lastly]);
character[Pick].Say("My middle initial stands for %s", FirstName[Suspects[Fools[Pick-1].Dummy].Middly]);
}
else if (Suspects[Fools[Pick-1].Dummy].Manners == 1){
int Greet = Random(1);
character[Pick].Say("Hello.");
if (Greet == 0){
character[Pick].Say("I'm %s %s.", FirstName[Suspects[CallSuspect].Firstly], LastName[Suspects[CallSuspect].Lastly]);
}
else{
if (FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Length > 5){
character[Pick].Say("I'm %s %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Truncate((FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Length)/2), LastName[Suspects[Fools[Pick-1].Dummy].Lastly]);
character[Pick].Say("%s's short for %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Truncate((FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Length)/2), FirstName[Suspects[Fools[Pick-1].Dummy].Firstly]);
}
else {
character[Pick].Say("I'm %s %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly], LastName[Suspects[Fools[Pick-1].Dummy].Lastly]);
}
}
}
else{
int Greet = Random(1);
if (Greet == 0){
character[Pick].Say("I'm %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly]);
}
else{
if (FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Length > 5){
character[Pick].Say("I'm %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Truncate((FirstName[Suspects[Fools[Pick-1].Dummy].Firstly].Length)/2));
}
else{
character[Pick].Say("I'm %s.", FirstName[Suspects[Fools[Pick-1].Dummy].Firstly]);
}
}
}
if (Suspects[CallSuspect].Beard == 0){
character[Pick].Say("I have a beard.");
}
if (Suspects[CallSuspect].Hair == 0){
character[Pick].Say("I have hair.");
}
character[Pick].Walk(Fools[Pick-1].MumX, 140, eBlock, eAnywhere);
character[Pick].Walk(330, 140, eBlock, eAnywhere);
character[Pick].ChangeRoom(1, -10, 140);
RandomName(Pick);
character[Pick].Walk(Fools[Pick-1].MumX, 120, eBlock, eAnywhere);
}
// main global script file
bool Ready = false;
bool RoomLoc[];
export RoomLoc;
function MazeMake(){
RoomLoc = new bool[X_Axis * Y_Axis];
RoomLoc[X_Axis/Y_Axis] = true;
RoomCount --;
while (RoomCount > 0){
int RoomCall = Random((X_Axis * Y_Axis)-1);
if (RoomLoc[RoomCall] == false){
if (RoomCall - X_Axis > 0){
if (RoomLoc[RoomCall - X_Axis] == true){
RoomLoc[RoomCall] = true;
RoomCount --;
}
}
else if (RoomCall + X_Axis < ((X_Axis * Y_Axis) - 1) ){
if (RoomLoc[RoomCall + X_Axis] == true){
RoomLoc[RoomCall] = true;
RoomCount --;
}
}
else if (RoomCall % X_Axis != 0){
if (RoomLoc[RoomCall-1] == true){
RoomLoc[RoomCall] = true;
RoomCount --;
}
}
else if ((RoomCall + 1) % X_Axis != 0){
if (RoomLoc[RoomCall+1] == true){
RoomLoc[RoomCall] = true;
RoomCount --;
}
}
}
}
while (Ready == false){
int Startit = Random((X_Axis * Y_Axis)-1);
if (RoomLoc[Startit] == true){
StartingLocal = Startit;
Ready = true;
}
}
}
function Tinak_Attack(int monster, [color=#ff0]int monsterhp[/color], int hitpoints){
int ToHit = Random(19)+ cTinak.InventoryQuantity[iFourLeaf.ID];
if (ToHit <=0){
cTinak.Walk(175, 130, eBlock, eAnywhere);
cTinak.ChangeView(2);
cTinak.Animate(0, 3, eOnce, eBlock);
cTinak.SayBackground("Miss");
Status_Effects();
cTinak.ChangeView(1);
cTinak.Walk(100, 130, eBlock, eAnywhere);
cTinak.FaceLocation(300, 130, eBlock);
}
if ((ToHit > 0) & (ToHit <19)){
cTinak.Walk(175, 130, eBlock, eAnywhere);
cTinak.ChangeView(2);
cTinak.Animate(0, 3, eOnce, eBlock);
character[monster].SayBackground("Ouch!");
if (Destruction == false){
[color=#ff0]monsterhp[/color] -= Damage;
lblCash.Text = String.Format ("H:%d", BabyGullHP);
}
else if (Destruction == true){
[color=#ff0]monsterhp[/color] -= 10;
Destruction = false;
}
Status_Effects();
Weapons_Check();
cTinak.ChangeView(1);
cTinak.Walk(100, 130, eBlock, eAnywhere);
cTinak.FaceLocation(300, 130, eBlock);
}
if (ToHit >= 19){
cTinak.Walk(175, 130, eBlock, eAnywhere);
cTinak.ChangeView(2);
cTinak.Animate(0, 3, eOnce, eBlock);
character[monster].SayBackground("That one REALLY hurt!");
if (Destruction == false){
[color=#ff0] monsterhp[/color] -= Damage * Crit;
lblCash.Text = String.Format ("H:%d", BabyGullHP);
}
else if (Destruction == true){
[color=#ff0]monsterhp[/color] -= 10;
Destruction = false;
}
Status_Effects();
Weapons_Check();
cTinak.ChangeView(1);
cTinak.Walk(100, 130, eBlock, eAnywhere);
cTinak.FaceLocation(300, 130, eBlock);
}
if (Enemy_Bleed == true){
character[monster].Say("I'm BLEEDING!");
monsterhp -= 1;
}
if ([color=#ff0]monsterhp[/color]8-) <= 0){
character[monster].ChangeRoom(0);
[color=#ff0]monsterhp[/color] = hitpoints;
MoneyDrop();
Enemy_Bleed = false;
cTinak.Walk(315, 130, eBlock, eAnywhere);
}
else if ([color=#ff0]monsterhp[/color] > 0){
}
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.047 seconds with 14 queries.