diff --git a/story.ni b/story.ni index 1ba61b5..4b5d3ee 100644 --- a/story.ni +++ b/story.ni @@ -70,27 +70,49 @@ Displaying sheet is an action applying to nothing. Understand "sheet" as displa say "Your top three skills are: [line break][row 1 in Table of Extracted Skills][line break][row 2 in Table of Extracted Skills][line break][row 3 in Table of Extracted Skills]" A person has a number called strength. The strength of a person is usually 1. -A conveyance is a kind of value. A person has a conveyance. The conveyances are defined by the Table of Conveyances. The conveyance of a person is usually a backpack. +A conveyance is a kind of thing. A person has a conveyance. The conveyances are defined by the Table of Conveyance Definitions. The conveyance of a person is usually a backpack. -Table of Conveyances -Conveyance Bulk Limit Strength Requirement -a pfod 1 1 -your hands 2 1 -a backpack 4 2 -a greatpack 7 4 -a flightpack 9 5 -an izerah cart 40 10 -a myrghon wagon 200 1 -a wagon 200 35 -a flying wagon 200 2 -a grandwagon 400 55 -a grand flying wagon 600 5 +Table of Conveyance Definitions +Conveyance Bulk Limit Strength Requirement Blocks Flight +a pfod 10 1 False +your hands 20 1 False +a backpack 40 2 False +a greatpack 70 4 False +a flightpack 90 5 False +an izerah cart 400 10 True +a myrghon gearwagon 2000 1 True +a wagon 2000 35 True +a flying wagon 2000 2 False +a grandwagon 4000 55 True +a grand flying wagon 6000 5 False Instead of taking inventory: - let conveyance be the conveyance of the player; - say "You are using [conveyance] for carrying capacity. It has [the bulk limit corresponding to a conveyance of conveyance in the Table of Conveyances] units of carrying capacity."; + let currentconveyance be the conveyance of the player; + say "You are using [a currentconveyance] for carrying capacity. It has [the bulk limit of currentconveyance] units of carrying capacity.[Canyouflywiththis]"; say "Debug. Inventory not yet implemented."; +To say canyouflywiththis: + let conveyance be the conveyance of the player; + If the Blocks Flight of conveyance is False and the player is not kalla and the player is not vohntrai and the player is not myrghon and the player is not myrskor: + say " This is a flight-capable shipping method." + +A tangible is a kind of thing. A tangible has a number called the bulk. + +To decide which number is the load of (P - a person): + let result be 0; + repeat with T running through the list of tangibles held by P: + now result is result plus the bulk of T; + Decide on result. + +Check taking a tangible: + Let X be a tangible; + Let X be the noun; + let C be the conveyance of the player; + Let B be the bulk of X; + If the load of the player plus B is greater than the carrying capacity of C: + say "You're carrying too much stuff already. You'll have to drop something or get a bigger conveyance."; + Stop the action. + Displaying skillbook is an action applying to nothing. Understand "skillbook" as displaying skillbook. Instead of displaying skillbook: tabulate the skills of the player; repeat through Table of Extracted Skills: