Aller au contenu

Photo

custom class and spell


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

#1
slaaleth

slaaleth
  • Members
  • 71 messages
I create a custom class following the tuto on the wiki and it's working I can see my class in the game, but by default my class is take as a mage class, so in my spell tree I see all the mage spell (like creation, entropy,... (but not the spells from mage class , like arcane bolt ant the 3 other)), and I don't want to see this spell, I only want to have my custom spell.

I don't understand where the "class type" is set and why by default my class is take as a mage class.

so if someone know how I can set my class default "type" or how to limit the spell that showed on a class that would be great

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
I suspect you've copied the mage class row in the CLA_base worksheet.

The available spells/talents are governed by the pre-req ability column in ABI_base worksheet which in turn is governed by the StartingAbility1 column in CLA_base (if you've copied the Mage row).

Take a look through ABI_Base worksheet for one of the spells and you will see what I mean.



To have your own spells show up, you can re-use the existing guitype or create a new one. The only thing you will need to change is assigning a separate pre-req ability for your class (can be called anything, just copy one of the HIDDEN abilities and rename). You can then input this ability ID in the StartingAbility1 column in your CLA_ gda and it should work as you expect.


#3
slaaleth

slaaleth
  • Members
  • 71 messages
Hum yes I copy the mage class row, but I already create a hidden alility and I set this ability to my class, by the way I use this ability to make my custom spell only available for my custom class.
(in game my class is "bishop" (what is my new class), and not "mage", so I don't understand why I see the mage spell

I tried to create a new spell and if I put the abilitytype column to 1 the skill can be seen by warrior and rogue class and if I set to 2 it can be seen by mage (1 meen skill and 2 meen spell so it's normal), but the thing I don't understand is that the warrior and rogue skill are both set with 1 in ability type but warrior can only see the warrior skill and rogue the rogue skill, so I think somewhere there is a script or a file that tell wich skill is for wich class but I don't found it...

Modifié par slaaleth, 02 décembre 2010 - 07:03 .


#4
TimelordDC

TimelordDC
  • Members
  • 923 messages
You will have to change the prereqability column in your ABI_ gda to point to your new hidden ability.

#5
slaaleth

slaaleth
  • Members
  • 71 messages
Yeah I already made that, the problem is not for my custom spell, the problem is in my custom class I see my custom spell and the mage spell (sorry if I wasn't  clear before)

the thing is I don't understand why I see the mage spell and I don't know how to diseable that

for now the only way I think I can hide the mage spell for my custom class is to set the "prereqability" for all first mage spell of avery magic schooll to the ID of the HIDDEN_MAGE spell, but it's not a proper way and if I can avoid that it would be better

Modifié par slaaleth, 02 décembre 2010 - 07:08 .


#6
ladydesire

ladydesire
  • Members
  • 1 928 messages
By default, the Mage spells are not restricted, since there is only one Mana-using class; this also applies to Stamina-based talents like the Dual-wield and Archery ones that Warriors and Rogues share. You need to add the row ids for the four Mage spell trees to your guitypes file, and edit those rows to only apply to the Mage class using the hidden talent value for the Mage class (it should be 4022 or 4023).

#7
TimelordDC

TimelordDC
  • Members
  • 923 messages
You will have to override the current starting spells in each of the mage trees and specify 4023 (HIDDEN_WIZARD) as the prereqability for those spells.

Or you could try overriding the guitypes gda and put in 4023 in Ability column for the Entropy, Primal, Creation and Spirit rows.

#8
slaaleth

slaaleth
  • Members
  • 71 messages
ok thank's for your answers I thought there would be another way to limit the spell but if it's the only way I'll do that