Modding Guide ProjectIn this thread I will post information on various aspects of TL2 modding.
Each post will expand on a particular element, and will be updated as new information or corrections come in. I make no guarantees on the accuracy of the information contained herein.
Once the content of each post is fully written, proofread, and verified, it will eventually be copied to the
Torchmodders Wiki. The post will then be updated with a link to the appropriate Wiki article.
Please
do not post comments, ideas, or suggestions on this thread. There is a
separate topic for those.
Outlander-style Charge Coding (TBA)WIP:
- Describe code elements and in-game effects.
- Describe scaling aspects, and comma-separation.
- Describe scaling inversion.
- Describe passive skill application.
- Demonstrate Share the Wealth adaptations.
- Explore triggerable coding.
Charge-Bar UI: The UI of the Charge Bar is split into 3 pieces.
You have the base UI coding, under
MEDIA/UI/MENUS/UNITUNIQUEMENUS/<filename>.LAYOUT From that file, you can find links to the `imageset` entries that define what the Charge-bar looks like…and a link to the **separate** Layout file in which the Charge-bar tooltip resides.
If you want to change the "display name" of your Charge-bar (or its description, for that matter), you should edit the "tooltip" Layout file, not the baseline one.
[EFFECT]
<STRING>NAME:Wanderer_Passive_CS
<STRING>ACTIVATION:PASSIVE
<STRING>DURATION:ALWAYS
<STRING>TYPE:PERCENT CAST SPEED
<STRING>STATMODIFYNAME:Player Charge Percent
<STRING>STATMODIFYPERCENT:100
<BOOL>SAVE:true
<BOOL>EXCLUSIVE:true
<FLOAT>MIN:0.1
<FLOAT>MAX:0.1
<STRING>STAT_SOURCE_TYPE:ON UPDATE SELF
[/EFFECT] [EFFECT]
<STRING>NAME:Wanderer_Passive_CS_max
<STRING>ACTIVATION:PASSIVE
<STRING>DURATION:ALWAYS
<STRING>TYPE:PERCENT CAST SPEED
<STRING>STAT_SOURCE_TYPE:ON CAST CASTER
<BOOL>SAVE:false
<BOOL>EXCLUSIVE:true
<FLOAT>MIN:5
<FLOAT>MAX:5
[/EFFECT] <INTEGER>CHARGES_MAX:1
<FLOAT>CHARGE_DPSMULT:20
<FLOAT>CHARGE_DEGRADE_SECONDS:3
<FLOAT>CHARGE_DEGRADE_PAUSE:5
[SHOWUI_ALWAYS]
<STRING>MENU:OUTLANDERCHARGEBAR
[/SHOWUI_ALWAYS]
[CHARGE_AFFIXES_TO_WATCH]
<STRING>AFFIX:WANDERER_PASSIVES
[/CHARGE_AFFIXES_TO_WATCH]
[AFFIXES]
<STRING>AFFIX:WANDERER_PASSIVES
[/AFFIXES]
[EFFECT]
<STRING>NAME:Wanderer_Charge_Rate
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:ALWAYS
<STRING>TYPE:PERCENT CHARGING BONUS
<BOOL>SAVE:true
<FLOAT>MIN:-25
<FLOAT>MAX:-25
[/EFFECT]
[EFFECT]
<STRING>NAME:Wanderer_Max
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD TRIGGERABLE
<FLOAT>CHANCE:100
[/EFFECT]
[EFFECT]
<STRING>NAME:Wanderer_Unmax
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD TRIGGERABLE
<FLOAT>CHANCE:100
[/EFFECT]
[EFFECT]
<STRING>NAME:Wanderer_Deplete
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD TRIGGERABLE
<FLOAT>CHANCE:100
[/EFFECT]
[EFFECT]
<STRING>NAME:Wanderer_Focus_Hit
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD TRIGGERABLE
<FLOAT>CHANCE:100
[/EFFECT]