Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From Standard Rules by Graham Nelson:
- Inserting it into is an action applying to two things.
- The inserting it into action translates into I6 as "Insert".
- The specification of the inserting it into action is "By this action, an actor puts
- something he is holding into a container: for instance, putting a coin into a
- collection box."
- Check an actor inserting something into (this is the convert insert to drop where
- possible rule):
- if the second noun is down or the actor is in the second noun,
- convert to the dropping action on the noun.
- Check an actor inserting something into (this is the can't insert what's not held rule):
- if the actor is carrying the noun, continue the action;
- if the actor is wearing the noun, continue the action;
- issue miscellaneous library message number 26 for the noun;
- silently try the actor taking the noun;
- if the actor is carrying the noun, continue the action;
- stop the action.
- Check an actor inserting something into (this is the can't insert something into itself rule):
- let the noun-CPC be the component parts core of the noun;
- let the second-CPC be the component parts core of the second noun;
- let the transfer ceiling be the common ancestor of the noun-CPC with the second-CPC;
- if the transfer ceiling is the noun-CPC,
- stop the action with library message inserting it into action number 5 for
- the noun.
- Check an actor inserting something into (this is the can't insert into closed containers rule):
- if the second noun is a closed container,
- stop the action with library message inserting it into action number 3 for
- the second noun.
- Check an actor inserting something into (this is the can't insert into what's not a
- container rule):
- if the second noun is not a container,
- stop the action with library message inserting it into action number 2 for
- the second noun.
- Check an actor inserting something into (this is the can't insert clothes being worn rule):
- if the actor is wearing the noun:
- issue library message inserting it into action number 6 for the noun;
- silently try the actor trying taking off the noun;
- if the actor is wearing the noun, stop the action;
- Check an actor inserting something into (this is the can't insert if this exceeds
- carrying capacity rule):
- if the second noun provides the property carrying capacity:
- if the number of things in the second noun is at least the carrying capacity
- of the second noun,
- stop the action with library message inserting it into action number 7 for the second noun;
- Carry out an actor inserting something into (this is the standard inserting rule):
- now the noun is in the second noun.
- Report an actor inserting something into (this is the concise report inserting rule):
- if the actor is the player and the I6 parser is running multiple actions,
- stop the action with library message inserting it into action number 8
- for the noun;
- otherwise continue the action.
- Report an actor inserting something into (this is the standard report inserting rule):
- if the actor is the player, issue library message inserting it into action
- number 9 for the noun;
- otherwise issue actor-based library message inserting it into action number 10 for the noun.
- From Language.i6t:
- Insert: switch (n) {
- 1: "You need to be holding ", (the) x1, " before you can put ", (itorthem) x1,
- " into something else.";
- 2: print_ret (Cthatorthose) x1, " can't contain things.";
- 3: print_ret (The) x1, " ", (isorare) x1, " closed.";
- 4: "You'll need to take ", (itorthem) x1, " off first.";
- 5: "You can't put something inside itself.";
- 6: print "(first taking ", (itorthem) x1, " off)^"; say__p = 0; return;
- 7: "There is no more room in ", (the) x1, ".";
- 8: "Done.";
- 9: "You put ", (the) x1, " into ", (the) second, ".";
- 10: print (The) actor, " puts ", (the) x1, " into ", (the) second, ".^";
- }
- ...
- [ ItorThem obj;
- if (obj == player) { print "yourself"; return; }
- if (obj has pluralname) { print "them"; return; }
- if (obj has animate) {
- if (obj has female) { print "her"; return; }
- else
- if (obj hasnt neuter) { print "him"; return; }
- }
- print "it";
- ];
Advertisement
Add Comment
Please, Sign In to add comment