Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include nuckbaseCombat.cmd
- ###################################
- ## VARIABLE INITILIZATION
- ###################################
- ##beep actions##
- #action put #beep when "<to you>"
- #action put #beep when "<to you faintly>"
- #action put #beep when old hag
- #action put #beep when mouse
- #action put #beep when says
- #action put #beep when SEND
- #action put #beep when nudges
- #action put #beep when asks
- #action put #beep when exlaims
- #action put #beep when taps
- #action put #beep when whispers
- #action put #beep when hugs
- #action put #beep when grins at
- #action put #beep when waves to you
- #action put #beep when waves at you
- #action put #beep when winks at you
- #action put #beep when shakes you
- #action put #beep when leans on you
- #action put #beep when peers quizically
- #action put #beep when Khurek
- #action put #beep when Ventuul
- #action put #beep when Sinstra
- #action put #beep when Vorasus
- #action put #beep when Ithida
- #action put #beep when Arithne
- #action put #beep when yellow duck
- #action put #beep when You hear the voice of
- #action put #beep when loud thoughts in your head
- #action put #beep when You get an odd feeling that someone is watching you.
- #action put #beep when You're beat up
- #action put #beep when You're terribly wounded
- #action put #beep when You're badly hurt
- #action put #beep when begins to watch the goings on carefully.
- #action put #beep when voice
- #action put #beep when "
- #action put #beep when (([^\Wa-z0-9]\s){2,})
- #action put #beep when (\b[^\Wa-z0-9]{2,}\b)(?<!(TO|PIRP|SKILL|EXP|HELP|STOP|LISTENING|BANNGG|STOW|HR|INVENTORY|APPRAISE|POP|FACE))
- var bundlefull 0
- var mainContainer backpack
- var currentStance
- var cambrinth armband
- var PMSpell Ease
- var MDSpell Ease
- var MDAmount 11
- var spellPrep hot 10
- var panicSet 0
- var juggler bears
- var sbWeapon bow
- var lxWeapon crossbow
- var leWeapon jambiya
- var meWeapon scimitar
- var heWeapon sword
- var rmOn 0
- var killSpell ae 15
- var noMobs 0
- var parryStance 0
- var shieldStance 0
- var stanceEvasion 0
- var mobs bloodvine
- var hcLOCKED 0
- var boneLOCKED 0
- var clothLOCKED 0
- var hcARMOR 1
- var boneARMOR 0
- var clothARMOR 0
- var legs chain greave
- var FA 0
- var ps 0
- var shieldon 0
- var tendleftleg 0
- var tendabdomen 0
- var tendback 0
- var tendrightleg 0
- var tendchest 0
- var tendrightarm 0
- var tendleftarm 0
- var canjuggle 1
- var diseased 0
- ###################################
- ## ACTIONS ##
- ###################################
- action var FA 1 when ^Why do you need to|^You continue to study the|^You continue studying the
- action setvar canjuggle 0 when ^Your injuries make juggling impossible\.
- action var tendleftleg 1 when ^The bandages binding your left leg
- action var tendabdomen 1 when ^The bandages binding your abdomen
- action var tendback 1 when ^The bandages binding your back
- action var tendrightleg 1 when ^The bandages binding your right leg
- action var tendchest 1 when ^The bandages binding your chest
- action var tendrightarm 1 when ^The bandages binding your right arm
- action var tendleftarm 1 when ^The bandages binding your left arm
- action var tendchest 1 when ^You skillfully remove the blood-red thorn from your
- action goto ImDead2 when eval $dead = 1
- action goto ImDead when eval %diseased = 1
- action goto ImDead when eval $health < 70
- #action goto ImDead when eval $bleeding = 1
- action goto ImDead when ^You pick up a barbed arrowhead\.
- action goto ImDead when ^You move along to follow your mark\.
- action goto ImDead when ^^You feel a wave of nausea
- action var ambushAttack 1 when you feint your
- action var ambushAttack 2 when you jab your
- action var ambushAttack 0 when you kick your foot
- action var bundlefull 1 when ^Where did you intend
- action var shieldon 1 when ^You slide your left arm
- action var shieldon 0 when ^You loosen the strap
- ##########################################
- ## Monster Death Messages ##
- ##########################################
- var deadMob none
- if $righthand != sword then
- {
- gosub stow right
- gosub get sword
- }
- if $lefthand != Empty then gosub stow left
- put awaken;exp all
- waitforre ^EXP HELP
- gosub CheckSpells
- pause .5
- gosub Remove buckler
- gosub wear buckler
- put stance parry
- var stanceParry 1
- pause 1
- timer start
- gosub CheckBleeder
- gosub put1 "hunt" "^You take note of all the tracks|^You find yourself unable"
- goto Main
- EnableDeathMessages:
- action var deadMob eel;var skinMob 0 when ceases all movement\.|lies still\.|before expiring\.|then goes limp\.|before taking her last breath\.|and falls into a heap\.|howl and goes still\.|its final breath\.|before going still\.|before lying motionless\.|flops to the ground\.|before relaxing in death\.|in a heap with a dull thud\.|ground with a thud\.
- return
- DisableDeathMessages:
- action remove ceases all movement\.|lies still\.|before expiring\.|then goes limp\.|before taking her last breath\.|and falls into a heap\.|howl and goes still\.|its final breath\.|before going still\.|before lying motionless\.|flops to the ground\.|before relaxing in death\.|in a heap with a dull thud\.|ground with a thud\.
- return
- CheckForDeadMob:
- if "%deadMob" = "none" then return
- if %skinMob = 1 then gosub SkinMob
- gosub put1 "loot treasure" "^You search the|^I could not find|^You move over to"
- put l
- pause 1
- put .loot
- waitforre ^Encumbrance
- gosub GetArrow
- if $monstercount > 0 then return
- return
- GetArrow:
- if !contains("$roomobjs", "long arrow") then return
- gosub Stow long arrow
- goto GetArrow
- #######################################
- ## MAIN LOOP ##
- #######################################
- Main:
- gosub DefenseTrain
- gosub CheckForaging
- gosub StealthsTrain
- #gosub BundleMySkin
- put stow right
- gosub MagicTrain
- gosub DefenseTrain
- gosub SBTrain
- #gosub BundleMySkin
- gosub LTTrain
- #gosub BundleMySkin
- gosub HETrain
- #gosub BundleMySkin
- gosub DefenseTrain
- #gosub HBTrain
- #gosub BundleMySkin
- gosub BrawlMain
- #gosub BundleMySkin
- goto Main
- DefenseTrain:
- gosub CheckBleeder
- wield right my sword
- if $monstercount = 0 then gosub NoMobs
- if $monstercount > $danceMax then gosub Kill
- gosub CheckSpells
- if $Shield_Usage.LearningRate > 14 and $Parry_Ability.LearningRate > 24 then return
- if %t > 75 then gosub Hunt
- gosub CheckStance2
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- goto DefenseTrain
- CheckForaging:
- if $Foraging.LearningRate > 30 then return
- gosub MovetoForage
- gosub Foraging
- gosub ReturnfromForage
- gosub get %stowedItemR
- gosub get %stowedItemL
- return
- MoveToForage:
- gosub Retreat
- gosub HideForStalking
- pause 1
- gosub put1 "#goto 3" "^Encumbrance"
- pause 1
- return
- ReturnfromForage:
- gosub put1 "#goto 238" "^Encumbrance"
- pause 1
- return
- #######################################
- ## LT Loop ##
- #######################################
- LTTrain:
- gosub CheckBleeder
- if $Light_Thrown.LearningRate > 24 then
- {
- gosub Stanceshield
- gosub Stow bola
- return
- }
- gosub StanceShield
- #if %stanceEvasion 1 then gosub retreat
- if $righthand != Empty then gosub stow right
- gosub StopHumming
- gosub FaceLastMob
- LTAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- #if %stanceEvasion = 1 then gosub retreat
- if $righthand != Empty and $righthandnoun != bola then gosub stow right
- gosub put1 "wield my bola" "^You draw out"
- if $monstercount > $danceMax then gosub Kill
- if $monstercount = 0 then gosub nomobs
- gosub RetreatIfLocked
- #if %stanceEvasion = 1 then gosub retreat
- gosub EnableDeathMessages
- gosub DoAttack throw
- gosub Stow bola
- pause 3
- gosub CheckStam 85
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto LTTrain
- }
- if $Light_Thrown.LearningRate > 24 then goto LTTrain
- goto LTAttack
- #######################################
- ## HE Loop ##
- #######################################
- HETrain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckRest
- if $Heavy_Edged.LearningRate > 24 then return
- if $monstercount = 0 then gosub NoMobs
- gosub StopHumming
- gosub Get my %heWeapon
- gosub HEMain
- gosub stanceshield
- gosub Stow my %heWeapon
- gosub Dodge
- return
- HEMain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if $Appraisal.LearningRate < 10 then gosub app %mobs quick
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckStance2
- gosub CheckRest
- if $Heavy_Edged.LearningRate > 24 then return
- gosub NoMobs
- gosub FaceLastMob
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- counter set 0
- var heCombo feint|draw|sweep|slice|chop
- HEAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if $monstercount > $danceMax then gosub kill
- gosub CheckStance2
- if $Heavy_Edged.LearningRate > 24 then return
- if %t > 75 then gosub Hunt
- if %c > 4 then counter set 0
- eval heAttack element("%heCombo", %c)
- counter add 1
- gosub EnableDeathMessages
- if $monstercount = 0 then gosub NoMobs
- gosub DoAttack %heAttack
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto HEMain
- }
- goto HEAttack
- #######################################
- ## HB Loop ##
- #######################################
- HBTrain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckRest
- if $Heavy_Blunt.LearningRate > 24 then return
- if $monstercount = 0 then gosub NoMobs
- gosub StopHumming
- if $righthandnoun != "hhr'ata" then gosub stow right
- gosub Get my hhr
- gosub HBMain
- gosub stanceshield
- gosub Stow my hhr
- gosub Dodge
- return
- HBMain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if $Appraisal.LearningRate < 10 then gosub app %mobs quick
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckStance2
- gosub CheckRest
- if $Heavy_Blunt.LearningRate > 24 then return
- gosub NoMobs
- gosub FaceLastMob
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- counter set 0
- var hbCombo feint|bash|sweep|draw|swing
- HBAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if $monstercount > $danceMax then gosub kill
- gosub CheckStance2
- if $Heavy_Blunt.LearningRate > 24 then return
- if %t > 75 then gosub Hunt
- if %c > 4 then counter set 0
- eval hbAttack element("%hbCombo", %c)
- counter add 1
- gosub EnableDeathMessages
- if $monstercount = 0 then gosub NoMobs
- gosub DoAttack %hbAttack
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto HBMain
- }
- goto HBAttack
- #######################################
- ## Brawl Loop ##
- #######################################
- BrawlTrain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckRest
- if $Brawling.LearningRate > 24 then return
- if $monstercount = 0 then gosub NoMobs
- gosub StopHumming
- if $righthand != Empty then gosub stow right
- gosub HBMain
- gosub Dodge
- return
- BrawlMain:
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- if $Appraisal.LearningRate < 10 then gosub app %mobs quick
- if %t > 75 then gosub Hunt
- gosub CheckBleeder
- gosub CheckStance2
- gosub CheckRest
- if $Brawling.LearningRate > 24 then return
- gosub NoMobs
- gosub FaceLastMob
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- counter set 0
- var brawlCombo punch|elbow|kick
- BrawlAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if $monstercount > $danceMax then gosub kill
- gosub CheckStance2
- if $Brawling.LearningRate > 24 then return
- if %t > 75 then gosub Hunt
- if %c > 2 then counter set 0
- eval brawlAttack element("%brawlCombo", %c)
- counter add 1
- gosub EnableDeathMessages
- if $monstercount = 0 then gosub NoMobs
- gosub DoAttack %brawlAttack
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto BrawlMain
- }
- goto BrawlAttack
- #######################################
- ## SB Loop ##
- #######################################
- SBTrain:
- gosub CheckBleeder
- if $monstercount = 0 then gosub NoMobs
- if $Short_Bow.LearningRate > 24 then return
- gosub StopHumming
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- gosub Dodge
- gosub Stanceevasion
- if %stanceEvasion 1 then gosub retreat
- if $righthand != Empty and $righthandnoun != bow then gosub Stow right
- gosub get %sbWeapon
- gosub SBMain
- gosub stow %sbWeapon
- return
- SBMain:
- gosub CheckBleeder
- gosub CheckSpells
- if $Short_Bow.LearningRate > 24 then return
- gosub StanceEvasion
- if %stanceEvasion 1 then gosub retreat
- gosub NoMobs
- gosub FaceLastMob
- SBAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if $Short_Bow.LearningRate > 24 then return
- gosub Retreat
- #if $Shield_Usage.LearningRate > 30 then gosub RetreatIfLocked
- #if $Shield_Usage.LearningRate > 30 then gosub RetreatIfLocked
- if %t > 75 then gosub Hunt2
- gosub CheckBleeder
- if %stanceEvasion 1 then gosub retreat
- gosub Retreat
- #if $Shield_Usage.LearningRate > 30 then gosub RetreatIfLocked
- gosub Retreat
- gosub Load my long arro
- gosub retreat
- gosub CheckBleeder
- gosub Aim
- #if $Shield_Usage.LearningRate > 30 then gosub RetreatIfLocked
- gosub Retreat
- {
- if $Appraisal.LearningRate < 10 then
- {
- gosub CheckBleeder
- gosub app %mobs quick
- gosub Retreat
- gosub app %mobs quick
- gosub Retreat
- gosub CheckBleeder
- gosub app %mobs quick
- gosub Retreat
- gosub app %mobs quick
- gosub retreat
- }
- else
- if $Brawling.LearningRate < 1 then
- {
- gosub Retreat
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- gosub Retreat
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- gosub Retreat
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- gosub Retreat
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- }
- else
- if $Brawling.LearningRate > 35 and $Appraisal.LearningRate > 35 then
- {
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- }
- }
- gosub EnableDeathMessages
- if $monstercount = 0 then gosub NoMobs
- gosub DoAttack fire
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto SBMain
- }
- goto SBAttack
- WaitForFire:
- gosub CheckBleeder
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- return
- #######################################
- ## Magic Loop ##
- #######################################
- MagicTrain:
- #gosub MDTrain
- #gosub PMHATrain
- gosub TMTrain
- return
- #######################################
- ## MD Loop ##
- #######################################
- MDTrain:
- gosub CheckBleeder
- if $Arcana.LearningRate > 20 then return
- gosub StopHumming
- gosub MonsterCheck
- gosub stanceshield
- gosub stow right
- gosub get %cambrinth
- gosub put1 "swap" "^You move a|^You have nothing"
- gosub MDMain
- gosub stow %cambrinth
- return
- MDMain:
- gosub CheckBleeder
- gosub CheckRest
- if $monstercount > $danceMax then gosub kill
- if %t is > 90 then gosub Hunt
- gosub CheckBleeder
- if $Arcana.LearningRate > 20 then return
- gosub Prep %MDSpell
- if $monstercount > $danceMax then gosub kill
- gosub Charge %cambrinth %MDAmount
- if $monstercount > $danceMax then gosub kill
- gosub Focus my %cambrinth
- gosub Cast
- gosub CheckBleeder
- if $monstercount > $danceMax then gosub kill
- gosub CheckMana 99
- goto MDMain
- #######################################
- ## PM Loop ##
- #######################################
- PMHATrain:
- gosub StopHumming
- var stowedItem none
- if $righthandnoun != "" then
- {
- var stowedItem $righthandnoun
- gosub stow right
- }
- var stowedItem none
- if $lefthandnoun != "" then
- {
- var stowedItem $lefthandnoun
- gosub stow left
- }
- pause .5
- gosub PMHAMain
- gosub stow armband
- return
- PMHAMain:
- if $monstercount > $danceMax then gosub kill
- gosub checkstance2
- if $Primary_Magic.LearningRate > 14 then return
- if %t is > 90 then gosub Hunt
- if $lefthand != "bronze armband" then
- {
- gosub put1 "get %cambrinth" "^You get a|^You are already"
- gosub put1 "swap" "^You move a|^You have nothing"
- }
- gosub Prep %PMSpell
- gosub Charge %cambrinth %MDAmount
- gosub Focus my %cambrinth
- gosub Cast
- gosub CheckMana 85
- goto PMHAMain
- #######################################
- ## TM Loop ##
- #######################################
- TMTrain:
- gosub CheckBleeder
- if $monstercount = 0 then gosub NoMobs
- gosub StopHumming
- gosub TMMain
- return
- TMMain:
- gosub CheckStance2
- if %stanceParry = 1 and $righthand != "bastard sword" then
- {
- gosub stow right
- gosub get sword
- }
- if $Targeted_Magic.LearningRate > 24 then return
- if %t is > 90 then gosub Hunt
- gosub CheckBleeder
- if $monstercount = 0 then return
- gosub Put1 "face next" "^You turn to face|^There is nothing else"
- gosub EnableDeathMessages
- gosub TMKilling
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto TMMain
- }
- goto TMMain
- TMKilling:
- gosub CheckBleeder
- gosub CheckSpells
- if $Targeted_Magic.LearningRate > 24 then return
- if %deadMob != "none" then return
- if $monstercount > $danceMax then gosub kill
- gosub ReleaseSpell
- gosub CheckMana 85
- gosub Put2 "prep bolt 3" "target" "^You begin to weave mana lines|^You are not engaged to|^Your target pattern is already formed on"
- pause 1
- gosub Put2 "cast" "awake" "^You gesture|^But you|^You awaken"
- if $monstercount > $danceMax then gosub kill
- if $Appraisal.LearningRate < 9 then gosub app %mobs quick
- return
- #######################################
- ## Stealth ##
- #######################################
- StealthsTrain:
- gosub CheckBleeder
- #if $monstercount > $danceMax then gosub kill
- if $monstercount = 0 then gosub NoMobs
- if $Hiding.LearningRate > 29 then return
- gosub StopHumming
- gosub StanceEvasion
- if $righthand != Empty and $righthandnoun != bow then gosub Stow right
- gosub get %sbWeapon
- gosub StealthsMain
- gosub stow %sbWeapon
- return
- StealthsMain:
- gosub CheckBleeder
- if $Hiding.LearningRate > 29 then return
- #if $monstercount > $danceMax then gosub kill
- gosub StanceEvasion
- gosub NoMobs
- gosub FaceLastMob
- StealthAttack:
- gosub CheckBleeder
- gosub CheckSpells
- if $Hiding.LearningRate > 29 then return
- #if $monstercount > $danceMax then gosub kill
- #if %t > 75 then gosub Hunt2
- #if $monstercount > $danceMax then gosub kill
- gosub put1 "retreat" "^You retreat|^You are already|^You stop advan"
- gosub Load my long arro
- gosub Advance
- gosub Aim
- gosub CheckBleeder
- gosub HideforStalking
- gosub Advance
- gosub put1 "stalk" "^You move into position|^There is nothing|^You're already|your hiding place\!|Stalking is"
- gosub Advance
- gosub EnableDeathMessages
- if $monstercount = 0 then gosub NoMobs
- gosub HideforStalking
- gosub put1 "poach" "Roundtime|^At what are|^How can you"
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto StealthsMain
- }
- goto StealthAttack
- FirstAid:
- gosub CheckSpells
- if $monstercount > 0 then return
- if $First_Aid.LearningRate > 24 then return
- gosub StanceShield
- if $righthand != red compendium then gosub Stow right
- gosub StartHumming
- gosub Get my compend
- gosub Put1 "open my compen" "^You open your|^That is already"
- gosub FirstAidMain
- gosub Put1 "close my compen" "^You close your"
- gosub Stow compendium in my pack
- gosub StopHumming
- setvar FA 0
- return
- FirstAidMain:
- gosub CheckSpells
- if $monstercount > 0 then return
- if %FA = 1 then return
- if $monstercount > $danceMax then gosub kill
- if %t is > 90 then gosub Hunt
- if $First_Aid.LearningRate > 24 then return
- gosub StartHumming
- gosub FirstAidStudy
- goto FirstAidMain
- FirstAidStudy:
- if $monstercount > 0 then return
- if $monstercount > $danceMax then gosub kill
- gosub Put1 "study my compen" "^With a sudden|^Why do you need to|^You begin|Roundtime"
- gosub Put1 "turn my compen" "^You turn to the section"
- return
- Hunt2:
- gosub CheckBleeder
- if $Power_Perceive.LearningRate < 15 then
- {
- gosub Retreat
- gosub Perceive
- }
- if $Perception.LearningRate > 32 then return
- gosub retreat
- timer stop
- timer clear
- timer start
- gosub put1 "hunt" "^You take note|^You find yourself unable"
- if $Appraisal.LearningRate < 9 then
- {
- gosub Retreat
- gosub app %mobs quick
- }
- gosub Retreat
- return
- Hunt:
- gosub CheckBleeder
- if $Power_Perceive.LearningRate < 15 then gosub Perceive
- if $Perception.LearningRate > 32 then return
- timer stop
- timer clear
- timer start
- if $Appraisal.LearningRate < 9 then gosub app %mobs quick
- gosub put1 "hunt" "^You take note|^You find yourself unable"
- return
- NoMobs:
- gosub CheckBleeder
- gosub CheckSpells
- if %t is > 90 then gosub Hunt
- gosub CheckBleeder
- if $monstercount > 0 then return
- gosub CheckRest
- gosub StartHumming
- if $Perception.LearningRate < 35 then
- {
- var stowedItemR none
- var stowedItemL none
- if $righthandnoun != "" then
- {
- var stowedItemR $righthandnoun
- if $righthandnoun = bow then gosub UnloadSB
- gosub stow right
- }
- if $lefthandnoun != "" then
- {
- var stowedItemL $lefthandnoun
- gosub stow left
- }
- var noMobs 1
- #gosub Stanceshield
- #gosub get my %juggler
- #gosub Juggle
- #gosub stow right
- gosub Juggling
- gosub NoMobsPM
- gosub FirstAid
- gosub Waiting4mobs
- if %stowedItemR != "none" then gosub get my %stowedItemR
- if %stowedItemL != "none" then gosub get my %stowedItemL
- if $righthandnoun = "bow" then gosub Load my long arro
- var noMobs 0
- #gosub ForagingTrain1
- }
- goto NoMobs
- Waiting4mobs:
- gosub CheckBleeder
- if $monstercount > 0 then return
- pause 30
- put look
- goto Waiting4Mobs
- ForagingTrain:
- gosub Dodge
- gosub stanceevasion
- ForagingTrain1:
- pause 15
- put exp
- if $monstercount > 0 then return
- goto ForagingTrain1
- ForageTrain2:
- gosub put1 "collect stem" "^Roundtime"
- gosub put1 "kick pile" "^You take a step"
- if $monstercount > 0 then return
- goto ForageTrain2
- Foraging:
- gosub CheckBleeder
- if $Foraging.LearningRate > 30 then return
- {
- var stowedItem none
- if $righthandnoun != "" then
- {
- var stowedItem $righthandnoun
- gosub stow right
- }
- var stowedItem none
- if $lefthandnoun != "" then
- {
- var stowedItem $lefthandnoun
- gosub stow left
- }
- pause .5
- gosub put1 "collect laven" "You manage|You wander|You forage|You\'re sure|^Roundtime"
- gosub put1 "kick pile" "I could not|You take"
- goto Foraging
- SpillOver:
- if $monstercount > 0 then return
- if $Perception.LearningRate < 34 then return
- gosub Retreat
- pause 3
- gosub Retreat
- pause 3
- gosub Retreat
- goto SpillOver
- StanceParry:
- gosub get my sword
- gosub Parry
- gosub put1 "stance parry" "^You are now set to use"
- var stanceParry 1
- var stanceEvasion 0
- return
- StanceShield:
- gosub Dodge
- gosub put1 "stance shield" "^You are now set to use"
- var stanceParry 0
- var stanceEvasion 0
- return
- StanceEvasion:
- gosub Dodge
- gosub put1 "stance evasion" "^You are now set to use"
- var stanceParry 0
- var stanceEvasion 1
- return
- CheckStance2:
- if $Parry_Ability.LearningRate > 25 and $Shield_Usage.LearningRate > 25 and %stanceEvasion = 0 then gosub StanceEvasion
- else
- {
- if $Parry_Ability.LearningRate < 25 and %stanceParry = 0 then gosub StanceParry
- else
- {
- if $Shield_Usage.LearningRate < 25 and $Parry_Ability.LearningRate > 25 and %stanceParry = 1 then gosub StanceShield
- }
- }
- return
- SkinMob:
- if $Skinning.LearningRate > 34 then return
- #gosub Retreat
- gosub stanceshield
- var skinMob 0
- gosub Awaken
- gosub put1 "arrange all" "Roundtime|^Arrange what\?|making this impossible\."
- gosub Put1 "skin" "Roundtime|^Skin what\?"
- if $lefthand = "bloodvine hide" then gosub put1 "empty left" "^You drop"
- if $righthand = "bloodvine hide" then gosub put1 "empty right" ^You drop"
- return
- UnloadSB:
- gosub put1 "unload" "^But your|^You unload|^Round|^You don't have"
- gosub stow left
- gosub stow right
- return
- BundleMySkin:
- if contains("$roomobjs", "a lumpy bundle") then gosub put1 "get bundle" "^You are already|^You pick up"
- else
- {
- gosub get bund rope
- }
- gosub get hide
- gosub put1 "bundle" "^You carefully fit|^That's not going|^Where did you|^You bundle up"
- if %bundlefull = 1 then
- {
- gosub drop bundle
- gosub get bund rope
- gosub put1 "bundle" "^You bundle up|^That's not going|^Where did you|^You carefully fit"
- var bundlefull 0
- }
- if contains("$roomobjs", "pale bloodvine hide") then gosub BundleOF
- gosub drop bundle
- return
- BundleOF:
- if !contains("$roomobjs", "pale bloodvine hide") then return
- gosub get hide
- gosub put1 "bundle" "^You bundle up|^That's not going|^You carefully|^Where did you"
- goto BundleOF
- Juggling:
- gosub CheckBleeder
- gosub CheckSpells
- {
- var stowedItem none
- if $righthandnoun != "" then
- {
- var stowedItem $righthandnoun
- gosub stow right
- }
- var stowedItem none
- if $lefthandnoun != "" then
- {
- var stowedItem $lefthandnoun
- gosub stow left
- }
- pause .5
- gosub Get my %juggler
- gosub JuggleMain
- gosub Stow %juggler
- return
- JuggleMain:
- gosub CheckBleeder
- gosub CheckSpells
- if $monstercount > 0 then return
- if $Perception.LearningRate > 25 then return
- gosub StartHumming
- if %canjuggle = 0 then return
- gosub Juggle
- goto JuggleMain
- Juggle:
- if $monstercount > 0 then return
- matchre Return ^You toss
- matchre Return ^Your injuries make juggling impossible
- matchre Juggle \.\.\.wait
- matchre Juggling ^But you're not holding
- matchre Return ^You cannot juggle in
- put juggle my %juggler
- matchwait
- NoMobsPM:
- gosub CheckBleeder
- gosub CheckSpells
- gosub StopHumming
- var stowedItem none
- if $righthandnoun != "" then
- {
- var stowedItem $righthandnoun
- gosub stow right
- }
- var stowedItem none
- if $lefthandnoun != "" then
- {
- var stowedItem $lefthandnoun
- gosub stow left
- }
- pause .5
- gosub NoMobsPM2
- gosub ReleaseSpell
- gosub stow armband
- return
- NoMobsPM2:
- gosub CheckBleeder
- gosub CheckSpells
- if $monstercount > 0 then return
- if $Arcana.LearningRate > 32 then return
- if $lefthand != "bronze armband" then
- {
- gosub put1 "get %cambrinth" "^You get a|^You are already"
- gosub put1 "swap" "^You move a|^You have nothing"
- }
- gosub Prep %PMSpell
- gosub Charge %cambrinth %MDAmount
- gosub Charge %cambrinth %MDAmount
- gosub Focus my %cambrinth
- gosub Cast
- gosub CheckMana 85
- goto NoMobsPM2
- return
- Kill:
- gosub Retreat
- gosub CheckBleeder
- gosub StopHumming
- gosub Put1 "bob" "^You bob suddenly, lowering yourself into a smaller target\.|^At what are you trying to bob"
- gosub Stanceevasion
- var stowedItemR none
- var stowedItemL none
- if $righthand != Empty then
- {
- var stowedItemR $righthandnoun
- gosub Stow right
- }
- if $lefthand != Empty then
- {
- var stowedItemL $lefthandnoun
- gosub Stow left
- }
- gosub get %sbWeapon
- gosub killMain
- gosub stow %sbWeapon
- gosub get %stowedItemR
- if %stowedItemL != none then gosub get %stowedItemL
- return
- KillMain:
- gosub CheckBleeder
- if $monstercount <= $danceMax then return
- gosub CheckSpells
- gosub StanceEvasion
- gosub Retreat
- gosub FaceLastMob
- KillAttack:
- gosub CheckBleeder
- gosub GetArrow
- gosub CheckSpells
- gosub Retreat
- gosub Load my long arro
- gosub CheckBleeder
- gosub retreat
- gosub Aim
- gosub retreat
- gosub EnableDeathMessages
- gosub DoAttack fire
- gosub DisableDeathMessages
- gosub CheckForDeadMob
- if "%deadMob" != "none" then
- {
- var deadMob none
- goto KillMain
- }
- goto KillAttack
- CheckBleeder:
- if %tendchest = 0 then return
- else
- {
- setvar tendchest 0
- gosub put1 "tend my chest" "^You work carefully at tending|^You skillfully remove"
- return
- }
- ImDead2:
- put #play alarm.wav
- pause 1
- goto ImDead2
- ImDead:
- gosub Retreat
- put #play alarm.wav
- pause 3
- gosub Retreat
- goto ImDead
Add Comment
Please, Sign In to add comment