Aller au contenu

Photo

Setting Character Stats?


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

#1
lightnb

lightnb
  • Members
  • 11 messages
I've seen several posts here with a similar problem, but haven't found a solid solution yet... The issue is charectors that have very little health and mana when created.

I've added two different charectors ("creatures") to my area, and created a script that adds them to my party on load. This works as expected, but the charector's health shows 4/4, and mana is 16/16. A sinlge hit kills them instatly. In the single play campaign, you can add points to constitution, willpower, etc when you level up, but all the charectors start with something.

Where do I go to set the initial attributes for charectors?

#2
CID-78

CID-78
  • Members
  • 1 124 messages
all stats and properties are set by scripts, use your own or make sure your creatures are setup for biowares levelup system.

#3
lightnb

lightnb
  • Members
  • 11 messages
Could you elaborate on that please?

I have this:

object oFollower = GetObjectByTag("test_companion",0);
UT_HireFollower(oFollower, 0);

Which adds the follower to my party at the start of the game. BUT- I didn't see any functions for initializing attributes.

I was expecting something like:

SetWillpower(15);
SetStrength(12);
SetConstitution(14);
SetCunning(16);

and so on.... What are the function names I'm looking for? Or is there some documentation on this?

Thanks!

#4
lightnb

lightnb
  • Members
  • 11 messages
I've been able to set a stamina level with:



SetCreatureMaxStamina(oFollower,100);

SetCreatureStamina(oFollower,100);



...But have been unsuccessful at affecting health or mana.



Also, My "creature" is set as class "Warrior", but in-game, it says "class: ", with no class listed. My test companion mage however, does show class as "mage" in game. Any advise appreciated!

#5
CID-78

CID-78
  • Members
  • 1 124 messages
there is a function called SetCreatureProperty() that you need to call for each property with the right parameters. this include class, background and other stats.

#6
Hel

Hel
  • Members
  • 420 messages
Alternatively you can also create level-up templates for your followers. After setting the templates in the creatures' resources, you only have to ensure that you award them with the appropriate amount of experience for the level you want them to start at. In the same script you can use the SetAutoLevelUp function that allows you to choose between having the characters level up automatically or having the players do it manually.

Here's a tutorial on how you can make your own level-up templates: DA Builder Wiki : Follower Tutorial

Good luck, and if you have any more questions, you know where to ask. :)

Modifié par Helekanalaith, 01 août 2010 - 08:40 .