Torchmodders

Modding => Modding Questions => Topic started by: Wolven on August 24, 2014, 04:49:41 am


Title: Adding points to player skills and stats pool with 'add stat' effect
Post by: Wolven on August 24, 2014, 04:49:41 am
I'm trying to control the level of the players in TLA for testing. I want to be able to level the player, to specific level and/or give the player N amount of skill and stat points.

I've asked about this before in the Runic forums: Level Up a Player N levels with consumable or logic (http://forums.runicgames.com/viewtopic.php?f=57&t=60030)

I've tried making a quest repeatable, by adding  <BOOL>REPEATABLE:1 to the quest, but I can't get it to work. I can only do the quest once.

So I've decided to revisit using a consumable or a skill, or some other method of setting the level of the player and/or  giving it skill and stat points.

There are three stats in the game I want to manipulate: 'current_player_skill_pts', 'current_player_stat_pts' and 'Experience Level'.

Now I'm trying to simply create a potion which will add N points to one or more of the stats above. I'm trying to do this with an affix (Effect) on the potion. The affix looks like this:

Code: [Select]
[EFFECT]
<STRING>NAME:current_player_skill_pts
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD STAT
<STRING>PARTICLE_FX:media/particles/events/GenericPotion.layout
<FLOAT>MIN:5
<FLOAT>MAX:5
<FLOAT>CHANCE:100
[/EFFECT]

In my frustrated mind this should add 5 points to the players skill point pool. But it doesn't. The potion does nothing... So any idea how I can achieve this?
Title: Re: Adding points to player skills and stats pool with 'add stat' effect
Post by: RnF on August 26, 2014, 07:08:24 pm
Not sure why that isn't working. 

There is a SET STAT effect you could try.