Aller au contenu

Photo

how to raise the limit of classes?


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

#1
nwn2newbie

nwn2newbie
  • Members
  • 2 messages
 I'd like to change the script so that more than 4 classes can be selected by the PC. Is it possible? Tia!:blush:

#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
not possible, in any practical way.

Write your own game.

It's hard wired to four classes.

#3
Shallina

Shallina
  • Members
  • 1 011 messages
I think it's hard coded in the GUI in the lvling process.

Basically to do it you need to do a custom UI for th lvling wich won't stop you at 4 classes.

It's possible in one of the last patch we got function that allow us to make our own scripted GUI, it's just that I think no one has done it yet. It's a really important work, doing it propely will take as much time as doing a midle sized quality module.
You'll need to script all the check and rule enforcement, all the DnD 3D rule are in the 2DA. So bacsically you need to load the 2DA and check for the rule in order to construc selection list.

Here one of the best tutorial I found :

http://gameofthrones....html?showall=1

I scratched the beggining of the possibility of a full scripted GUI for the BGR project for a full custom lvl up GUI that would allow more freedom (number of classe > 4, restrained list of clas available instead of 1 or all, possibility to do more than 30 lvl), but found an other way to do what I wanted.

It's definetly possible. But it's a really big work.

All the lvling restriction are hard coded in THE GUI. So to bypass them you need to do a custom scripted GUI, wich is possible, but not an easy task.


The one who will do a full scripted GUI, just by using the default XML from the original GUI, will be a community hero :)
the basic Idea is to tweak the default XML GUI file to call scripted function instead of hard coded function. but since the player choice are stored in hard coded VAR you can't do only the screen that interest you, you need to do all of them.

Modifié par Shallina, 30 septembre 2011 - 06:22 .


#4
The Fred

The Fred
  • Members
  • 2 516 messages
It's not just the GUI. How do you add a class to someone? This could be tested, but I think the game functions are actually hardcoded not to let you have more than four classes.

Yes you could make a custom GUI which would let you gain class features, feats etc, but you wouldn't actually gain levels in that class. So, you'd need to make sure that all the scripts not just for class features and feats but also for all calls to GetHitDice() and GetLevelByclass() are rewired to take into account some variable which represents how many levels you could have, etc. So, possible? Maybe. But very much on the limits of what it's feasible to do, in terms of the amount of work required.

Rewiring the GUI is all well and good, but more GUI callbacks are not only hardcoded, they're almost undocumented. A lot of the time the scripting functions to do those sorts of things just don't exist.

#5
Shallina

Shallina
  • Members
  • 1 011 messages
you can give level by script.

#6
nicethugbert

nicethugbert
  • Members
  • 5 209 messages
People have been exploring custom level up including the GUI and it's full of stumbling blocks. IIRC, Binary made some progress but along the way he had to modify his original intent to work with the engine.

I would suggest doing the same. For example, you can use a custom PrC and feat trees to mimic unlimited class selections.

#7
nwn2newbie

nwn2newbie
  • Members
  • 2 messages

nicethugbert wrote...

People have been exploring custom level up including the GUI and it's full of stumbling blocks. IIRC, Binary made some progress but along the way he had to modify his original intent to work with the engine.

I would suggest doing the same. For example, you can use a custom PrC and feat trees to mimic unlimited class selections.


Thanks for the info! Where can I find the said mod?

Also for the PrC, I don't quite get the idea here. How am I supposed to use one PrC for unlimited selectable classes?

#8
The Fred

The Fred
  • Members
  • 2 516 messages

Shallina wrote...
you can give level by script.

Can you give a level in a fifth class by script?

#9
Shallina

Shallina
  • Members
  • 1 011 messages
nevers tried.

#10
nicethugbert

nicethugbert
  • Members
  • 5 209 messages

nwn2newbie wrote...

nicethugbert wrote...

People have been exploring custom level up including the GUI and it's full of stumbling blocks. IIRC, Binary made some progress but along the way he had to modify his original intent to work with the engine.

I would suggest doing the same. For example, you can use a custom PrC and feat trees to mimic unlimited class selections.


Thanks for the info! Where can I find the said mod?

Also for the PrC, I don't quite get the idea here. How am I supposed to use one PrC for unlimited selectable classes?


It's custom work for the module he's still working on.  You'd have to find him on IRC or on these forums.  his account name is 0100010.

The idea with the PrC is to let it use skilld and feats from different classes which is the effect you get from haveing multiple classes.

#11
The Fred

The Fred
  • Members
  • 2 516 messages
Yeah, I have thought of some interesting work-arounds and stuff to do, but I think you would need to rework all the references to class and level in order to give someone all the actual benefits of a full level. Still, I'm pretty sure 0100010 will come up with some neat stuff.