Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new verbs and new syntax for existing ones #27

Open
heasm66 opened this issue Aug 18, 2022 · 0 comments
Open

Add new verbs and new syntax for existing ones #27

heasm66 opened this issue Aug 18, 2022 · 0 comments

Comments

@heasm66
Copy link

heasm66 commented Aug 18, 2022

    Verb 'tighten' 'tweak' 'unwind' 'wind' 'wrench'
        * noun                                              -> Turn
        * noun 'with' noun                                  -> TurnWith;

    Verb 'board' 'embark'
        * noun                                              -> Enter;

    Verb 'hang' 'mount'
        * noun 'on' noun                                    -> Insert
        * noun 'onto' noun                                  -> Insert
        * 'up' noun 'on' noun                               -> Insert
        * 'up' noun 'onto' noun                             -> Insert
        * noun 'up' 'on' noun                               -> Insert
        * noun 'up' 'onto' noun                             -> Insert;

    Verb 'kick'
        * noun                                              -> Attack;

    Extend 'dig' first
        *                                                   -> Dig;

    Extend 'dig' last
        * special                                           -> Dig;
        
    Extend 'drink' first
        *                                                   -> Drink;

   Extend 'attach' replace
        * noun                                              -> Repair
        * noun 'to' noun                                    -> Repair;

    Extend 'buy' first
        * special                                           -> Buy;

    Extend 'answer' first
        * 'lagach' 'to' noun                                -> Lagach;

    Extend 'answer' first
        *                                                   -> Shout;
        
    Extend 'attack' last
        * noun 'with' held                                  -> Kill;

    Extend 'turn' last
        * noun 'inside' 'out'                               -> Turn;

    Extend 'turn' last
        * noun 'around'                                     -> Turn;
        
    Extend 'turn' last
        * 'round' noun                                      -> Turn;

    Extend 'turn' last
        * noun 'to' topic                                   -> Consult;
        
    Extend 'lie' first
        *                                                   -> Lie;

    Extend 'lie' last
        * 'down' 'on' noun                                  -> Enter;

    Extend 'look' last
        * 'up' topic 'on' noun                              -> Consult;

    Extend 'look' last
        * 'up' topic                                        -> LookUp;

    Extend 'display' last
        * 'off'                                             -> Sing;

    Extend 'close' last
        * noun 'with' noun                                  -> CloseWith;

[ LieSub ;      
    "Whatever happened to truthfulness...";
];

[ ShoutSub ;    
    "Try ~help~ for details of how to speak to people.";
];

[ CloseWithSub ;      
    R_Process(##PutOn,second,noun);
    rtrue;
];

[ ConsultDefault o ;    
    if (Meldrewes_History in o) return Meldrewes_History;
    if (classical_dictionary in o) return classical_dictionary;
    if (ancient_prayer_book in o) return ancient_prayer_book;
    if (tourist_map in o) return tourist_map;
    return nothing;
];

[ LookUpSub o n ;       
    n = TryNumber(consult_from);
    if (n >= 0 && (tourist_map in player || tourist_map in location)) o = tourist_map;
    if (n >= 0 && (ancient_prayer_book in player || ancient_prayer_book in location)) o = ancient_prayer_book;
    if (o == nothing) o = ConsultDefault(player);
    if (o == nothing) o = ConsultDefault(location);
    if (o == nothing) "I can't see what you wish to consult.";
    print "(consulting ";
    Defart(o);
    print ")^";
    R_Process(##Consult,o);
    rtrue;
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant