Back to the Korax Forum Archives
RambOrc
Crimson Wizard
choice TheGhostCreek "Take me to the Ghost Creek." hidden
if (EnableGhostCreek and (Level.MapNumber() not 30))
{
say "That would be 50 gold. Are you ready to go?";
yesno continue terminate;
if (Player.HasInventory(Coin, 50))
{
Player.RemoveInventory(Coin, 50);
Player.TeleportToMap(30);
terminate;
}
else
jump SayNoGold;
}
How it may look like in our game:
choice none "Buy axe for 50 Coin"
{
if (Player.HasInventory(Coin, 50))
{
Player.RemoveInventory(Coin, 50);
Player.GiveInventory(WeaponFighterTimonsAxe);
}
else
jump SayNotEnoughCoin;
}
choice none "Buy hammer for 100 Coin"
{
if (Player.HasInventory(Coin, 100))
{
Player.GiveInventory(WeaponFighterHammerOfRetribution);
Player.RemoveInventory(Coin, 100);
}
else
jump SayNotEnoughCoin;
}
speech SayNotEnoughCoin
{
say "You don't seem to have enough coin, sorry.";
}
Firebrand
Crimson Wizard
Firebrand
Crimson Wizard
RambOrc