Results 1 to 6 of 6

Thread: I input, I say

  1. #1

    Default I input, I say

    Ok am on a roll. Someone is looking at this next query for me from a stormfront perspective.

    What would a basic Lich script look like where I input a word and get a verbal response. Ok, a good example of this would be regarding herbs. Lets assume I wanted to input the name of a herb and 'say' something about the herb. How would that work? It the list of things I might want too convey is long, would an xml document be needed? Yeah I know. Coding 101 right? heh. But i'm genuinely interested to know.


    A very rough Stormfront example of this might be:


    Start:

    match Ephlox
    matchwait

    Ephlox:
    put say This ephlox moss can cure your bleeding limb wounds and is located blah bla blah
    goto start
    Bremerial God'thor
    ______________________________________

    Valinda accepts Aneris's embalmed puppy.
    Valinda blinks.
    Valinda frowns at an embalmed puppy.
    Aneris accepts Valinda's puppy pelt pantaloons.
    Speaking to Valinda, Aneris says, "Thanks again.... I'll be back with more dead puppies if I happen tah find yah around."
    Valinda says, "Nooo."
    Valinda exclaims, "Ive filled my dead puppy quota, sorry!"

  2. #2

    Default

    Code:
    while line = get
    	if line =~ /Ephlox/i
    		put "say This ephlox moss can cure your bleeding limb wounds and is located blah bla blah"
    	elsif line =~ /acantha leaf/i
    		put "say This leaf does stuff as well."
    	end
    end

  3. #3

    Default

    yeay
    thanks
    Bremerial God'thor
    ______________________________________

    Valinda accepts Aneris's embalmed puppy.
    Valinda blinks.
    Valinda frowns at an embalmed puppy.
    Aneris accepts Valinda's puppy pelt pantaloons.
    Speaking to Valinda, Aneris says, "Thanks again.... I'll be back with more dead puppies if I happen tah find yah around."
    Valinda says, "Nooo."
    Valinda exclaims, "Ive filled my dead puppy quota, sorry!"

  4. #4

    Default

    Keep in mind this is going to have you saying the bit about ephlox anytime the game sees the word ephlox so I dunno how you're planning on using this script but if you plan on having it running all the time or something and you only want it to go off at certain times you may want to make the trigger something more precise

  5. Default

    Maybe you could set an echo line that enters the game command, but doesn't have it go into chat. Like how you can ;chat to yourself on Lich, and it comes up twice, but this only echoes into the game window as an unknown command? Just a thought.

  6. #6

    Default

    Yeah I did think about that.
    I remember creating a stormfront script that triggered ewave. In that case I used what I thought was an obscure English phrase. Figured I was safe as it wasn't one US folk would use. Alas I had the script running in the background when I entered town and the script picked up that phrase that someone actually said. Five minutes in a cell and a hefty fine!

    Will look to either exit the script after specific use or employ some other suggested method of achieving the same thing - as suggested perhaps.
    Bremerial God'thor
    ______________________________________

    Valinda accepts Aneris's embalmed puppy.
    Valinda blinks.
    Valinda frowns at an embalmed puppy.
    Aneris accepts Valinda's puppy pelt pantaloons.
    Speaking to Valinda, Aneris says, "Thanks again.... I'll be back with more dead puppies if I happen tah find yah around."
    Valinda says, "Nooo."
    Valinda exclaims, "Ive filled my dead puppy quota, sorry!"

Similar Threads

  1. Returnee looking for a bit of input
    By MisplacdTxn in forum Paladin
    Replies: 4
    Last Post: 04-08-2019, 02:49 AM
  2. Need input.
    By Cap'nDrak in forum Wizard
    Replies: 3
    Last Post: 06-01-2016, 02:49 PM
  3. Nerfed.GG, some input please
    By SpiffyJr in forum Other Games
    Replies: 42
    Last Post: 07-07-2014, 11:12 AM
  4. Input objects
    By Suhami in forum The Lich Project
    Replies: 1
    Last Post: 12-22-2012, 01:57 AM
  5. Need input for next fixskills
    By wizgem3 in forum Cleric
    Replies: 1
    Last Post: 05-10-2010, 11:24 AM

Posting Permissions

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