Combat Script

by Unknown

Back to Mechanic's Corner.

Unknown2007-12-23 05:32:18
So I went through and created a variable for each affliction found under HELP CURELIST. Now I'm not sure what to do...any ideas and tips on how to continue my script? I'm using Lua in Mushclient.

Thanks all
Unknown2007-12-23 06:00:17
QUOTE(Black Dragon @ Dec 23 2007, 12:32 AM) 469574
So I went through and created a variable for each affliction found under HELP CURELIST. Now I'm not sure what to do...any ideas and tips on how to continue my script? I'm using Lua in Mushclient.

Thanks all


http://forums.lusternia.com/index.php?showtopic=13692

Use that instead, it's much more complete.

http://forums.lusternia.com/index.php?show...c=1445&st=0

And that's the thread I originally read to get started on my system. smile.gif If you read through that and need any more help, just post it.
Unknown2008-01-05 06:34:44
Okay so my computer crashed hard and I lost everything I started doing for my combat script. I was wondering if there is a way to take all the afflictions...I.E.

------------arnica------------
brokenchest
brokennose
crushedleftfoot
crushedrightfoot
fracturedleftarm
fracturedrightarm
snappedrib
windpipe

------------yarrow------------
artery_leftarm
artery_leftleg
artery_rightarm
artery_rightleg
haemophilia
laceratedleftarm
laceratedleftleg
laceratedrightarm
laceratedrightleg
lefthipclot
leftshoulderclot
lethargy
relapsing
righthipclot
rightshoulderclot
slicedopenforehead

------------calamus------------
slickness

------------horehound------------
achromaticaura
egovice
healthleech
manabarbs
powerspikes
recklessness

------------reishi------------
aeon
justice
pacified
peace
powersink
puncturedaura
succumb

------------galingale------------
addiction
galingalecheck
generosity
gluttony
lovers

------------smokeColtsfoot------------
anorexia
impatience
loneliness
masochism
shyness

------------pennyroyal------------
confusion
dementia
hallucinations
paranoia
pennyroyalcheck
scrambledbrain
stupidity

------------marjoram------------
dislocatedleftarm
dislocatedleftleg
dislocatedrightarm
dislocatedrightleg
gashedcheek
mangledtongue
puncturedchest
rigormortis
severedleftear
severedrightear
slicedchest
slicedleftbicep
slicedleftthigh
slicedrightbicep
slicedrightthigh
slicedopengut
weakness

------------kombu------------
clumsiness
deadened
dizziness
epilepsy
kombucheck
omniphobia
vapors

------------wormwood------------
agoraphobia
claustrophobia
hypochondria
vestiphobia
wormwoodcheck

------------eatMyrtle------------
blindness
concussion
deafness
sensitivity
vertigo

------------smokeMyrtle------------
hemiplegy_left
hemiplegy_lower
hemiplegy_right
piercedleftarm
piercedleftleg
piercedrightarm
piercedrightleg
phrenicnerve
windpipe

------------eatFaeleaf------------
blindness
needsixthsense

------------earwort------------
attraction
deafness
needtruehearing
octave

------------kafe------------
daydreaming
kafecheck
narcolepsy
needkafe

------------choleric------------
dysentery
hypersomnia
vomiting
vomitingblood
worms

------------sanguine------------
confusion
furrowedbrow
haemophilia
healthleech
scalped

------------phlegmatic------------
aeon
generosity
powersink
shyness
weakness

------------liniment------------
pox
scabies
sunallergy

------------fire------------
frozen
needfire

------------frost------------
ablaze
needfrost

------------antidote------------
crotamine

------------mending------------
brokenjaw
brokenleftarm
brokenleftleg
brokenleftwrist
brokenrightarm
brokenrightleg
brokenrightwrist
fracturedskull
slitthroat

------------love------------
disloyalty

------------melancholicHead------------
dizziness
sensitivity
vapors

------------melancholicChest------------
asthma
blacklung
puncturedlung
shortbreath

------------regenerationHead------------
concussion
partiallydamagedhead
peckedlefteye
peckedrighteye
shatteredjaw

------------regenerationArms------------
amputatedleftarm
amputatedrightarm
crackedleftelbow
crackedrightelbow
mangledleftarm
mangledrightarm

------------regenerationChest------------
chestpain
collapsedlungs
crushedchest

------------regenerationGut------------
burstorgans
rupturedstomach
severedspine

------------regenerationLegs------------
amputatedleftleg
amputatedrightleg
crackedleftkneecap
crackedrightkneecap
lefttendon
mangledleftleg
mangledrightleg
righttendon
shatteredleftankle
shatteredrightankle

------------focusBody------------
leglock
paralysis
throatlock

------------focusMind------------
addiction
agoraphobia
anorexia
claustrophobia
confusion
dizziness
epilepsy
fear
focusmindcheck
generosity
hallucinations
impatience
loneliness
lovers
masochism
pacified
recklessness
shyness
stupidity
vertigo
weakness

------------focusSpirit------------
illuminated
omen
puncturedaura
sickening
treebane

------------writhe------------
clampedleftarm
clampedrightarm
crucify
entangled
grapple
impaled
pinleg
roped
shackles
transfixed
vines

((copied over from Forren's post.)) Is there any way to take all that and just copy paste into the variables instead of having to redo each and everyone...one at a time?

Also once that is done how do I create a trigger and queue? ((Example would be that when you see the message...Hmmm...why must everything be so difficult to figure out? I want it to check to see if aeon, sleep, anorexia are 0 or 1, then see if herbbalance is 0 or 1, then finally run through a datalist of all the afflictions in the proper priority and if all those are 0...it will cure the stupidity and then reset the variable for it to 0))
Unknown2008-01-05 13:32:31
Short answer: there is no cut-and-paste shortcut to making a combat system.

Longer answer: start by building the foundation of a system with tracking aliases to update your variables efficiently, add in triggers to track afflictions, and then start building aliases to check for various states (balances, afflictions, etc) to heal you.