Jump to content

Need help with a personal mod.


Weavle105

Recommended Posts

So I decided to f*** around with the game files for a bit in hopes of finding a way to make the Vestal's heals reduce stress as well, and while I have found a way, the group stress heal for Divine Comfort seems to be a lil' wonky, most notably, the level 1 version of the spell is healing 4 stress when it should be healing 1. As an aside, I will fully admit that, in my extreme inexperience when it comes to coding, I just cannibalized code from the effects that other heroes have on them to try and get this to work.

 

 

 

Here's the custom coding I had down for Divine Grace's (the single heal) stress heal in the effects file

 

effect: .name "Vestal HealStress 1" .target "target" .curio_result_type "positive" .chance 100% .healstress 4 .on_hit true .on_miss false .queue true
effect: .name "Vestal HealStress 2" .target "target" .curio_result_type "positive" .chance 100% .healstress 5 .on_hit true .on_miss false .queue true
effect: .name "Vestal HealStress 3" .target "target" .curio_result_type "positive" .chance 100% .healstress 6 .on_hit true .on_miss false .queue true
effect: .name "Vestal HealStress 4" .target "target" .curio_result_type "positive" .chance 100% .healstress 7 .on_hit true .on_miss false .queue true
effect: .name "Vestal HealStress 5" .target "target" .curio_result_type "positive" .chance 100% .healstress 8 .on_hit true .on_miss false .queue true
And here's what I had for the skill in Vestal's file
combat_skill: .id "divine_grace" .level 0 .heal 4 6 .launch 43 .target @4321 .effect "Vestal HealStress 1" .generation_guaranteed true
combat_skill: .id "divine_grace" .level 1 .heal 5 7 .launch 43 .target @4321 .effect "Vestal HealStress 2"
combat_skill: .id "divine_grace" .level 2 .heal 6 8 .launch 43 .target @4321 .effect "Vestal HealStress 3"
combat_skill: .id "divine_grace" .level 3 .heal 7 9 .launch 43 .target @4321 .effect "Vestal HealStress 4"
combat_skill: .id "divine_grace" .level 4 .heal 8 10 .launch 43 .target @4321 .effect "Vestal HealStress 5"

 

 

 

Likewise, the stress heal effect of Divine Comfort (the group heal) in the effects file

 

effect: .name "Vestal GroupHealStress 1" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 1 .on_hit true .on_miss false .queue true
effect: .name "Vestal GroupHealStress 2" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 2 .on_hit true .on_miss false .queue true
effect: .name "Vestal GroupHealStress 3" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 3 .on_hit true .on_miss false .queue true
effect: .name "Vestal GroupHealStress 4" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 4 .on_hit true .on_miss false .queue true
effect: .name "Vestal GroupHealStress 5" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 5 .on_hit true .on_miss false .queue true
And the coding for the respective skill in Vestal's file
combat_skill: .id "gods_comfort" .level 0 .heal 1 1 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 1"
combat_skill: .id "gods_comfort" .level 1 .heal 2 2 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 2"
combat_skill: .id "gods_comfort" .level 2 .heal 3 3 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 3"
combat_skill: .id "gods_comfort" .level 3 .heal 4 4 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 4"
combat_skill: .id "gods_comfort" .level 4 .heal 5 5 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 5"

 

 

 

Anyone see anything I did wrong here? I feel like I've gotta be missing something obvious, but I couldn't find it to save my life...

Link to comment
Share on other sites

Okay, so after my programmer friend gave me an idea to fiddle around with the numbers a bit, I'm relatively sure that the issue's in these two lines of codes

 

 

combat_skill: .id "gods_comfort" .level 0 .heal 1 1 .launch 432 .target @~1234 .effect "Vestal GroupHealStress 1"

 

effect: .name "Vestal GroupHealStress 1" .target "performer_group_other" .curio_result_type "positive" .chance 100% .healstress 1 .on_hit true .on_miss false .queue true

 

 

The issue here is that, instead of just healing 1 stress, it's healing 1 x 4 stress, which I tested by changing the 1 to a 2, which got me 8 stress heal afterwards. Anyone have any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...