I am setting up a custom spell, but the wiki tutorial sets it up so the spell appears in the list and the user can choose it to learn it.
How do I set the spell up so that it (and it's ui group) do not appear until the player learns it?
Thanks!
How do I set a spell so it doesn't show until the user learns it?
Débuté par
PavelNovotny
, févr. 24 2010 01:25
#1
Posté 24 février 2010 - 01:25
#2
Posté 24 février 2010 - 02:05
I assume you are granting the spell in-game from an item or convo?
In that case, make the spell require a hidden ability as a pre-req. In-game, fire a script that will grant the hidden ability and then, the spell.
After that, the spell tree should be available during regular level-up.
(not tested but I would guess that's how it can be made to work based on what I've worked on so far and how specializations are done in-game)
In that case, make the spell require a hidden ability as a pre-req. In-game, fire a script that will grant the hidden ability and then, the spell.
After that, the spell tree should be available during regular level-up.
(not tested but I would guess that's how it can be made to work based on what I've worked on so far and how specializations are done in-game)
#3
Posté 24 février 2010 - 02:26
Are you talking about something like the Power of Blood spells/talents?PavelNovotny wrote...
I am setting up a custom spell, but the wiki tutorial sets it up so the spell appears in the list and the user can choose it to learn it.
How do I set the spell up so that it (and it's ui group) do not appear until the player learns it?
Thanks!
#4
Posté 25 février 2010 - 01:06
Yeah, like Power of Blood. Can't seem to find those scripts anywhere.
#5
Posté 25 février 2010 - 01:43
It is a matter of guitypes (see guitypes.xls). Abilities are grouped into guitypes and the entire section is not viewable until the player learns one abilities of the guitype. Exception are class guitypes which are viewable from the start of the game.
Just give a new guitype to your abilities. The player will not see it in his spell book until he effectively learn it.
Just give a new guitype to your abilities. The player will not see it in his spell book until he effectively learn it.
#6
Posté 25 février 2010 - 03:06
anakin5 wrote...
It is a matter of guitypes (see guitypes.xls). Abilities are grouped into guitypes and the entire section is not viewable until the player learns one abilities of the guitype. Exception are class guitypes which are viewable from the start of the game.
Just give a new guitype to your abilities. The player will not see it in his spell book until he effectively learn it.
What I said previously holds. You have to assign a pre-req ability for the guitype to be shown if you don't want the guitype to be visible before you give the spell. In the single player campaign, for classes and specializations, this is done through the assignation of hidden_<class name> abilities.





Retour en haut






