Aller au contenu

Photo

Script where plot flag is set and point is given to upgrade stats by one


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
I'm trying to create a script where a plot flag is set and then a point is given to the PC so they can upgrade any stat they want.

What is the function or script command to do this?  Does anyone have an example?

One point to update abilities would be good to know too.

Modifié par Sonmeister, 09 juillet 2010 - 04:05 .


#2
Sunjammer

Sunjammer
  • Members
  • 926 messages
I don't have an example but probably the easiest way is to include sys_rewards_h in your plot script and in the case statement for that plot flag include the following line:
RW_GrantHeroBonusAbilityPoint(4, 1.0);
That will give the hero (i.e. the player's character) 1 attribute point which is what I've assumed you've meant by "stat" or "ability". If you want to give them a skill, spell or talent you just need to change the first parameter.

Modifié par Sunjammer, 10 juillet 2010 - 10:49 .


#3
Sonmeister

Sonmeister
  • Members
  • 167 messages
Awesome, that was exactly what I wanted.