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?
Setting Character Stats?
Débuté par
lightnb
, juil. 28 2010 10:10
#1
Posté 28 juillet 2010 - 10:10
#2
Posté 29 juillet 2010 - 05:02
all stats and properties are set by scripts, use your own or make sure your creatures are setup for biowares levelup system.
#3
Posté 01 août 2010 - 02:08
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!
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
Posté 01 août 2010 - 02:42
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!
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
Posté 01 août 2010 - 05:39
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
Posté 01 août 2010 - 08:38
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.
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 .





Retour en haut






