Collect (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
==Description==
==Description==


This script trains [[Vocals skill|vocals]] by {{com|HUM|humming}} and trains [[Foraging skill|foraging]] and [[Perception skill|perception]] by using the {{com|COLLECT}} verb. It will run until you are mind locked in perception (the slower of the two skills).<br>
This script trains [[Performance skill|performance]] by playing a percussion instrument and trains [[Outdoorsmanship skill|outdoorsmanship]] and [[Perception skill|perception]] by using the {{com|COLLECT}} verb. It will run until you are mind locked in perception (the slower of the two skills).<br>
<br>
<br>
The script cleans up after itself by {{com|KICK|kicking}} each pile that you collect. If the room has too many piles to continue collecting, it will kick every pile in the room.
The script cleans up after itself by {{com|KICK|kicking}} each pile that you collect. If the room has too many piles to continue collecting, it will kick every pile in the room.
Line 19: Line 19:
===Required Genie Settings===
===Required Genie Settings===


The script hums. You need to open your character's variables file and define variables for cambrinth and hum. For example:
You need to open your character's variables file and define variables for your percussion instrument and song. For example:


<pre>#var {hum} {aria}</pre>
<pre>#var {percussioninst} {zills}
#var {percussionsong} {psalm}</pre>


I also recommend adding my humming triggers:
I also recommend adding my performance trigger:


<pre>#trigger {^You finish humming} {#send hum $hum}
<pre>#trigger {^You finish playing} {#send play $percussionsong on my $percussioninst}
#trigger {^You should stop playing before you do that} {#send stop hum;#send 1 $lastcommand}</pre>
#trigger {^You should stop playing before you do that|^You are a bit too busy performing to do that} {#send stop play;#send 1 $lastcommand}</pre>


==Changelog==
==Changelog==


*'''2/6/2013''': Updated for Skills 3.0.
*'''8/25/2011''': Added an extra pause to reduce hang-ups.
*'''8/25/2011''': Added an extra pause to reduce hang-ups.


==Collect (With Percussions)==
==Script==


<pre>put #class arrive on
<pre>put #class arrive on
put #class rp on
put #class rp on
put #class combat off
put #class combat off
action goto exit when ^You are certain you could find what you were looking for, if you had a bit more luck|^You are sure you knew what you were looking for when you started to forage|^You forage around but are unable to find anything|^You wander around and poke your fingers into a few places, wondering what you might find
setvariable COLLECT torn.cloth
setvariable COLLECT torn.cloth
if_1 setvariable COLLECT %1
if_1 setvariable COLLECT %1


send hum $hum
send stop play
waitforre ^You .+ hum|^You are already performing something
waitforre ^You stop|^In the name
send get my $percussioninst from my $pack
waitforre ^You get|^You are already holding|^What were you referring to
send play $percussionsong on my $percussioninst
waitforre ^You begin|^You struggle|^You fumble|^You're already playing a song

send stand
waitforre ^You stand|^You are already standing

collect:
send collect %COLLECT
match junk The room is too cluttered to find anything here
matchwait 1
send kick pile
waitforre Assuming you mean a pile|^I could not find what you were referring to|^\.\.\.wait
pause .5

perception.check:
if $Outdoorsmanship.LearningRate > 33 && $Perception.LearningRate > 33 then
goto endclean
else
goto tend

tend:
if $bleeding = 1 then
{
put .tend
waitfor SCRIPT DONE
send play $percussionsong on my $percussioninst
waitforre ^You begin|^You struggle|^You fumble|^You're already playing a song
}
goto collect

junk:
send stand
waitforre ^You stand|^You are already standing
send kick pile
matchre collect I could not find what you were referring to
matchre junk Assuming you mean a pile
matchwait 1
goto junk

endclean:
send kick pile
matchre endperception I could not find what you were referring to
matchre endclean Assuming you mean a pile
matchwait 1

endperception:
send echo YOU ARE MIND LOCKED IN OUTDOORSMANSHIP AND PERCEPTION.
put #play MindLocked

exit:
send .idlep</pre>

==Collect (No Performance)==

<pre>put #class arrive on
put #class rp on
put #class combat off
action goto exit when ^You are certain you could find what you were looking for, if you had a bit more luck|^You are sure you knew what you were looking for when you started to forage|^You forage around but are unable to find anything|^You wander around and poke your fingers into a few places, wondering what you might find
setvariable COLLECT torn.cloth
if_1 setvariable COLLECT %1

send stop play
waitforre ^You stop|^In the name


send stand
send stand
Line 55: Line 123:


perception.check:
perception.check:
if $Perception.LearningRate > 33 then
if $Outdoorsmanship.LearningRate > 33 && $Perception.LearningRate > 33 then
goto endclean
goto endclean
else
else
Line 76: Line 144:


endperception:
endperception:
send echo YOU ARE MIND LOCKED IN PERCEPTION.</pre>
send echo YOU ARE MIND LOCKED IN OUTDOORSMANSHIP AND PERCEPTION.
put #play MindLocked

exit:</pre>

Revision as of 17:24, 6 March 2013

Collect (script)
Category training
Front-end Genie
Author Isharon


Description

This script trains performance by playing a percussion instrument and trains outdoorsmanship and perception by using the COLLECT verb. It will run until you are mind locked in perception (the slower of the two skills).

The script cleans up after itself by KICKING each pile that you collect. If the room has too many piles to continue collecting, it will kick every pile in the room.

Instructions

Syntax

.COLLECT [ITEM]: If you just type .COLLECT with no item, the script will collect piles of torn cloth, which works in most indoor locations. If you want to collect something else, add an item. For example, if you are outdoors, try .COLLECT ROCK.

Required Genie Settings

You need to open your character's variables file and define variables for your percussion instrument and song. For example:

#var {percussioninst} {zills}
#var {percussionsong} {psalm}

I also recommend adding my performance trigger:

#trigger {^You finish playing} {#send play $percussionsong on my $percussioninst}
#trigger {^You should stop playing before you do that|^You are a bit too busy performing to do that} {#send stop play;#send 1 $lastcommand}

Changelog

  • 2/6/2013: Updated for Skills 3.0.
  • 8/25/2011: Added an extra pause to reduce hang-ups.

Collect (With Percussions)

put #class arrive on
put #class rp on
put #class combat off
action goto exit when ^You are certain you could find what you were looking for, if you had a bit more luck|^You are sure you knew what you were looking for when you started to forage|^You forage around but are unable to find anything|^You wander around and poke your fingers into a few places, wondering what you might find
setvariable COLLECT torn.cloth
if_1 setvariable COLLECT %1

send stop play
waitforre ^You stop|^In the name
send get my $percussioninst from my $pack
waitforre ^You get|^You are already holding|^What were you referring to
send play $percussionsong on my $percussioninst
waitforre ^You begin|^You struggle|^You fumble|^You're already playing a song

send stand
waitforre ^You stand|^You are already standing

collect:
send collect %COLLECT
match junk The room is too cluttered to find anything here
matchwait 1
send kick pile
waitforre Assuming you mean a pile|^I could not find what you were referring to|^\.\.\.wait
pause .5

perception.check:
if $Outdoorsmanship.LearningRate > 33 && $Perception.LearningRate > 33 then
goto endclean
else
goto tend

tend:
if $bleeding = 1 then
{
put .tend
waitfor SCRIPT DONE
send play $percussionsong on my $percussioninst
waitforre ^You begin|^You struggle|^You fumble|^You're already playing a song
}
goto collect

junk:
send stand
waitforre ^You stand|^You are already standing
send kick pile
matchre collect I could not find what you were referring to
matchre junk Assuming you mean a pile
matchwait 1
goto junk

endclean:
send kick pile
matchre endperception I could not find what you were referring to
matchre endclean Assuming you mean a pile
matchwait 1

endperception:
send echo YOU ARE MIND LOCKED IN OUTDOORSMANSHIP AND PERCEPTION.
put #play MindLocked

exit:
send .idlep

Collect (No Performance)

put #class arrive on
put #class rp on
put #class combat off
action goto exit when ^You are certain you could find what you were looking for, if you had a bit more luck|^You are sure you knew what you were looking for when you started to forage|^You forage around but are unable to find anything|^You wander around and poke your fingers into a few places, wondering what you might find
setvariable COLLECT torn.cloth
if_1 setvariable COLLECT %1

send stop play
waitforre ^You stop|^In the name

send stand
waitforre ^You stand|^You are already standing

collect:
send collect %COLLECT
match junk The room is too cluttered to find anything here
matchwait 1
send kick pile
waitforre Assuming you mean a pile|^I could not find what you were referring to|^\.\.\.wait
pause

perception.check:
if $Outdoorsmanship.LearningRate > 33 && $Perception.LearningRate > 33 then
goto endclean
else
goto collect

junk:
send stand
waitforre ^You stand|^You are already standing
send kick pile
matchre collect I could not find what you were referring to
matchre junk Assuming you mean a pile
matchwait 1
goto junk

endclean:
send kick pile
matchre endperception I could not find what you were referring to
matchre endclean Assuming you mean a pile
matchwait 1

endperception:
send echo YOU ARE MIND LOCKED IN OUTDOORSMANSHIP AND PERCEPTION.
put #play MindLocked

exit: