rpherbig / dr-scripts

A series of Lich 5 (https://github.com/elanthia-online/lich-5) scripts for use with DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!
GNU General Public License v2.0
54 stars 177 forks source link

astrology waggle bug - doesn't use foci for rtr #1777

Closed Missah closed 7 years ago

Missah commented 7 years ago

Here is my astrology waggle setup (maybe I have set something wrong)

  astrology:
    Piercing Gaze:              
      abbrev: pg            
      mana: 10             
      cambrinth:            
      - 10
    Aura Sight:     
      abbrev: aus           
      mana: 10            
      cambrinth:            
      - 10
    Destiny Cipher:      
      abbrev: dc           
      mana: 430             
      focus: abacus        
      worn_focus: false
    Read The Ripples:      
      abbrev: rtr          
      mana: 420            
      focus: abacus        
      worn_focus: false

The script will use my abacus for casting dc...but will NOT use it for casting rtr:

[buff]>prepare dc 430
You feel intense strain as you try to manipulate the mana streams to form this pattern, and you are not certain that you will have enough mental stamina to complete it.
You raise your arms skyward, chanting the equation of the Destiny Cipher spell.
>
[buff]>get my abacus
You get a moonstone-beaded watered steel abacus etched with complex sigils from inside your leather pack.
>
[buff]>invoke my abacus 
You lift your abacus toward the sky and will the mana streams to bend into it.
Roundtime: 20 sec.
>
Your abacus steadily brightens, until it burns like a glowing white torch!
You direct the flow of power you've conjured up into your spell pattern, taking much of the strain of empowering it off you.
>
Your abacus fades over the course of a few seconds, returning to normal.
>
[buff]>stow my abacus
You put your abacus in your leather pack.
>
You feel fully prepared to cast your spell.
>
[buff]>cast
You close your eyes and take several slow, calming breaths.
The mental strain of this pattern is considerably eased by your ritual focus.
Your mind is cleared of distraction, the present and the mundane.  You are adrift in an unbroken sea of silent darkness.

A chorus of voices fills your mind, a cacophony of languages both known and unfamiliar.  They overlap, merge, submerge, muffle and distort.  You hone in on one voice at a time, memorizing its unique cadence before shifting your focus to the next voice.  As you come to know their message, their words, their intent, you realize the throng of voices is really one voice, one language, one truth.

The darkness recedes and you find your thoughts unified, your mind honed to a prophetic purpose.
>
[buff]>prepare rtr 420
You feel intense strain as you try to manipulate the mana streams to form this pattern, and you are not certain that you will have enough mental stamina to complete it.
You raise your arms skyward, chanting the equation of the Read the Ripples spell.
>
You feel fully rested.
>
The flame opals adorning the triquetra symbol of your blighted gold bracelet flare with radiance, a sense of peace and restfulness spreading through you to ease your mental fatigue.
>
You feel fully prepared to cast your spell.
>
[buff]>cast
You gaze towards the heavens seeking their silent guidance.
You strain, but are too mentally fatigued to finish the pattern, and it slips away.

Set my yaml back to using astrology_buffs and script works as intended:

astrology_buffs:            
  spells:                  
    - abbrev: pg            
      mana: 10            
      cambrinth:            
      - 20          
    - abbrev: aus          
      mana: 10            
      cambrinth:            
      - 20        
    - abbrev: dc          
      mana: 430            
      focus: abacus        
      worn_focus: false      
    - abbrev: rtr          
      mana: 420            
      focus: abacus        
      worn_focus: false   
[astrology]>prepare rtr 420
You feel intense strain as you try to manipulate the mana streams to form this pattern, and you are not certain that you will have enough mental stamina to complete it.
You raise your arms skyward, chanting the equation of the Read the Ripples spell.
>
[astrology]>get my abacus
You get a moonstone-beaded watered steel abacus etched with complex sigils from inside your leather pack.
>
[astrology]>invoke my abacus 
You lift your abacus toward the sky and will the mana streams to bend into it.
Roundtime: 20 sec.
>
The flame opals adorning the triquetra symbol of your blighted gold bracelet flare with radiance, a sense of peace and restfulness spreading through you to ease your mental fatigue.
>
You feel fully rested.
>
Your abacus steadily brightens, until it burns like a glowing white torch!
You direct the flow of power you've conjured up into your spell pattern, taking much of the strain of empowering it off you.
>
Your abacus fades over the course of a few seconds, returning to normal.
>
[astrology]>stow my abacus
You put your abacus in your leather pack.
>
Ascendant Talvairian came through the Lich Gate.
>
Ascendant Talvairian goes south.
>
[astrology]>sit
You sit down.
>
[astrology]>cast
You gaze towards the heavens seeking their silent guidance.
The mental strain of this pattern is considerably eased by your ritual focus.
At the ritual's peak, your prophetic connection blooms a thousand-fold.  You are alone.  An infinitesimal speck in space and time adrift in an infinite sea of possibility.  The course of your past, present and future are dictated by ceaseless currents beyond any mortal control.

But infinitesimal is not insignificant, and control is not understanding.  These are indisputable facts etched into the essence of every prophet.
mwest152 commented 7 years ago

mine works and looks like this:

astrology_buffs:            
  spells:                   
    - abbrev: pg            
      mana: 20              
      cambrinth:            
      - 20
      - 20      
    - abbrev: aus           
      mana: 20            
      cambrinth:            
      - 22
      - 22      
#    - abbrev: dc           
#      mana: 550             
#      focus: abacus        
#      worn_focus: false      
    - abbrev: rtr          
      mana: 550            
      focus: abacus        
      worn_focus: false  
Missah commented 7 years ago

astrology_buffs works fine - it's astrology set up as a waggle that doesn't work. ;validate is telling me to not use astrology_buffs any more. [validate: WARNING:< YOU HAVE OUTDATED SETTINGS THE SETTING astrology_buffs[spells] IS NO LONGER USED. Astrology buffs now uses a waggle set named astrology! >]

jandersson commented 7 years ago

I believe the issue was "Read The Ripples" should be "Read the Ripples". Alternatively you could specify ritual: true in the spell data. When you leave info out, dependency will merge your spell data with what is on file in base-spells.yaml. That merge looks for spells that have the same name (case sensitive). Its going to look for a spell with exactly the name typed out here: https://github.com/rpherbig/dr-scripts/blob/master/data/base-spells.yaml#L996

rpherbig commented 7 years ago

@Missah Can you test changing Read The Ripples to Read the Ripples?

Missah commented 7 years ago

Gah....capitalization gets me every time. :(

Changed it to Read the Ripples, works fine.

Sorry I took up so much of your time for MY mistake.

You guys are the best. Thank you so much for all that you do.

rpherbig commented 7 years ago

I'm just glad it's working now. And this gives us ideas of what we need to fix in the future.