collapse

* Important


The forum and all threads have been locked, but are still available for browsing.  There is more information about this here.


The

Is still open for article contributions.

Author Topic: Adding points to player skills and stats pool with 'add stat' effect  (Read 3213 times)

Offline Wolven

  • Operator
  • Unique
  • *
  • Posts: 338
  • Country: no
    • status mod
    • View Profile
  • Mood: mood smiley
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

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?
« Last Edit: August 24, 2014, 11:55:27 am by Wolven »

Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
Re: Adding points to player skills and stats pool with 'add stat' effect
« Reply #1 on: August 27, 2014, 02:08:24 am »
Not sure why that isn't working. 

There is a SET STAT effect you could try.

Tags:
 

Our host and sponsor

* Quick Search


* Mod Boards Activity

* Popular Topics