Torchmodders

Mod Projects => Lord Nyriox's Playground => Topic started by: Lord Nyriox on July 22, 2018, 05:03:17 pm


Title: [TL2] Modding Guide Project
Post by: Lord Nyriox on July 22, 2018, 05:03:17 pm
Modding Guide Project

In 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 (https://torchmodders.com/wiki/doku.php).  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 (https://torchmodders.com/forums/lordnyriox's-playground/(tl2)-modding-guide-comments/) for those. 
Title: [WIP] Scaling Charge Coding
Post by: Lord Nyriox on July 22, 2018, 06:12:08 pm
Outlander-style Charge Coding (TBA)

WIP:


Charge-Bar UI: 

The UI of the Charge Bar is split into 3 pieces. 

You have the base UI coding, under 
Code: [Select]
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.

Code: [Select]
[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]

Code: [Select]
[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]

Code: [Select]
<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]

Code: [Select]

Code: [Select]

Code: [Select]
Title: [WIP] Model XML Editing
Post by: Lord Nyriox on July 23, 2018, 02:35:30 pm
Editing Models in XML (TBA)

WIP: