This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION]  how to create a talent tree ... in game?  (Read 3271 times)

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
[QUESTION]  how to create a talent tree ... in game?
« on: July 10, 2013, 10:10:07 pm »
I'll need to create a talent tree for spells, but as it depends on what spells you learn, I'm looking how to create a talent tree "on the fly" in the game.
Thank you by advance for your answers.


J'aurai besoins de créer un arbre de talents pour des sorts, mais comme cela dépend des sorts que l'on apprend, je cherche comment créer un arbre des talents "à la volé" dans le jeu.
Par avance merci pour vos réponses.

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #1 on: July 10, 2013, 10:41:47 pm »
I hate it when people say this... But that sounds impossible. To add an extra talent tree requires multiple different dbc edits. Then to add what talents go where and how many points in each, requires even more dbc edits. Let alone making the talents (spells) themselves being dbc. None of which can be done without requiring a new patch and restart for both the server and the client.

The best you could do is probably have a predetermined set of talent trees that are hidden via xml/lua interface editing, allowing them to be shown under certain conditions. However this would require a lot of creativity to emulate it being "on the fly".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #2 on: July 11, 2013, 07:50:23 am »
I agree with you, but the idea would be to modify an existing tree.
I searched a bit in the core, but until now I have not found anything that puts me on the road.
I also think something like an addon lua + xml and control from the core but it seems to be a lot of work and time to achieve it. So before I started this adventure I prefer to ask, sometimes someone would be another track or other ideas.
Anyway thank you for your reply.


Je suis d'accord avec vous mais l'idée serait de modifier un arbre déjà existant.
J'ai cherché un peu dans le core mais jusqu'a présent je n'y ai rien trouvé qui me mette sur la voie.
Je pense moi aussi à quelque chose comme un addon, lua+xml et pilotage à partir du core mais cela me semble être beaucoup de travail et de temps pour le réaliser. Donc avant de me lancer dans cette aventure je préfère demander, des fois que quelqu'un aurait une autre piste ou d'autres idées.
En tout cas merci pour votre réponse.

WhiteDarkrai

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 45
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #3 on: July 11, 2013, 10:32:24 am »
Apparently it's easy to do with the right dbc editor. Btw, it's in the talent.dbc
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #4 on: July 11, 2013, 05:13:59 pm »
Talents.DBC is just the tip of the iceberg.  You have quite a bit of interface work, core edits...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #5 on: July 11, 2013, 06:45:23 pm »
Quote from: "WhiteDarkrai"
Apparently it's easy to do with the right dbc editor. Btw, it's in the talent.dbc
It is too easy to do ... the spells are not determined in advance.

Ca c'est trop facile à faire ... les spells ne sont pas déterminés à l'avance.

Quote from: "deep6ixed"
Talents.DBC is just the tip of the iceberg.  You have quite a bit of interface work, core edits...
Yes I know, I know ... I think I'll do it all alone in my corner, protocols, management, everything, everything ... sniff.
That'll teach me to ask silly questions.

Oui je sais, je sais ... je crois que je vais faire ça tous seul dans mon coin, les protocoles, la gestion, tout ça, tout ça ... snif.
Ca m'apprendra à poser des questions idiotes.

happyhack

  • Contributors
  • Race Changer
  • *****
  • Posts: 38
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #6 on: July 15, 2013, 01:43:51 am »
heya,
im not sure what ur trying to do... (ajouter un arbre de talent qui varie selon les skills que le perso à appris?)

if thats it, its an interresing idea, i already though about it. lua/xml is trully powerfull, u can do ALL gui work, using only a few lua function (hardcoded in the client) to do the inaccessible work.

I once made a window displaying guild money (using lua/xml) and getting data from server through a lua function i written hardcoded in the client. (i did it to allow guild money in wow 1.12)

It wasnt that much of work... just a little lua editing, some asm editing, server code changes, and database change to store guild money data. It just take a few days...

Anyway, there is enough reversing work already done so u can really do ANYTHING u want. u can add any functionality u would like to the game.

sorry if i misunderstood u. If im right then i would be glad to help.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #7 on: July 15, 2013, 02:21:31 pm »
I think you understand what I want to do.
To give an example:
I want to learn dagger => quest => spell => talent
with talent:
1 point => dagger "gray, white"
5 points => dagger "green"
10 points => dagger "blue"
20 points => dagger "violet"
30 points => dagger "orange"

I pass on details such as the level of the object that requires a level of competence.

So if I have the talent dagger and 5 skill points I can do one-handed sword. With 5 skill points to the sword with one hand, I can do two-handed sword.
Each of these spells must receive talent points to allow the use of weapons based on the "levels".

Eg for fire spells, depending on talent points that can start a fire boulle level 1,2,3 ...
Each level still doing more damage.

Depending spells branches are opened like the arms and / or fire based talent points that are placed open or close opportunities.

But there is no requirement to learn the spell "sword in hand" or the spell "Fireball".

To return to the talent tree itself, it'll have to understand a little about how the client solves this problem by hoping that the server sends it information about the tree and spells that compose it. In the worst case I'll have a factory interface lua / xml and I rework the server for data management. If you are trying to help me, why not, but I know that does not always have the time I would like to have for my devellopement, then it takes some time ...


Je crois que vous avez bien compris ce que je cherche à faire.
Pour donner un exemple :
Je veux apprendre dague => quete => spell => talent
avec le talent :
1 point => dague "grise, blanche"
5 points => dague "verte"
10 points => dague "bleu"
20 points => dague "violette"
30 points => dague "orange"

Je passe sur certains détails comme le niveau de l'objet qui demande un niveau de compétence.

Donc si j'ai le talent dague et 5 points de compétence je peux faire épée à une main. Avec 5 points de compétence pour l'épée à une main, je peux faire épée à deux mains.
Chacun de ces spells doit recevoir des points de talent pour permettre l'utilisation des armes en fonction des "niveaux".

Par exemple pour les spells de feu, en fonction des points de talents cela permet de lancer une boulle de feu de niveau 1,2,3 ...
Chaque niveau faisant toujours plus de dégats.

En fonction des spells on ouvre des branches comme celle des armes et/ou du feu qui en fonction des points de talent qui sont à placer ouvrent ou ferme des possibilités.

Mais rien n'oblige à apprendre le spell "épée à une main" ni le spell "boule de feu".

Pour en revenir à l'arbre de talent lui-même, il va falloir que je comprenne un peu comment le client règle ce problème en esperant que le serveur lui envoie les informations sur l'arbre et les spells qui le compose. Au pire des cas il faudra que je fabrique une interface en lua/xml et que je retravail le serveur pour la gestion des données. Si cela vous tente de m'aider, pourquoi pas, mais sachez que je ne dispose pas toujours du temps que je souhaiterai avoir pour mon devellopement, alors cela prend un certain temps ...

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #8 on: July 25, 2013, 07:51:19 pm »
Okay, well here it is, the server does not help me at all this time, so I'm going to have this talent tree as an addon. This promises hot hot boiling and long time client / server disputes.

Bon et bien voila, le serveur ne m'aide pas du tout cette fois ci,alors je vais devoir faire cet arbre de talent sous la forme d'un addon. Cela promet des moments chaud chaud bouillant et de longues disputes client / serveur.

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION]  how to create a talent tree ... in game?
« Reply #9 on: July 30, 2013, 08:05:44 am »
I found some interesting things in Talent.dbc that could well prevent me to make this tree. I will have to do some tested but it might work well in a somewhat simple but you should be fine shape.


J'ai trouvé des choses intéressantes dans Talent.dbc qui pourraient bien m'éviter de la faire cet arbre.  Il va me falloir faire quelques testes mais ça pourrait bien fonctionner sous une forme un peu simple mais ça devrait aller.