Yes, this is possible, people have made commandlines and smaller OSes using E2.
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.
Yes, this is possible, people have made commandlines and smaller OSes using E2.
Bookmarks