Aller au contenu

Photo

How do I set a spell so it doesn't show until the user learns it?


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

#1
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
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!

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
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)

#3
Nattfodd

Nattfodd
  • Members
  • 321 messages

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!

Are you talking about something like the Power of Blood spells/talents?

#4
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
Yeah, like Power of Blood. Can't seem to find those scripts anywhere.

#5
anakin5

anakin5
  • Members
  • 258 messages
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.

#6
TimelordDC

TimelordDC
  • Members
  • 923 messages

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.