Nexus clean up...

by Unknown

Back to Mechanic's Corner.

Unknown2011-02-09 17:37:14
So I am going to post my entire system so far for nexus since for some reason my mushclient and mudlet aren't saving anything...til I can figure out what is wrong I'm back on nexus...was wondering if anyone would have any suggestions on how to clean it up some so it doesn't cause so much lag when in combat and what not...

Thanks

CODE

  
    1
    0 {#set supbalance 1}
    1
    1
    1
    1
    influence $target with admiration
    influence $target with begging
    influence $target with compliments
    influence $target with flattery
    influence $target with praise
    influence $target with supplication
    #set supbalance 0
#set begbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set supbalance 0
#set begbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set admirebalance 0
#set combalance 0
#set praisebalance 0

    #set combalance 0
#set admirebalance 0
#set praisebalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set supbalance 0
    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set supbalance 0
#set begbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set wheedbalance 0
    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set supbalance 0
#set begbalance 0
#set wheedbalance 0

    #set begbalance 0
#set supbalance 0
#set wheedbalance 0

    #set combalance 0
    #set admirebalance 0
    #highlight "red on white"
#if $begbalance = 1 {#if $wheedbalance = 0 {influence $target with begging
#set begbalance 0 {#set supbalance 1}
}
}
#if $supbalance = 1 {#if $begbalance = 0 {influence $target with supplication
#set supbalance 0 {#set wheedbalance 1}
}
}
#if $wheedbalance = 1{#if $supbalance = 0 {influence $target with wheedling
#set wheedbalance 0 {#set begbalance 1}
}
}
#if $begbalance = 0 {#set begbalance 1}
#if $supbalance = 0 {#set supbalance 1}
#if $wheedbalance = 0 {#set wheedbalance 1}
#if $combalance = 1 {#if $praisebalance = 0 {influence $target with compliments
#set combalance 0 {#set admirebalance 1}
}
}
#if $admirebalance = 1 {#if $combalance = 0 {influence $target with admiration
#set admirebalance 0 {#set praisebalance 1}
}
}
#if $praisebalance = 1 {#if $admirebalance = 0 {influence $target with praise
#set praisebalance 0 {#set combalance 1}
}
}
#if $combalance = 0 {#set combalance 1}
#if $admirebalance = 0 {#set admirebalance 1}
#if $praisebalance = 0 {#set praisebalance 1}

    #set praisebalance 0
    #set begbalance 0
  

  
    3744
    4110
    3744
    4110
    143262
    132604
    119204
    1
    2466
    1
    3933
    2995
    3699
    1
    2466
    marshal
    #groupon aetherempath
    #groupoff aetherempath
    #groupon Aetherturret
    #groupoff aetherturret
    #groupon aethersiphon
shipt Siphoning on!
#set aetherbeasts 0

    #groupoff aethersiphon
shipt Siphoning off!

    outr chervil
eat chervil

    get clam from pack
give clam to nanny

    outr earwort
eat earwort

    focus body
    outr faeleaf
eat faeleaf

    outr faeleaf
outr coltsfoot
outr myrtle
put faeleaf in $pipe1
put coltsfoot in $pipe2
put myrtle in $pipe3
light $pipe1
light $pipe2
light $pipe3
smoke $pipe1

    stand
swing $target
swing $target

    light $pipe1
light $pipe2
light $pipe3

    influence $target with mockery
    stand
raze $target
swing $target

    recharge 277078 with cube
recharge 78633 with cube
recharge 93726 with cube
recharge 260839 with cube
recharge 119477 with cube
recharge 99969 with cube
recharge 256027 with cube
recharge 53869 with cube

    rub kingdom
rub mercy
rub beauty
rub perfection
rub acquisitio on

    read scroll
    smoke $pipe1
    smoke $pipe2
    smoke $pipe3
    shove $target
    outr sparkleberry
eat sparkleberry

    put spike in hole
get spike from hole

    #set target $1
    influence $target with teasing
    outr yarrow
eat yarrow

    focus body
    apply mending to arm
    compose
    focus body
    writhe
    writhe
    springup
    writhe
    writhe
    focus body
    focus body
    sip choleric
    sip fire
    sip fire
    sip fire
    sip fire
    sip fire
    apply mending to arms
    outr pennyroyal
eat pennyroyal

    sip frost
    sip frost
    apply mending to arm
    outr pennyroyal
eat pennyroyal
eat pennyroyal

    smoke $pipe1
    focus body
outr pennyroyal
eat pennyroyal

    outr earwort
eat earwort

    #set sipbalance 0
    sip fire
    sip fire
    sip fire
    writhe
    #set sparklebalance 0
    #Highlight "blue on white"
    #highlight "blue on white"
    #highlight "blue on white"
    #highlight "blue on white"
    #highlight "blue on white"

    #set scrollbalance 1
    #highlight "green on white"
#set sipbalance 1

    #set sparklebalance 1
    apply mending to legs
    #set scrollbalance 0
    apply mending to legs
    apply liniment
    insomnia
    apply mending to arms
    sip antidote
    evoke yesod
    #set currenthealth $1
#if $currenthealth < $sippinghealth {
             #if $sipbalance = 1 { sip health
             #set sipbalance = 0
              }
              }
#if $currenthealth < $sparklehealth {
             #if $sparklebalance = 1 {outr sparkleberry
              eat sparkleberry
              #set sparklebalance 0
              }
              }
#if $currenthealth < $scrollhealth {
             #if $scrollbalance = 1 {read scroll119477
              #set scrollbalance 0
              }
              }
#set currentego $3
#if $currentego < $sippingego {
             #if $sipbalance = 1 { sip bromide
             #set sipbalance = 0
              }
              }

    #set maxego $2
#set sippingego = $maxego * 8 / 10

    #set maxhealth $2
#set sippinghealth = $maxhealth * 9 / 10
#set sparklehealth = $maxhealth * 6 / 10
#set scrollhealth = $maxhealth * 6 / 10

    in
    down
    up
    out
    southwest
    south
    southeast
    west
    ql
    east
    northwest
    north
    northeast
  

  
    turret fire
    turret target creature gargantuan
    turret target creature $1
    tg
    tf
    tg
    tg
    tg
    tg
  

  
    0
    #groupoff aethersiphon
shipt siphoning off

    #groupon aethersiphon
shipt siphoning on

    siphon vortex
    sif
    #if $aetherbeasts < 2 {siphon vortex}
    #add aetherbeasts -1
  

  
    learn 15 planar from avarath
    evoke netzach
  



P.S.

Anyone that wishes to use it for their characters be my guest. Still working on it and trying to learn more to improve it...so far the only idea I have is setting everything into groups and turning groups on and off based upon the class I am fighting but in group combat I would be screwed.
Ssaliss2011-02-09 17:48:13
Why use several kinds of influence balances? I think a better solution would be to have a single variable containing what kind of influence it is, and another counter to know what to influence with next. For instance,
if (type_of_influence==1) {if (counter==1 {influence $target with compliments} else if (counter==2 {influence $target with flattery} else if (counter==2 {influence $target with praise}}

Also, you don't need several triggers to set begbalance to 0; you just need one which triggers off of "keeps asking (him|her)self why (he|she) considered giving so much away".
Unknown2011-02-09 19:14:29
QUOTE (Ssaliss @ Feb 9 2011, 09:48 AM) <{POST_SNAPBACK}>
Why use several kinds of influence balances? I think a better solution would be to have a single variable containing what kind of influence it is, and another counter to know what to influence with next. For instance,
if (type_of_influence==1) {if (counter==1 {influence $target with compliments} else if (counter==2 {influence $target with flattery} else if (counter==2 {influence $target with praise}}

Also, you don't need several triggers to set begbalance to 0; you just need one which triggers off of "keeps asking (him|her)self why (he|she) considered giving so much away".


I've tried the he|she thing but couldn't get to work properly...if anyone knows the exact coding for it will use that. As for the multiple balances...good idea. Will look into it
Mirami2011-02-09 19:45:53
I'll dig up Mirami's influencer for Nexus and post it here (Or at least the important bits of code), it does what Ssaliss is describing, but prettier.


...Nexus isn't letting me copy text, for some reason, even in the reflex editor. I'll dig it up, but the gist is an EQ trigger for the following:

CODE
if $infnum = 1 {influence $tari with $inftype1}
if $infnum = 2 {influence $tari with $inftype2}
if $infnum = 3 {influence $tari with $inftype3}

And then:

#if $inf = 1 {#set inf 2} else {
#if $inf = 2 {#set inf 3} else {#set inf 1}
}


with aliases that do #set inftype1/2/3 with the requisite variable (praise, begging, etc) and then enable the group that has the trigger..

The EQ trigger (or alias it calls, if you prefer to do it that way) will need to be it's own group with a '#disablegroup' trigger or whatever it is to disable the group on the 'cannot influence' messages.

(I have Mirami's set up for bards/using roulade, and I'll see if I can't dig it up later. No guarantees that I'll be able to extract it all, but I'll see what I can dig up.)
Ssaliss2011-02-09 19:58:33
QUOTE (Black Dragon @ Feb 9 2011, 08:14 PM) <{POST_SNAPBACK}>
I've tried the he|she thing but couldn't get to work properly...if anyone knows the exact coding for it will use that. As for the multiple balances...good idea. Will look into it

Worst case scenario, you can split it to two triggers. You shouldn't have to use one trigger per mob though.