Author Topic: Hiding alignment from the character sheet  (Read 464 times)

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Hiding alignment from the character sheet
« on: July 06, 2012, 06:25:51 pm »


               I tried to hide alignments by changing the string references in some 2da files, but it turned out wrong: the alignment stays on the character sheet, but disappears from creature properties in the toolset. I now realize that the files I changed, iprp_aligngrp.2da and iprp_alignment.2da probably refer to item properties. Where might I alter the strings that appear on the character sheet? Is it possible?

I examined a lot of the .mdl files, but couldn't find what I need. The most I was able to do was (re)move the panel that displays character name, full alignment and class. I don't want to hide all of that, and I wasn't able to remove the alignment from the list below, the one in the form of "lawful(#) good(#)". I did this in a text editor, as I don't know a fancier way.

I would like to either remove the bits from the character sheet that display full alignment (on top), alignment title, lawful(#) good(#), or to change the strings to " " and "Unknown". Then all companion NPCs would be set to True Neutral and it would say Unknown(50)  Unknown(50) . It's probably a weird question, but is any of that possible, or are these strings hardcoded (together)? '^_^'
               
               

               


                     Modifié par Lovelamb, 06 juillet 2012 - 05:27 .
                     
                  


            

Legacy_Rubies

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #1 on: July 06, 2012, 07:55:19 pm »


               You can remove them by editing the character sheet .gui file. Can't remember what it is off the top of my head but I can do it for you in a few hours' time if you want.

EDIT: Since this is under the scripting forum, I don't know any way to do it via scripting. I don't think you can even modify most GUI elements via scripting (except using PopUpGUIPanel).
               
               

               


                     Modifié par Rubies, 06 juillet 2012 - 07:21 .
                     
                  


            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #2 on: July 06, 2012, 10:11:02 pm »


               Well, yes, it's not scripting, exactly. I don't think I know how to modify gui files.
               
               

               
            

Legacy_Rubies

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #3 on: July 07, 2012, 04:06:44 am »


               https://dl.dropbox.c...CHRSHT_CHAR.jpg

Small downside is that the class, race, and alignment are treated as one object. I'll see if there's any way of isolating it when I get home in a bit.
               
               

               


                     Modifié par Rubies, 07 juillet 2012 - 03:07 .
                     
                  


            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #4 on: July 07, 2012, 07:26:17 am »


               Could you also remove alignment from the list below?

I can't figure what tells the gui to read the name, class and alignment. They can take different values, so there must be somewhere they are taken from.
               
               

               
            

Legacy_Rubies

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #5 on: July 07, 2012, 02:31:54 pm »


               The entire GUI/GUI mdl structure is a little bit odd. In the mdl files you have two dummy nodes that indicate the start/end of text - in this case they're called CHARALIGNclass0 and CHARALIGNclass1, if I remember right. All I'm doing is resizing them so there isn't enough space between the two for text (putting them both at the same x/y/z coords).

The list will probably be contained in another file, I'll give it a shot later. I'm only editing the ingame page and not the one in character generation - that's what you were after, right? Probably no reason to edit the character gen one when people are picking the alignment anyway. '<img'>
               
               

               
            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #6 on: July 07, 2012, 05:16:45 pm »


               Yes, the player should have an alignment of his/her choice, even if it doesn't show. I can just display it through some script. Thank you for looking into this.
               
               

               
            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #7 on: July 07, 2012, 06:33:05 pm »


               The character's race doesn't really need to show on the sheet, either, if that makes it any easier.
               
               

               
            

Legacy_Rubies

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +0/-0
Hiding alignment from the character sheet
« Reply #8 on: July 08, 2012, 10:12:08 pm »


               https://dl.dropbox.c...chrsht_char.mdl

As a temporary solution until I figure out the rest, every client will need that...