[GUIDE] Statmods and skillmods on items - ProjectSWGCore/NGECore2 GitHub Wiki

Prerequisites

Introduction

When setting the attributes on an item, you may come across the need of setting a statmod/skillmod - but how do you distinguish the two?

The difference between a statmod and a skillmod is pretty vague in SWG and the categories were often mixed together by the developers. Since we don't have a screenshot of every single item in-game, we have set our own "rules" on statmods and skillmods.

List of valid statmods and skillmods

Below is a list of valid statmods. Any other modifier will be a skillmod per definition.

Valid statmods:

  • Agility
  • Constitution
  • Luck
  • Camoflage
  • Stamina
  • Precision
  • Strength

An example of setting a statmod on an item: object.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 30)

Examples of skillmods:

  • Block Value
  • Block Chance
  • Evasion Chance
  • Evasion Value
  • Healing Potency
  • Heal Action Cost Reduction
  • Assault Damage
  • Rifle Damage
  • Rifle Critical Chance
  • ...

An example for setting a skillmod on an item: object.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_me_burst', 2)

Finding the "STF name" of a modifier

When we set statmods/skillmods on items, we'll want to use the "stf name" of the modifier. To do this you'll need to open up TRE Explorer.

File -> Open -> Open TRE/TOC... Step 1

Navigate to where you've installed ProjectSWG and open the sku0_client.toc file. In my case it was E:\PSWG\ProjectSWG. Opening this file can take a while, depending on the speed of your system. Step 2

In the search field, enter "stat_n.stf" and click on the search icon to the right. Step 3

The search will return two files. One of them will be in English and the other in Japanese. Click once on the English version of the file. Step 4

You will now see a table appear on the right-hand side of the program, containing modifier names and STF names. Step 5

The STF name for Bleeding Absorption is absorption_bleeding

To set Bleeding Absorption: 8 on an item, do the following:

object.setIntAttribute('cat_skill_mod_bonus.@stat_n:absorption_bleeding', 8)