Results 1 to 8 of 8

Thread: first attempt

  1. #1

    Default first attempt

    my first attempt at making a script so I made a little bundle script. But I was wondering if there's anyway I could make this script better. Please help


    #bundle.Cmd

    firststep:
    echo *** TO START SCRIPT TYPE .Bundle "<name of herb>" <Container> ***
    echo *** FOR EXAMPLE .BUNDLE "ACANTHA LEAF" BACKPACK ***
    ECHO *** WOULD BUNDLE THE ACANTHA LEAF ***
    ECHO *** AND PLACE IT INSIDE YOUR BACKPACK ***
    ECHO *** ***
    ECHO *** ***
    ECHO *** ***
    echo **** To start the script, type 'proceed' ***
    echo **** [type 'proceed' to continue the script] ***
    echo **** ***
    waitfor proceed

    secondstep:
    put get %1
    pause 1
    put glance
    match goahead in your right hand and nothing in your left hand
    match goahead in your left hand
    match alldone I could not find
    match oops You remove
    matchwait
    goahead:
    wait
    put get %1
    put bund %1
    match stop1 Maybe you should start a new bundle
    match oops You remove
    match alldone I could not find
    MATCH STOP2 You do not have anything to bundle!
    match goahead Carefully, you combine all your
    match full won't fit in the
    matchwait

    alldone:
    echo *********************************
    echo *** ***
    echo *** Choose another herb !! ***
    echo *** ***
    echo *********************************
    exit

    stop1:
    echo *********************************
    echo *** ***
    echo *** HERB FULL ***
    echo *** ***
    echo *********************************

    put put other %1 in my %2
    goto goahead

    STOP2:
    echo *********************************
    echo *** ***
    echo *** NO MORE HERB TO BUNDLE ***
    echo *** ***
    echo *********************************

    PUT PUT %1 IN MY %2
    EXIT

    oops:
    echo *********************************
    echo *** ***
    echo *** NO MORE HERB TO BUNDLE ***
    echo *** ***
    echo *********************************
    put put put other %1 in my %2
    exit


    full:
    echo *** Your %2 is all full! ***
    exit
    Is your life and movie, or a book?

  2. #2

    Default

    put put put other %1 in my %2
    Take a put out.


    For the transition from firststep to secondstep, I think you need to do a match rather than a waitfor. So, for example
    match secondstep proceed
    matchwait
    Space for rent, inquire within.

  3. #3

    Default

    Waitfor Proceed works. You *might* (I doubt it) need a goto secondstep.
    Razzle them. Dazzle them. Razzle dazzle them.

  4. #4

    Default

    Originally posted by Bobmuhthol
    Waitfor Proceed works. You *might* (I doubt it) need a goto secondstep.

    what do you mean waitfor proceed Bob can you elaborate please ?
    Is your life and movie, or a book?

  5. #5

    Default

    firststep:
    echo *** TO START SCRIPT TYPE .Bundle "<name of herb>" <Container> ***
    echo *** FOR EXAMPLE .BUNDLE "ACANTHA LEAF" BACKPACK ***
    ECHO *** WOULD BUNDLE THE ACANTHA LEAF ***
    ECHO *** AND PLACE IT INSIDE YOUR BACKPACK ***
    ECHO *** ***
    ECHO *** ***
    ECHO *** ***
    echo **** To start the script, type 'proceed' ***
    echo **** [type 'proceed' to continue the script] ***
    echo **** ***
    waitfor proceed
    Space for rent, inquire within.

  6. #6
    Join Date
    Sep 2003
    Location
    Philadelphia
    Posts
    6,539

    Default

    You shouldn't need the goto Secondstep. By default the script will jump to Secondstep as it is the next block of code because it was given nowhere else to go and there is no pausing command in the script there.
    Discord: anebriated

    Looking for old characters:
    Elrodin 100 Ranger
    Moider 100 bard

  7. #7

    Default

    oh that I want people to read and know how to use the script before they start it that's why the waitfor proceed is there
    Is your life and movie, or a book?

  8. #8

    Default

    An easier way to do it would be..

    IF_2 GOTO SECONDSTEP
    ELSE
    echo *** TO START SCRIPT TYPE .Bundle "<name of herb>" <Container> ***
    echo *** FOR EXAMPLE .BUNDLE "ACANTHA LEAF" BACKPACK ***
    ECHO *** WOULD BUNDLE THE ACANTHA LEAF ***
    ECHO *** AND PLACE IT INSIDE YOUR BACKPACK ***
    ECHO *** ***
    ECHO *** ***
    ECHO *** ***
    exit
    Razzle them. Dazzle them. Razzle dazzle them.

Similar Threads

  1. Shattered RP Event attempt anyone?
    By Drunken Durfin in forum Gemstone: Shattered
    Replies: 41
    Last Post: 06-17-2011, 03:31 PM
  2. Quit-smoking attempt, take #5
    By Jazuela in forum Social Forum
    Replies: 116
    Last Post: 09-19-2007, 07:33 PM
  3. Bad Attempt
    By Ismurii in forum Nuisances and Annoyances
    Replies: 16
    Last Post: 09-29-2005, 11:46 PM
  4. Bad Attempt
    By Ismurii in forum Nuisances and Annoyances
    Replies: 3
    Last Post: 09-28-2005, 11:26 PM
  5. Almost a nice attempt
    By Valindel in forum Role-Playing
    Replies: 27
    Last Post: 05-09-2005, 07:23 PM

Posting Permissions

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