Beispiel #1
0
void zombie()

{
	int s;
	srand((unsigned)time(0));
	s=rand()%4+1;
	switch(s)
	{
	case 1:
		{
			printf("Oh no!You are bitten.You should probably leave now...\nThe zombie seems statified that his job well done and.....\n");
			_sleep(2000);
			printf("Now he's leaving.\n");
			_sleep(2000);
			_pick(uObj_zombie,-1);
			player.health=1;
			condition[Condi_Fakezombiebite]=0;
			break;
		}
	default:
		{
			printf("You alomst got bitten.Thankfully not,you need to go.Like,right now!\n");
			break;
		}
	}
	
}
Beispiel #2
0
void Pick(int *tokens)

{
	int i=1,whereabout;
	if(Pick_Semantic_Analyser(tokens,&i)==-1)
		return;
	for(whereabout=0;player.inventory[whereabout]!=o_n;whereabout++);
	switch(tokens[i])
	{
	case Obj_book:
		{
			_pick(Obj_book,whereabout);
			player.num_object++;
			printf("You have picked up the book.\n");
			step++;
			break;
		}
	case Obj_phone:
		{
			_pick(Obj_phone,whereabout);
			player.num_object++;
			printf("You have picked up the phone.\n");
			step++;
			break;
		}
	case Obj_body:
		{
			_pick(Obj_body,whereabout);
			player.num_object++;
			printf("You have picked up the body.\n");
			step++;
			break;
		}
	default:
		{
			printf("This object is either not here or not important.\n");
			break;
		}
	}
}
Beispiel #3
0
void old_man()

{
	printf("\"I see strength in you,son.Now I'm going to tell something very important.\"\n");
	_sleep(4000);
	printf("\"WuHan University of Technology is in great danger now.Only you can save WHUT now.There's a secret that had been passed in generations.My grandfather told me this,actually.\"\n");
	_sleep(5000);
	printf("\"Once upon a time,this was a land of freedom.the king was very kind and good.People lived here happily.Until one day,A evil wizard called \'Blah\' showed up in this land with his evil dragon pet \'Blahh\'.He killed the king and kidnapped the princess.\"\n");
	_sleep(7500);
	printf("\"And then he ruled the kingdom.It's was a dark time.People suffered.Until one day,a hero stood out.The sword made by his father he held,he slayed the dragon and then defeated Blah and save the princess.Then he renamed what's left of the kingdom\'WuHan University of Technology.\'\"\n");
	_sleep(75000);
	//This is where I left off.
	printf("\"As time passed the place became what we see today.It was said that the hero's spirit got into the sword after he died.And then weird things began to happen around the sword.In the end,people kept the sword in a secret location pertected by a group of people.Great evil has fallen today.You must find the sword.Find the man named F...\"\n");
	_sleep(75000);
	printf("\".......eh....\"\n(The wise-looking old man just dropped dead.You held him in your arm.And you realized that he had been losing a lot of blood.)\n");
	_pick(uObj_man,-1);
	_put(Obj_body,-1);
	condition[Condi_Oldman]=0;
}
Beispiel #4
0
void FaceParts::PickFaceParts(FaceDescriptor &inout_face, const Uint32 seed)
{
	Random rand(seed);

	_pick(rand, inout_face.species, NumSpecies());
	_pick(rand, inout_face.race, NumRaces(inout_face.species));
	_pick(rand, inout_face.gender, NumGenders(inout_face.species));

	const Uint32 selector = _make_selector(inout_face.species, inout_face.race, inout_face.gender);

	_pick(rand, inout_face.head, _count_parts(s_partdb->heads, selector));
	_pick(rand, inout_face.eyes, _count_parts(s_partdb->eyes, selector));
	_pick(rand, inout_face.nose, _count_parts(s_partdb->noses, selector));
	_pick(rand, inout_face.mouth, _count_parts(s_partdb->mouths, selector));
	_pick(rand, inout_face.hairstyle, _count_parts(s_partdb->hairstyles, selector));

	const bool has_accessories = (rand.Int32() & 1);
	_pick(rand, inout_face.accessories, _count_parts(s_partdb->accessories, selector));
	if (!has_accessories) {
		inout_face.accessories = 0;
	}

	_pick(rand, inout_face.clothes, _count_parts(s_partdb->clothes, selector));
	_pick(rand, inout_face.armour, _count_parts(s_partdb->armour, selector));
}