Editing Traits

Post Reply
Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Editing Traits

Post by Xephyr » Fri Jun 20, 2014 9:53 pm

I am looking to understand and edit traits. For example, looking at the store_tp.lua file, it shows the MOD_STORETP,getPower(). Where is the getPower() call pulling the value from? There is also onEffectTick(target,effect). Where are these values stored/edited?

I'm not a programmer, so I haven't been able to track this backward to where all of these values are pulled from. Any assistance would be greatly appreciated.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Editing Traits

Post by kjLotus » Fri Jun 20, 2014 10:07 pm

traits don't have scripts, sounds like you're poking around in effects

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Editing Traits

Post by Xephyr » Fri Jun 20, 2014 10:11 pm

True, it's effects like "Store TP+1" that are on equipment. I'd like to be able to edit how much TP each Store TP+1 adds, or how much HP/MP a tick the added Regen/Refresh effects in armor give. My hope was that any changes wouldn't need to be made at each piece of equipment, which would mean editing the effects themselves.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Editing Traits

Post by kjLotus » Fri Jun 20, 2014 10:24 pm

ehh, you can modify the addModifier function in the core if you want to do that

Post Reply