Torchmodders

Modding => Modding Questions => Topic started by: steffire3 on April 12, 2017, 04:01:01 am


Title: One Class With Two Charge Bars
Post by: steffire3 on April 12, 2017, 04:01:01 am
@Anarch16sync, @Phanjam, @doudley, @RnF:

Thank you all!

I will try not to resurrect any necro threats unless given official authorization! ;)

I also thank you for allowing me to contribute help on your mods and annoy you with newbie questions at my own pace!

Starting... Now. :D

Is it possible to swap between 2 Charge Bars for the same class?

If it is, then it would help me to forge my plan for a "Twin Class" to be contained into one class, otherwise it would have to be split into two.
Title: Re: One Class With Two Charge Bars
Post by: TwinkleToes on April 12, 2017, 04:58:54 am
its possible to use 2 charge bars
but youll need to use a custom stat for the other one
unfortunately you cant clone the existing charge stat and make an exact copy of TL2's native charge bar and charge mechanics

how and when do charge bars switch around?
this can get really complicated depending on how intricate your system is,
Title: Re: One Class With Two Charge Bars
Post by: steffire3 on April 12, 2017, 05:06:27 am
its possible to use 2 charge bars
but youll need to use a custom stat for the other one
unfortunately you cant clone the existing charge stat and make an exact copy of TL2's native charge bar and charge mechanics

how and when do charge bars switch around?
this can get really complicated depending on how intricate your system is,

My approach is to keep it as simple as possible for compatibility.

The Charge Bar can be switched by a button or a skill if needed. Whichever is the easier option for the game to handle.
Title: Re: One Class With Two Charge Bars
Post by: Phanjam on April 12, 2017, 06:46:24 am
Its definitely possible for a class to have more than 1 charge bar - thats how the Destroyer is set up right now.

Shifting from one bar-stat to the other should also be doable via a skill that will do the ADD STAT/SET STAT.

What i have no idea about is how to visually shift from one bar to the other. Thats for the UI wizards like @Anarch16sync , @lolesch  and @doudley ;)
Title: Re: One Class With Two Charge Bars
Post by: TwinkleToes on April 12, 2017, 06:47:03 am
oh yea, that should be easy to do with a toggle skill that switches on/off
still have no idea why you need 2 charge bars though so i cant really comment on anything else lol.

Title: Re: One Class With Two Charge Bars
Post by: steffire3 on April 14, 2017, 03:46:03 am
Its definitely possible for a class to have more than 1 charge bar - thats how the Destroyer is set up right now.

Shifting from one bar-stat to the other should also be doable via a skill that will do the ADD STAT/SET STAT.

What i have no idea about is how to visually shift from one bar to the other. Thats for the UI wizards like @Anarch16sync , @lolesch  and @doudley ;)

@TwinkleToes @Phanjam

Thanks for all the infomation!

As long as the skill can toggle the 2nd Bar Stats On and the 1st Bar Stats Off then be "switched back to the 1st" when that skill is toggled Off then that would be satisfactory for me as I really don't need 2 visual UI Bars- just 2 Switchable Stat Bars on 1 UI Bar.

I should also mention that my plan involves a mixed modded clone version of the "Outlander and Engineer Bar" merged behavior with stats being increased as the bar fills and "charges" that can be used on certain skills.

I hope a toggle bar skill can handle that even if it means losing the charge that was gained before the switch (I would actually want that to be a factor).

I also wanted to ask if you feel that "Torchlight 2" default charge numbers are too easy to gain with high Strength, Focus and Dexterity Critical Damage filling the bar almost instantly.

I was thinking of having a permanent debuff with this class having a negative -90% Charge Gain and I was wondering if the class would in fact gain 9 less charge out of 10 or if this would simply be negated by gear affixes with a positive Charge Bonus making it -90% + 50% = -40% or = -45%?
Title: Re: One Class With Two Charge Bars
Post by: doudley on April 14, 2017, 06:32:46 am
its possible to use 2 charge bars
but youll need to use a custom stat for the other one
unfortunately you cant clone the existing charge stat and make an exact copy of TL2's native charge bar and charge mechanics

how and when do charge bars switch around?
this can get really complicated depending on how intricate your system is,
I'm with master Twinkle on this. Only one real charge system can be used by a character but we can sure simulate the system even with its own charge bar but I don't recommend showing and hiding the real charge bar menu, maybe have a way to make a stat hide the visual parts of the charge bar instead then make it show the second charge bar inside the real charge bar menu.

In short, your 2 charge bar could be inside one UI menu and a condition (could be a unittheme or a stat) that makes them switch.