| ### Las Reliquias de Tolti Aph ### An interactive fiction by Graham Nelson (2005) - the Inform 7 source text
Home page Contents Previous Next Complete text | Section 3(d) - Preparación del combate To decide whether combat proceeds: if a hostile alive monster (called the baddie) is in the location, decide yes; decide no. Before reading a command: if combat proceeds, change the command prompt to "Combate> "; otherwise change the command prompt to "> ". After waiting when combat proceeds: stop the action. Check going (this is the need a saving roll to retreat rule): if combat proceeds begin; if a saving roll of 11 by the player to "escabullirte de la lucha" is made, continue the action; say "Asi que no puedes irte." instead; end if. Check casting (this is the can't cast non-combat spells in combat rule): let the warlike nature be the nature of the spell understood; if the warlike nature is defensivo, let the warlike nature be ofensivo; if combat proceeds and the warlike nature is not ofensivo begin; say "La naturaleza de ese hechizo es [nature of the spell understood]: a diferencia de los hechizos ofensivos y defensivos; creados para usar en combates, los hechizos [nature of the spell understood] necesitan de un ambiente pacífico y en calma para poder usarse." instead; end if. A person can be surprised or ready. A person is usually ready. Instead of attacking a monster: if the noun is hostile, say "Ya estás trabado en combate con [the noun]." instead; now the noun is hostile; now the noun is surprised; now the player is ready; say "¡Realizas un ataque sorpresa [al noun]!" instead. To mount an attack from (bad guy - a monster): now the bad guy is hostile; now the bad guy is ready; now the player is surprised; say "¡[The bad guy] ataca!" Every turn when a hostile monster is in the location: if the player is ready, make the player strike a blow against the scariest hostile monster in the location;[1] repeat with the opponent running through hostile monsters in the location begin; if the player is killed, stop; if the opponent is ready begin; if Zoorl is in the location, make the opponent strike a blow against Zoorl; otherwise make the opponent strike a blow against the player; end if; end repeat; now the player is ready; now all hostile monsters are ready. Note [1]. Recuerda que "scary" (que da miedo) fue definido en 3(a) más arriva: "scariest" automáticamente adquiere el significado de "el que da más miedo".