Hyperlink Combat System

version 1 by Philip Black

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Reloading
    Reloading is an action applying to one carried thing.
    Understand "reload [held ranged weapon]" as reloading.
    Does the player mean reloading an unloaded readied ranged weapon enclosed by the player: it is very likely.
    Does the player mean reloading an unloaded ranged weapon enclosed by the player: it is likely.
    [Does the player mean reloading an unloaded weapon enclosed by the player: it is likely.]
    Check reloading when the maximum shots of the noun is 0 (this is the cannot reload weapons that use no ammo rule):
        say "[The noun] does not use ammunition." instead;
        
    Check reloading when the maximum shots of the noun is -1 (this is the cannot reload broken weapons rule):
        say "[The noun] is broken, it needs to be fixed before you can use it." instead;
        
    Check reloading when the current shots of the noun is the maximum shots of the noun (this is the cannot reload fully loaded weapons rule):
        say "[The noun] is already loaded." instead.
    Carry out an actor reloading a not readied weapon (this is the ready upon reloading rule):
        silently try readying the noun;
        
    [AmmoOut is a truth state that varies. AmmoOut is false.
    LowLoad is a number that varies.]
        
        
    [Carry out an actor reloading (this is the standard carry out reloading rule):
        If the actor is not the player:
            now the current shots of the noun is the maximum shots of the noun;]
        
    Carry out the player reloading a weapon (this is the player carry out reloading weapon rule):
        If CombatActive is true:
            If the global Attacker is the player:
                clear only the main screen;
                Say "[Paragraph break]";
                [Now the noun is a random readied weapon enclosed by the player;]
                now the current shots of the noun is the maximum shots of the noun;
                Now the global Attacker is the Reset Dummy;
                say "You reload [the noun] with [current shots of the noun] round[s] of ammo.[line break][line break]";
                [Say "[line break][line break]";]
                Continue Combat;
            Otherwise:
                Say "It's not your turn!";
        Otherwise:
            now the current shots of the noun is the maximum shots of the noun;
            say "You reload [the noun] with [current shots of the noun] round[s] of ammo.[line break][line break]";
        
        [
    Report an actor reloading (this is the standard report reloading rule):
        If the actor is the player:
            say "You reload [the noun] with [current shots of the noun] round[s] of ammo.";
        Otherwise:
            say "[The actor] reloads [the noun].";]
    To say MyWeapon:
        If the player encloses a readied weapon:
            say "[random readied weapon enclosed by the player]";
        Otherwise:
            say "[one of]fists[or]feet[at random]";