Locate *KS* (script): Difference between revisions
m (added 'has waned' to moon descriptions) |
m (added failed Shift notification and compatibility with pre-existing moonbeam) |
||
Line 11: | Line 11: | ||
:4. Locate |
:4. Locate |
||
:5. Shift Moonbeam (along with moving the moonbeam to the located individual) |
:5. Shift Moonbeam (along with moving the moonbeam to the located individual) |
||
If there is a pre-existing moonbeam present in the room then the script attempts to move the first one to the located individual rather than recasting Focus Moonbeam unnecessarily. |
|||
Script start examples: |
Script start examples: |
||
Line 33: | Line 35: | ||
# What is the name of your Moon Mage? |
# What is the name of your Moon Mage? |
||
setvariable MYNAME |
setvariable MYNAME InsertNameHere |
||
# The two variables below identify the cambrinth item you will utilize: |
# The two variables below identify the cambrinth item you will utilize: |
||
Line 51: | Line 53: | ||
# Clear Vision |
# Clear Vision |
||
setvariable CVMANA |
setvariable CVMANA 10 |
||
setvariable CVCAMB 10 |
setvariable CVCAMB 10 |
||
# Piercing Gaze |
# Piercing Gaze |
||
setvariable PGMANA |
setvariable PGMANA 10 |
||
setvariable PGCAMB 10 |
setvariable PGCAMB 10 |
||
# Focus Moonbeam |
# Focus Moonbeam |
||
setvariable FMMANA |
setvariable FMMANA 10 |
||
setvariable FMCAMB 10 |
setvariable FMCAMB 10 |
||
# Locate |
# Locate |
||
Line 80: | Line 82: | ||
echo |
echo |
||
pause 3 |
pause 3 |
||
goto |
goto CheckForMoonbeam |
||
CheckForMoonbeam: |
|||
put look |
|||
match Yavash2 red moonbeam |
|||
match Xibar2 blue moonbeam |
|||
match Katamba2 pool of black shadows |
|||
match Katamba2 pool of grey shadows |
|||
match CheckMoons Obvious paths |
|||
match CheckMoons Obvious exits |
|||
matchwait |
|||
CheckMoons: |
CheckMoons: |
||
Line 98: | Line 110: | ||
Xibar: |
Xibar: |
||
setvariable MOON Xibar |
setvariable MOON Xibar |
||
setvariable SKIPFM cast |
|||
goto Start%2 |
|||
Xibar2: |
|||
setvariable MOON Xibar |
|||
setvariable SKIPFM skip |
|||
goto Start%2 |
goto Start%2 |
||
Yavash: |
Yavash: |
||
setvariable MOON Yavash |
setvariable MOON Yavash |
||
setvariable SKIPFM cast |
|||
goto Start%2 |
|||
Yavash2: |
|||
setvariable MOON Yavash |
|||
setvariable SKIPFM skip |
|||
goto Start%2 |
goto Start%2 |
||
Katamba: |
Katamba: |
||
setvariable MOON Katamba |
setvariable MOON Katamba |
||
setvariable SKIPFM cast |
|||
goto Start%2 |
|||
Katamba2: |
|||
setvariable MOON Katamba |
|||
setvariable SKIPFM skip |
|||
goto Start%2 |
goto Start%2 |
||
Line 162: | Line 192: | ||
pause 1 |
pause 1 |
||
put power %MYNAME |
put power %MYNAME |
||
match |
match StartFM sense the Piercing Gaze spell |
||
match PGPrep Roundtime |
match PGPrep Roundtime |
||
match PGCheck ...wait |
match PGCheck ...wait |
||
Line 193: | Line 223: | ||
put cast |
put cast |
||
match PGCastwait ...wait |
match PGCastwait ...wait |
||
match |
match StartFM You gesture |
||
match PGUgh strain |
match PGUgh strain |
||
matchwait |
matchwait |
||
StartFM: |
StartFM: |
||
goto StartFM%SKIPFM |
|||
StartFMcast: |
|||
FMPrep: |
FMPrep: |
||
pause 1 |
pause 1 |
||
Line 228: | Line 261: | ||
matchwait |
matchwait |
||
StartFMskip: |
|||
StartLo: |
StartLo: |
||
StartLoc: |
StartLoc: |
||
Line 297: | Line 331: | ||
pause 2 |
pause 2 |
||
put gesture %MOON %1 |
put gesture %MOON %1 |
||
match MoonbeamReady sense your moonbeam move |
|||
match MoonbeamUnmoved but are unable to affect your moonbeam |
|||
matchwait |
|||
SMCastWait: |
SMCastWait: |
||
Line 378: | Line 414: | ||
pause 1 |
pause 1 |
||
put cast |
put cast |
||
pause 5 |
|||
goto End |
|||
MoonbeamUnmoved: |
|||
pause 2 |
|||
put wear my %CAMBDESC %CAMBITEM |
|||
pause 1 |
|||
echo |
|||
echo *********************************************** |
|||
echo ** %MOON moonbeam cannot be moved. %1 is too far away |
|||
echo *********************************************** |
|||
echo |
|||
pause 5 |
pause 5 |
||
goto End |
goto End |
||
Line 386: | Line 434: | ||
pause 1 |
pause 1 |
||
echo |
echo |
||
echo ************************************** |
echo *********************************************** |
||
echo ** %MOON moonbeam has been moved |
echo ** %MOON moonbeam has been successfully moved toward %1 |
||
echo ************************************** |
echo *********************************************** |
||
echo |
echo |
||
pause 5 |
pause 5 |
||
Line 394: | Line 442: | ||
End: |
End: |
||
</pre> |
</pre> |
Revision as of 19:07, 28 April 2019
Locate *KS* (script) | |
---|---|
Category | Moon Mage,Locate,Magic |
Front-end | StormFront |
Author | Kashna |
What This Script Does
Casts the following 5 spells, in order. Via variables at the top of the script you determine how much mana to prepare each spell for, as well as how much to charge your perferred cambrinth device. Using the %1 and %2 variables you determine who to locate, and which spell to start the sequence at (no spell declared means it goes through all five). The spells, in order, are:
- 1. Clear Vision
- 2. Piercing Gaze
- 3. Focus Moonbeam
- 4. Locate
- 5. Shift Moonbeam (along with moving the moonbeam to the located individual)
If there is a pre-existing moonbeam present in the room then the script attempts to move the first one to the located individual rather than recasting Focus Moonbeam unnecessarily.
Script start examples:
- .locate Kashna - runs all spells, locating Kashna, casting moonbeam and moving the moonbeam to his location
- .locate Kashna FM - skips CV and PG casts
- .locate Kashna locate - skips CV, PG, and FM casts
- .locate Kashna SM - only casts SM on the moonbeam belonging to the first moon shown via the Observe Moons verb
Using It For The First Time
This script makes fair use of variables.
Be sure to edit the first portion of the script to adjust the necessary variables. These include: (1) character name, (2) cambrinth item, (3) mana to prepare each spell at, (3) mana to charge your cambrinth for each spell. After initial setup these should remain constant until you've gained a significant amount of magic experience, at which point you will likely want to update the values.
Latest Update: 4-27-2019
- Added script to Elanthipedia.
- I still need to add other moon-conditions (right now, only "lurking" is included) so that it picks moons appropriately for the moonbeam. If you wish to use it before I correct things, simply delete that "observe moons" portion and make the MOON variable whichever one you prefer to use.
Locate (Script)
# What is the name of your Moon Mage? setvariable MYNAME InsertNameHere # The two variables below identify the cambrinth item you will utilize: # CAMBDESC is the description of the item # CAMBITEM is the item's name itself setvariable CAMBDESC cambrinth setvariable CAMBITEM armband # Remove the following line if you don't need to hold cambrinth. # There is another line at the bottom to wear it after all is completed as well. put remove my %CAMBDESC %CAMBITEM # Use the following set of variables to determine how much mana to prepare each spell for. # the CAMB version determines how much mana your cambrinth item is charged for. # Clear Vision setvariable CVMANA 10 setvariable CVCAMB 10 # Piercing Gaze setvariable PGMANA 10 setvariable PGCAMB 10 # Focus Moonbeam setvariable FMMANA 10 setvariable FMCAMB 10 # Locate setvariable LOCATEMANA 15 setvariable LOCATECAMB 5 # Shift Moonbeam setvariable SMMANA 15 setvariable SMCAMB 5 # END VARIABLE SETTINGS Script begins here: LocateNote: echo echo **************************** echo echo ** First Variable: Name of person to locate echo echo ** Second Variable: Spell to Start with echo ** Options: CV, PG, FM, Locate or SM echo echo **************************** echo pause 3 goto CheckForMoonbeam CheckForMoonbeam: put look match Yavash2 red moonbeam match Xibar2 blue moonbeam match Katamba2 pool of black shadows match Katamba2 pool of grey shadows match CheckMoons Obvious paths match CheckMoons Obvious exits matchwait CheckMoons: put obs moons match Xibar Xibar is a match Xibar Xibar lurking match Xibar Xibar has waned match Yavash Yavash is a match Yavash Yavash lurking match Yavash Yavash has waned match Katamba Katamba is a match Katamba katamba lurking match Katamba Katamba has waned match NoMoons Roundtime matchwait Xibar: setvariable MOON Xibar setvariable SKIPFM cast goto Start%2 Xibar2: setvariable MOON Xibar setvariable SKIPFM skip goto Start%2 Yavash: setvariable MOON Yavash setvariable SKIPFM cast goto Start%2 Yavash2: setvariable MOON Yavash setvariable SKIPFM skip goto Start%2 Katamba: setvariable MOON Katamba setvariable SKIPFM cast goto Start%2 Katamba2: setvariable MOON Katamba setvariable SKIPFM skip goto Start%2 NoMoons: pause 2 echo echo ************************* echo ** There are no moons available. echo ************************* echo pause 2 put .exp Start: StartCV: CVCheck: pause 1 put power %MYNAME match PGCheck sense the Clear Vision spell match CVPrep Roundtime match CVCheck ...wait matchwait CVPrep: pause 1 put prep cv %CVMANA match CVPrep ...wait match CVCharge you raise your arms matchwait CVCharge: pause 1 put charg my %CAMBDESC %CAMBITEM %CVCAMB match CVInvoke absorbs match CVUgh strain match CVCharge ...wait matchwait CVInvoke: put invoke my %CAMBDESC %CAMBITEM match CVCast Roundtime match CVInvoke ...wait matchwait CVCast: waitfor fully prepared to cast your CVCast2: put cast match CVCastwait ...wait match PGCheck You gesture match CVUgh strain matchwait StartPG: PGCheck: pause 1 put power %MYNAME match StartFM sense the Piercing Gaze spell match PGPrep Roundtime match PGCheck ...wait matchwait PGPrep: pause 1 put prep PG %PGMANA match PGPrep ...wait match PGCharge you raise your arms matchwait PGCharge: pause 1 put charg my %CAMBDESC %CAMBITEM %PGCAMB match PGInvoke absorbs match PGUgh strain match PGCharge ...wait matchwait PGInvoke: put invoke my %CAMBDESC %CAMBITEM match PGCast Roundtime match PGInvoke ...wait matchwait PGCast: waitfor fully prepared to cast your PGCast2: put cast match PGCastwait ...wait match StartFM You gesture match PGUgh strain matchwait StartFM: goto StartFM%SKIPFM StartFMcast: FMPrep: pause 1 put prep fm %FMMANA match FMPrep ...wait match FMCharge you raise your arms matchwait FMCharge: pause 1 put charg my %CAMBDESC %CAMBITEM %FMCAMB match FMInvoke absorbs match FMUgh strain match FMCharge ...wait matchwait FMInvoke: put invoke my %CAMBDESC %CAMBITEM match FMCast Roundtime match FMInvoke ...wait matchwait FMCast: waitfor fully prepared to cast your FMCast2: put cast %MOON match FMCastwait ...wait match LocatePrep You gesture match FMUgh strain matchwait StartFMskip: StartLo: StartLoc: StartLoca: StartLocat: StartLocate: LocatePrep: pause 1 put prep locate %LOCATEMANA match LocatePrep ...wait match LocateCharge you raise your arms matchwait LocateCharge: pause 1 put charg my %CAMBDESC %CAMBITEM %LOCATECAMB match LocateInvoke absorbs match LocateUgh strain match LocateCharge ...wait matchwait LocateInvoke: put invoke my %CAMBDESC %CAMBITEM match LocateCast Roundtime match LocateInvoke ...wait matchwait LocateCast: waitfor fully prepared to cast your LocateCast2: put cast %1 match LocateCastwait ...wait match SMPrep You gesture match LocateUgh strain matchwait StartSM: SMPrep: pause 1 put prep SM %SMMANA match SMPrep ...wait match SMCharge you raise your arms matchwait SMCharge: pause 1 put charg my %CAMBDESC %CAMBITEM %SMCAMB match SMInvoke absorbs match SMUgh strain match SMCharge ...wait matchwait SMInvoke: put invoke my %CAMBDESC %CAMBITEM match SMCast Roundtime match SMInvoke ...wait matchwait SMCast: waitfor fully prepared to cast your SMCast2: put cast match SMCastwait ...wait match SMGesture You gesture match SMUgh strain matchwait SMGesture: pause 2 put gesture %MOON %1 match MoonbeamReady sense your moonbeam move match MoonbeamUnmoved but are unable to affect your moonbeam matchwait SMCastWait: pause 1 goto SMCast2 LocateCastWait: pause 1 goto LocateCast2 CVCastwait: pause 1 goto CVCast2 PGCastwait: pause 1 goto PGCast2 FMCastwait: pause 1 goto FMCast2 CVUgh: pause 2 echo echo ************************ echo ** Low mana - failed to cast Clear Vision echo ************************ echo pause 2 goto ReleaseSpell PGUgh: pause 2 echo echo ************************ echo ** Low mana - failed to cast Piercing Gaze echo ************************ echo pause 2 goto ReleaseSpell FMUgh: pause 2 echo echo ************************ echo ** Low mana - failed to cast Focus Moonbeam echo ************************ echo pause 2 goto ReleaseSpell LocateUgh: pause 2 echo echo ************************ echo ** Low mana - failed to cast Locate. echo ************************ echo pause 2 goto ReleaseSpell SMUgh: pause 2 echo echo ************************ echo ** Low mana - failed to cast Shift Moonbeam. echo ************************ echo pause 2 goto ReleaseSpell ReleaseSpell: put release spell put prep cv put invok my %CAMBDESC %CAMBITEM pause 2 put wear my %CAMBDESC %CAMBITEM waitfor fully prepared to cast your pause 1 put cast pause 5 goto End MoonbeamUnmoved: pause 2 put wear my %CAMBDESC %CAMBITEM pause 1 echo echo *********************************************** echo ** %MOON moonbeam cannot be moved. %1 is too far away echo *********************************************** echo pause 5 goto End MoonbeamReady: pause 2 put wear my %CAMBDESC %CAMBITEM pause 1 echo echo *********************************************** echo ** %MOON moonbeam has been successfully moved toward %1 echo *********************************************** echo pause 5 goto End End: