PDA

View Full Version : Sharing Bard Woodwind Instrument Script



FinisWolf
03-15-2004, 04:54 PM
A few things first...

1) I am NOT a script ninja, nor do I pretend to be, but this script works. So I don't want to hear how this can be better.

2) I wrote this to help my bard get better at his instrument, and thought I would be nice and share it.

3) I wrote this for e-scape

4) There are 2 variables in this script:: %Instrument, and %InstrumentConatainer, you need to set those

5) This script should be rather easy to convert to other instruments, if the need arises for you, by changing the endings to the songs, it will take a little bit of work.

6) I am just being kind and sharing this script for those that may find it useful.

7) If you have any questions, feel free to ask.

==============================

# Play your Instrument

# This script written by: Finiswolf

start:

echo *** *** *** *** *** ***
echo
echo Lets see if I can master?!?!
echo
echo *** *** *** *** *** ***

pause 1

echo *** *** *** *** *** ***
echo
echo This will play the songs in this order:
echo
echo aimless, fast, flamboyant, inspiring, intense,
echo jaunty, joyful, mournful, slow, soft, somber.
echo
echo *** *** *** *** *** ***

pause 1

echo *** *** *** *** *** ***
echo
echo Get %Instrument...
echo
echo *** *** *** *** *** ***

pause 1

put get my %Instrument from my %InstrumentConatainer
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument aimless...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument aimless
waitfor Ending on
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument fast...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument fast
waitfor You bring your lively song to a close and lower your %Instrument,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument flamboyant...
echo
echo *** *** *** *** *** ***

pause 1


pause 1

put play %Instrument flamboyant
waitfor In an elegant display of showmanship, you end your melody with a flourish,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument inspiring...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument inspiring
waitfor With a final, rousing crescendo, you bring your melody
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument intense
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument intense
waitfor With a soul-deep sigh you bring your music,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument jaunty...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument jaunty
waitfor With a wink and a grin, you trill your final notes, lowering your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument joyful...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument joyful
waitfor With a final, jubilant flourish, you finish your song and lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument mournful...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument mournful
waitfor Your haunting dirge winds to a gentle and melancholy close as you lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument slow...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument slow
waitfor As your last note fades away like a sigh on the wind, you lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument soft...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument soft
waitfor With quiet grace, you allow your %Instrument's melody to drop off,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument somber...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument somber
waitfor Your somber lament drops off softly,
pause 1

pause 1

echo *** *** *** *** *** ***
echo
echo End/GoTo Start...
echo
echo *** *** *** *** *** ***

pause 1

put play skill
pause 1

goto start

AnticorRifling
03-15-2004, 05:03 PM
I might take out some echos but I need to tweak it for my bagpipe playing dwarf.

FinisWolf
03-15-2004, 05:05 PM
Great, glad I could help.

Finiswolf

FinisWolf
03-15-2004, 05:13 PM
Bah, found an error while sharing this script with someone else.

in the script, it has %InstrumentConatainer

maywant to change that to the correct spelling of "Container"

Finiswolf

FinisWolf
03-15-2004, 05:20 PM
Bah!

Getting this error...

[variable "Instrument..." not defined.]

though it still gets the instrument out. I don't like errors, can anyone see why I am getting that error? If I find it, I will fix it, and re-post the script correctly.

Finiswolf

FinisWolf
03-15-2004, 05:33 PM
Well I found it, the Echo line in the code that reads::

echo Get %Instrument...

...was sending the command to get the instrument, damn quirks.
Anyway, in my script, I just commented that line out, and now I don't get the error.

I will repost with the appropriate corrections, right after this.

Finiswolf

FinisWolf
03-15-2004, 05:35 PM
Ok, here is the corrected version, no errors now, still has all the echos, etc etc.

FinisWolf

==============================================

# Play Your Instrument

# Script By:: Finiswolf

start:

echo *** *** *** *** *** ***
echo
echo Lets see if I can master?!?!
echo
echo *** *** *** *** *** ***

pause 1

echo *** *** *** *** *** ***
echo
echo This will play the songs in this order:
echo
echo aimless, fast, flamboyant, inspiring, intense,
echo jaunty, joyful, mournful, slow, soft, somber.
echo
echo *** *** *** *** *** ***

pause 1

echo *** *** *** *** *** ***
echo
#echo Get %Instrument...
echo
echo *** *** *** *** *** ***

pause 1

put get my %Instrument from my %InstrumentContainer
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument aimless...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument aimless
waitfor Ending on
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument fast...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument fast
waitfor You bring your lively song to a close and lower your %Instrument,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument flamboyant...
echo
echo *** *** *** *** *** ***

pause 1


pause 1

put play %Instrument flamboyant
waitfor In an elegant display of showmanship, you end your melody with a flourish,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument inspiring...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument inspiring
waitfor With a final, rousing crescendo, you bring your melody
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument intense
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument intense
waitfor With a soul-deep sigh you bring your music,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument jaunty...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument jaunty
waitfor With a wink and a grin, you trill your final notes, lowering your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument joyful...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument joyful
waitfor With a final, jubilant flourish, you finish your song and lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument mournful...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument mournful
waitfor Your haunting dirge winds to a gentle and melancholy close as you lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument slow...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument slow
waitfor As your last note fades away like a sigh on the wind, you lower your %Instrument.
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument soft...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument soft
waitfor With quiet grace, you allow your %Instrument's melody to drop off,
pause 1

echo *** *** *** *** *** ***
echo
echo Play %Instrument somber...
echo
echo *** *** *** *** *** ***

pause 1

put play %Instrument somber
waitfor Your somber lament drops off softly,
pause 1

pause 1

echo *** *** *** *** *** ***
echo
echo End/GoTo Start...
echo
echo *** *** *** *** *** ***

pause 1

put play skill
pause 1

goto start

IcyPoison
03-15-2004, 10:30 PM
Below is the script I've used to Adept.


Goto Play

Play:
Match Shift That isn't a valid style
Match Wait You
put Play %instrument% %1
Matchwait

Wait:
Pause 305
Goto Shift

Shift:
Shift
Goto IfCheck

IfCheck:
If_1 Goto Play
Goto Start


Start:
put .play joyful mournful soft fast slow intense jaunty flamboyant aimless somber inspiring
exit

Celexei
03-19-2004, 01:30 AM
nice script Finis, i'm gonna work on converting to my lute, its a necked stringed instrument, also i wanna see what someone does for bagpipes, i'm highly interested in that.

FinisWolf
03-19-2004, 07:22 PM
<-- Not a pro, but I write em to work, till I learn better.

Thank you Celexi.

Finiswolf