+ Reply to Thread
Results 1 to 6 of 6

Thread: exp2 strings using star trek

  1. #1
    Wire Sofaking LimEJET's Avatar
    Join Date
    Nov 2007
    Location
    Sweden
    Posts
    936

    Question exp2 strings using star trek

    Awwright, so some months ago a guy at a forum I'm part of asked how to make a star trek-y ship computer expression that acts when spoken to.
    I said to him that this could be done without expressions, but then exp2 came around.

    After reading three-quarters of the expression 2 article on the wiki, I got a headache. Naturally.
    So, my wondering:
    Is it possible to make an expression that responds in chat and carries out actions?

    Possible scenario (spacebuild)
    LimEJET: Computer?
    Computer: Yes, commander?
    LimEJET: Are there any bogeys in range?
    *Computer scan in progress*
    Computer: No, commander.

    That would probably work like this:
    Check for wording.
    If word "computer", check UserID.
    Is userID on whitelist?
    If yes, respond [random(1,3) where each is a different answer on the same theme]
    If word "enemies","bogeys"etc, and "range", check with target finder if there is entities belonging to opposing team.
    If yes, respond[random(4,6) because there should probably be a list of strings]
    If no, respond[random(7,9)]

    All the computers message could be in chat/team chat.
    Is this doable? If so, how?

    Another nifty function is to be able to type your name in on a wire keyboard and have the expression add that name to the whitelist.

    As I said, is there any way to do this? I would benefit greatly from it, as there's probably a lot of functions that gets explained when looking at the code.

    Thank you beforehand for any help.

  2. #2
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: exp2 strings using star trek

    Yes, this is possible, people have made commandlines and smaller OSes using E2.

  3. #3
    Wirererer Eirath245's Avatar
    Join Date
    Feb 2008
    Location
    England
    Posts
    208

    Default Re: exp2 strings using star trek

    I think he means something that will actually respond in chat. If so, a simple function should make you able to do this

    In fact, I'm going to go (try and) code one now

  4. #4
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: exp2 strings using star trek

    Quote Originally Posted by Eirath245 View Post
    I think he means something that will actually respond in chat. If so, a simple function should make you able to do this

    In fact, I'm going to go (try and) code one now
    There are already external components that can intercept chat messages.
    That's what I was referring to.

  5. #5
    Lifetime Supporter shadowkeeper's Avatar
    Join Date
    Jul 2007
    Location
    Heffen, Belgium
    Posts
    478

    Default Re: exp2 strings using star trek

    and responding is a simple call to concmd
    I am nowhere, yet I am everywhere, I am the eyes that don't see but see all, I am therefore I live


  6. #6
    Wirererer Eirath245's Avatar
    Join Date
    Feb 2008
    Location
    England
    Posts
    208

    Default Re: exp2 strings using star trek

    Meh, I made a chatMsg() function just for the practice and the lulz xD

+ Reply to Thread

Similar Threads

  1. Holo radar (bit like the ones in star wars) =D how do i make one?
    By Andyj in forum Installation and Malfunctions Support
    Replies: 9
    Last Post: 03-02-2009, 02:22 PM
  2. Where I have a mistake? [Exp2]
    By Klask in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 02-21-2009, 05:58 PM
  3. need some help with EXP2
    By KustoM in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 12-10-2008, 07:19 PM
  4. Wirelinks in exp2
    By Hitman271 in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 11-23-2008, 11:11 AM
  5. Wire Mod Drone (Star Wars Anyone?)
    By wickedartist in forum Ideas & Suggestions
    Replies: 6
    Last Post: 10-29-2008, 05:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots