TTLG|Thief|Bioshock|System Shock|Deus Ex|Mobile
Results 1 to 7 of 7

Thread: ShockEd conversations

  1. #1
    SShock2.com
    Member

    Registered: Apr 2001
    Location: The land of ever sideways rain

    ShockEd conversations

    Again, sorry if this is obvious. I did the search.

    My issue is this: I'm attempting to do the simplest of conversations, frobbing an AI and allowing the player to choose from one of two options. I know, this is not how things are usually done in SS2, but they sometimes are in Thief, so there must be some overlap here that I can use. What I'm aiming for is to trigger a conversation with an AI where option A will trigger one event, and option B will trigger another. This isn't about text responses or voice files, just the basic mechanics. I'll figure out the rest later, or ask you again, when I get to that point. How can I frob an AI, get a text selection box, and click A or B? Any input is much appreciated. Thank you.

    [Edit]

    I doesn't actually have to be an AI. Just something that I can frob, and allow the player to choose A or B from some text box. I am trying to NOT do the career selection from Earth where you just walk into a door to choose, I'd prefer if it was something frobbable, but Earth style is my plan B.
    Last edited by Gray; 8th Oct 2021 at 17:05.
    Boing. Peng. Boom-Tschak. Peng.

    System Shock 2 Walkthrough

  2. #2
    Member
    Registered: Apr 2011
    Quote Originally Posted by Gray View Post
    I know, this is not how things are usually done in SS2, but they sometimes are in Thief, so there must be some overlap here that I can use.
    thats never how things are done in thief—thief has no scriptable ui at all!

    but shock has some. i am not very familiar with it and dont have a shocked setup to test this with, but if you use squirrel you should be able to do this:

    Code:
    class Prompter extends SqRootScript {
    function OnFrobWorldEnd() {
      ShockGame.YorN(self, “Is this a question?”);
    }
    function OnYorNDone() {
      if (message().yes) {
        // player chose Yes
      } else {
        // player chose No
      }
    }
    }
    apologies for typos and bad indentation, and any other errors, im typing this on my phone. take a look at the newdark squirrel docs, specifically API-reference_Services.txt and API-reference_Messages.txt for more details. there might also be other useful ui functions in the ShockGame service, so read the docs and experiment!

  3. #3

  4. #4
    ZylonBane
    Registered: Sep 2000
    Location: ZylonBane
    ShockGame.YorN() is only partially implemented. All it does is display a string on the screen with no UI.

    If you want onscreen buttons to click, you're going to have to use scripting to either implement a custom overlay, or fake an overlay by spawning button-like objects into the world.

  5. #5
    Member
    Registered: Apr 2011
    Quote Originally Posted by ZylonBane View Post
    ShockGame.YorN() is only partially implemented. All it does is display a string on the screen with no UI.
    oh damn. why am i not surprised? so yeah, if it has to be UI, then what ZB said: an overlay.

    but an overlay is a complicated scripting task. youre probably better off just using a pair of buttons or your two doors.

  6. #6
    Zombified
    Registered: Sep 2004
    one of those forgotten gamesys mods did a clickable selector wheel when starting on medsci if memory serves.

  7. #7
    Member
    Registered: Mar 2001
    Location: Ireland
    In today's episode of "There's an NVScript for that":

    If you were talking about Thief, I'd say that you might try NVDirectionalControl or NVConversation.

    For the latter, apply it to a marker, and add ScriptLink links to each object which represents a conversation option.
    When you activate NVConversation, it will allow you to pick from a list using movement controls. It will send TurnOn to the conversation option objects.
    Use the NVConversationOption parameter to each conversation-option-object to set the label on that option.


    It's already not a particularly nice UI in Thief, and I suspect that the way SS2's message log works will make it almost completely unusable there. Especially the constant beeping.
    Last edited by Nameless Voice; 21st Oct 2021 at 19:31.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •