Hyperlink Combat System

version 1 by Philip Black

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter: Required Ammo
    If you would like to make a weapon require a spesific kind of ammo that the player has to collect, you will need to script it for each item, like so:
        45Cal Bullets is a number that varies. 45Cal Bullets is 6.
        Instead of the player Reloading a Revolver:
            If the current shots of noun is the maximum shots of the noun:
                Say "You don't need to reload [the noun]";
                reject the player's command;
            Otherwise if 45Cal Bullets is 0:
                Say "You don't have any more ammo!";
                reject the player's command;
            Otherwise:
                Increase 45Cal Bullets by the current shots of noun;
                Now the current shots of noun is 0;
                If 45Cal Bullets is at least the maximum shots of the noun:
                    Say "You fully reload [the noun] with [maximum shots of the noun] round[s] of ammo.";
                    now the current shots of the noun is the maximum shots of the noun;
                    Decrease 45Cal Bullets by the maximum shots of the noun;
                    reject the player's command;
                Otherwise:
                    Say "You run out of ammo reloading [the noun] with [45Cal Bullets] round[s].";
                    now the current shots of the noun is 45Cal Bullets;
                    Now 45Cal Bullets is 0;
                    reject the player's command;