Aller au contenu

Photo

Scripting Help, Please


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

#1
Silver Oak SS

Silver Oak SS
  • Members
  • 9 messages
We use both the OC and MotB crafting systems with one small problem, the two spirit feats for crafting.  If we just add them to a character they will get an error on the next log in for to many feats.  There is a way to add them through hero creator, but that only works a third of the time.  I tried to put them as bonus feats on an item but I am builder not a scripter.  Any thoughts, ideas, or help would be greatly appreciated.

Silver Oak
Kingdom of Silversun

#2
Morbane

Morbane
  • Members
  • 1 883 messages
there should be a setting you can specify to allow modified characters or not iirc

#3
MasterChanger

MasterChanger
  • Members
  • 686 messages

Morbane wrote...

there should be a setting you can specify to allow modified characters or not iirc


This would be "enforce legal characters" on NWServer. You'd want that un-checked for this situation.

#4
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
or set it the nwn2player.ini, but that is enforce legal characters.

#5
Silver Oak SS

Silver Oak SS
  • Members
  • 9 messages
We do keep the enforce legal character on. This why I wanted to script an item that would give those to two spirit feats so that we do not have to turn that off. Only certain characters are allowed to do those enchantments as they have rped there way up in the guild.

#6
MasterChanger

MasterChanger
  • Members
  • 686 messages

Silver Oak SS wrote...

We do keep the enforce legal character on. This why I wanted to script an item that would give those to two spirit feats so that we do not have to turn that off. Only certain characters are allowed to do those enchantments as they have rped there way up in the guild.


Ah, well that is different; you hadn't given much context in your initial post. What you want is probably not technically a scripted solution at all. The feats which can be added as an Item Property in the Toolset are determined by iprp_feats.2da. If the feat you want to add as an Item Property in the TS does not appear, you can add it to the 2da.

Alternatively, you could any feat you want as an Item Property through a script. Since it sounds like it might be DMs granting a token or some similar situation, though, it would probably be easier just to have an override iprp_feats.2da and make the item in the TS.

#7
Silver Oak SS

Silver Oak SS
  • Members
  • 9 messages
Thank You, that is what I was hoping for, now the next question, how?

#8
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages

Silver Oak SS wrote...

We do keep the enforce legal character on. This why I wanted to script an item that would give those to two spirit feats so that we do not have to turn that off. Only certain characters are allowed to do those enchantments as they have rped there way up in the guild.


You should turn it off, it does not actually prevent any real problems (the cheaters can easily sidestep it), but has multiple issues when in use which make it far more trouble than it's worth for honest players.

You'd have to find the item props 2da file that defines item properties for feats ( iprp_feats.2da ), add the feats to it with a 2da file editor from the vault, then you should be able to add the properties to the item in the toolset. All players and the server would have to have this new 2da.

Modifié par painofdungeoneternal, 24 août 2011 - 07:34 .


#9
Silver Oak SS

Silver Oak SS
  • Members
  • 9 messages
Thank you for your help. We are days a way from a completely new mod so the timing is perfect