Custom race question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zambaku
    Apprentice
    • Dec 2007
    • 80

    Custom race question

    I wish to make a custom race that dosn't need too eat. I need help with adding the not needing to eat part. What is the trait?
  • Timo Pietilä
    Prophet
    • Apr 2007
    • 4096

    #2
    Originally posted by Zambaku
    I wish to make a custom race that dosn't need too eat. I need help with adding the not needing to eat part. What is the trait?
    In vanilla angband it doesn't exist. Everyone needs to eat.

    Comment

    • Zambaku
      Apprentice
      • Dec 2007
      • 80

      #3
      Ah, okay. No matter^^

      Do you have any tips on where I can see all the bonuses that can be added to races?

      Comment

      • Derakon
        Prophet
        • Dec 2009
        • 9022

        #4
        I assume that basically any flag that can be set on an item, except of course for activations and ignore-elements, can be set on a race.

        Comment

        • Timo Pietilä
          Prophet
          • Apr 2007
          • 4096

          #5
          Originally posted by Derakon
          I assume that basically any flag that can be set on an item, except of course for activations and ignore-elements, can be set on a race.
          Which means you can add "slow digestion" to race. Not full "no eating", but less food needed.

          Comment

          • Zambaku
            Apprentice
            • Dec 2007
            • 80

            #6
            Aha! Thank you, you have been most helpfull!

            But, hm - can the flags be viewed on the web somewhere instead of looking through the objects.txt. Preferably with explanation on what everything does. I can't say I know what everything does, like easy_know or brand_fire for example. I hope I'm not being annoying for asking all this.

            Comment

            • Derakon
              Prophet
              • Dec 2009
              • 9022

              #7
              Not to my knowledge.

              Firebrand means the object does extra damage against monsters not resistant to fire. I suspect if you gave that to a race then all of their melee blows would be branded with fire, much like an off-weapon brand. Easy_know means the object is automatically identified if you know what flavor it is -- this differentiates e.g. rings of Slow Digestion from rings of Damage.

              Comment

              • Magnate
                Angband Devteam member
                • May 2007
                • 5110

                #8
                Originally posted by Derakon
                I assume that basically any flag that can be set on an item, except of course for activations and ignore-elements, can be set on a race.
                Where did you get this idea? I mean, it's great, but is there any indication that it's currently implemented? AFAIK the PF_ flag series is completely independent of the OF_ series. So to give slow digestion as a racial or class trait, you would have to create PF_SLOW_DIG in the code.

                I could be wrong though. I've never tried editing races.
                "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                Comment

                • Nick
                  Vanilla maintainer
                  • Apr 2007
                  • 9634

                  #9
                  True in FA - YVMMV.
                  One for the Dark Lord on his dark throne
                  In the Land of Mordor where the Shadows lie.

                  Comment

                  • Derakon
                    Prophet
                    • Dec 2009
                    • 9022

                    #10
                    Originally posted by Magnate
                    Where did you get this idea? I mean, it's great, but is there any indication that it's currently implemented? AFAIK the PF_ flag series is completely independent of the OF_ series. So to give slow digestion as a racial or class trait, you would have to create PF_SLOW_DIG in the code.
                    Oh. I just assumed that they used the same logic since they have visually the same flags and that would be the sensible way to go (for most of the flags anyway). Oh, well.

                    Comment

                    • Nick
                      Vanilla maintainer
                      • Apr 2007
                      • 9634

                      #11
                      Originally posted by Derakon
                      Oh. I just assumed that they used the same logic since they have visually the same flags and that would be the sensible way to go (for most of the flags anyway). Oh, well.
                      ...and you seem to be in fact correct. The Y: line in p_race.txt is for the player flags Magnate describes; the F: line is for regular object flags.
                      One for the Dark Lord on his dark throne
                      In the Land of Mordor where the Shadows lie.

                      Comment

                      • Timo Pietilä
                        Prophet
                        • Apr 2007
                        • 4096

                        #12
                        Originally posted by Nick
                        ...and you seem to be in fact correct. The Y: line in p_race.txt is for the player flags Magnate describes; the F: line is for regular object flags.
                        It also looks to be unlimited in any way as long as you use flags that actually make sense (IE anything you can see in "c"haracter -screen second page goes, except flags that require PVAL like stealth, might and shots).

                        Already in use: SUST_DEX, RES_LIGHT, HOLD_LIFE, FREE_ACT, RES_BLIND, RES_DARK, SUST_STR , REGEN, SUST_CON, SEE_INVIS and RES_POIS.

                        Comment

                        • Magnate
                          Angband Devteam member
                          • May 2007
                          • 5110

                          #13
                          Originally posted by Timo Pietilä
                          It also looks to be unlimited in any way as long as you use flags that actually make sense (IE anything you can see in "c"haracter -screen second page goes, except flags that require PVAL like stealth, might and shots).

                          Already in use: SUST_DEX, RES_LIGHT, HOLD_LIFE, FREE_ACT, RES_BLIND, RES_DARK, SUST_STR , REGEN, SUST_CON, SEE_INVIS and RES_POIS.
                          Excellent. Yes, the player_flags() function (which is everso helpfully located in files.c) collects all these racial flags (from the F lines in p_race.txt, so you can indeed give a race OF_SLOW_DIG and it will Just Work.

                          Same can't be said of classes, I'm afraid. The class flags are the PF_ ones I was thinking of in my reply to Derakon - they're dealt with separately and you can't simply add OF_SLOW_DIG to make your favourite class eat less.

                          To make matters worse, the PF_ flags in p_class.txt are on F: lines, whereas in p_race.txt they're on Y: lines. So you could be forgiven for thinking that if you can add any old object flag to races, you could also add it to classes. But you can't.

                          Yet.
                          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                          Comment

                          • d_m
                            Angband Devteam member
                            • Aug 2008
                            • 1517

                            #14
                            Originally posted by Derakon
                            Oh. I just assumed that they used the same logic since they have visually the same flags and that would be the sensible way to go (for most of the flags anyway). Oh, well.
                            In my experience, if you can think of a sensible way to do something, the Angband source probably does the opposite.

                            Not always, but the over/under is pretty good.
                            linux->xterm->screen->pmacs

                            Comment

                            • Zambaku
                              Apprentice
                              • Dec 2007
                              • 80

                              #15
                              Thanks for all the help, you guys have helped loads^^

                              I have made a few new races, and was wondering - Do you think they are balanced, or should I keep working on them?

                              N:11:Half-Dragon
                              S:6:3:2:2:3:-5
                              R:-5:-2:1:-40:3:10:0:-3:-3:-20
                              X:10:100:0
                              I:1:35:15
                              H:80:1:68:1
                              W:300:25:280:20
                              F:IM_FIRE | IGNORE_FIRE | FEATHER | BRAND_FIRE
                              C:0|1|2|3|4|5

                              N:12:Fairy
                              S:-5:5:3:4:0:3
                              R:15:5:12:10:12:11:-10:-5:10:20
                              X:5:125:4
                              I:13:50:40
                              H:21:3:16:3
                              W:50:6:45:3
                              F:FREE_ACT | FEATHER | SEE_INVIS
                              C:0|1|2|3|4|5

                              N:13:Werewolf
                              S:5:-10:-10:5:3:-50
                              R:-20:-20:0:10:0:10:20:-50:-50:-50
                              X:10:100:0
                              I:1:14:6
                              H:72:6:66:4
                              W:180:25:150:20
                              C:0|1|2|3|4|5
                              Last edited by Zambaku; June 3, 2011, 17:42.

                              Comment

                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎