I understand that, I thought that you thought this was in a Mir section instead of Tech Support.
With MonsterObject and PlayerObject (Your response looked very Mir related, when this thread isn't).
What it has to do with Mir?
Do you think objects / class inheritance exists only on mir?
He can simply do a method inside player of rolling the key
if ((Random.Next(1,10) => 5)
{
MonsterObject.BossSpawn();
}
i understood what you was saying. so i don't know if you meant it like this but this is how i spaghettied it to work
shop code.
else if (item == "unlock")
p.bosskey++;
Encounters.BossEncounter();
in to
public static void BossEncounter()
{
switch (rand.Next(0, 3))
{
case 0:
BossChat();
break;
case 1:
BossChat();
break;
}
which then starts
public static void BossChat()
{
Program.Print("As you enter the grand hall you notice a shadow growing larger in the depths of the tomb as the door slams shut behind you ");
Program.Print("A Howling Scream is unleashed 'THIS IS MY BIRTH RIGHT' as the shadow dashes foward you quickly raise your weapon to block the attack.");
Program.Print("'You all thought i was dead. i been waiting hinding plotting my return when the power is needed the most and none of you shall stop me' screamed Dr Holt");
Console.WriteLine("");
Console.ReadKey();
BossCombat(false, "", 0,0);
which finally calls in my boss fight.
cheers zed even if it wasn't what you was saying to do it still helped me get it working