City of Arabel
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    NPC Name Color

    Scheduled Pinned Locked Moved Implemented/Closed Suggestions
    21 Posts 8 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SpiffyMeisterS
      SpiffyMeister @Zool
      last edited by

      @zool don’t all merchants have the “open store” script…?

      Puffy's bumbling Scum-goblin minion.

      Strife and DiscordS 1 Reply Last reply Reply Quote
      • Strife and DiscordS
        Strife and Discord @SpiffyMeister
        last edited by

        @spiffymeister they do but you then rely on a player making the first action.
        How would a player know a merchant is a merchant to interact with them?

        PuffyP ZoolZ 2 Replies Last reply Reply Quote
        • PuffyP
          Puffy @Strife and Discord
          last edited by

          Why not use the merchant faction for a on spawn function

          @SpiffyMeister
          the real bench mark for success is if you seduce a puffy pc or npc
          @Prof-Misclick
          Puffy said "Don't you trust me? Then vote yes NERD!"
          #scaredofstrongwomen

          SpiffyMeisterS 1 Reply Last reply Reply Quote
          • SpiffyMeisterS
            SpiffyMeister @Puffy
            last edited by

            @puffy some merchants are set to independent

            Puffy's bumbling Scum-goblin minion.

            1 Reply Last reply Reply Quote
            • ZoolZ
              Zool @Strife and Discord
              last edited by

              @strife-and-discord said in NPC Name Color:

              @spiffymeister they do but you then rely on a player making the first action.
              How would a player know a merchant is a merchant to interact with them?

              Check the script on spawn. You can get scripts.

              > !!!MOLES for the MOLE GOD!!!

              1 Reply Last reply Reply Quote
              • GumbaG
                Gumba
                last edited by Gumba

                Try using https://nwnlexicon.com/index.php?title=GetStoreGold on the on spawn script.

                If it has no store it returns a -2, if it returns -1 or anything above, means it is a store npc, so you can apply the merchant color, allegedly.

                Cheers

                ZoolZ 1 Reply Last reply Reply Quote
                • ZoolZ
                  Zool @Gumba
                  last edited by

                  @gumba said in NPC Name Color:

                  Try using https://nwnlexicon.com/index.php?title=GetStoreGold on the on spawn script.

                  If it has no store it returns a -2, if it returns -1 or anything above, means it is a store npc, so you can apply the merchant color, allegedly.

                  Cheers

                  Thumbs up

                  > !!!MOLES for the MOLE GOD!!!

                  1 Reply Last reply Reply Quote
                  • Strife and DiscordS
                    Strife and Discord
                    last edited by Strife and Discord

                    GetStoreGold() works on the store object and not on the NPC itself.
                    NWN keeps those two separate, so I dont think it would work.

                    Its better to work in consolidating all possible spawn scripts of NPCs into a single one.

                    ZoolZ 1 Reply Last reply Reply Quote
                    • ZoolZ
                      Zool @Strife and Discord
                      last edited by

                      @strife-and-discord said in NPC Name Color:

                      GetStoreGold() works on the store object and not on the NPC itself.
                      NWN keeps those two separate, so I dont think it would work.

                      Its better to work in consolidating all possible spawn scripts of NPCs into a single one.

                      They should all use it already to open the store. (could also search for the store object using the universally used variable the convo uses to find it and use GetStoreGold() but... seems over the top. There's a few ways I think, just gotta choose one.

                      > !!!MOLES for the MOLE GOD!!!

                      1 Reply Last reply Reply Quote
                      • EchoE
                        Echo @Zool
                        last edited by Echo

                        @zool said in NPC Name Color:

                        If it's -all- merchants being one particular colour, surely we could detect that they are a merchant in some way (there will be some universal thing about all merchants that doesn't apply to other NPCs that a script can detect) and apply this colour manually.

                        I tried this with the "if it has sMyShop variable" then change color of name, but that broke the dye merchants. They didnt have a sMyShop variable so I added it then they broke.

                        @Strife-and-Discord and I discussed a rework of the generic OnSpawn script for NPCs to put all these special bits in one place.

                        "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                        ZoolZ 1 Reply Last reply Reply Quote
                        • ZoolZ
                          Zool @Echo
                          last edited by

                          @echo said in NPC Name Color:

                          @zool said in NPC Name Color:

                          If it's -all- merchants being one particular colour, surely we could detect that they are a merchant in some way (there will be some universal thing about all merchants that doesn't apply to other NPCs that a script can detect) and apply this colour manually.

                          I tried this with the "if it has sMyShop variable" then change color of name, but that broke the dye merchants. They didnt have a sMyShop variable so I added it then they broke.

                          @Strife-and-Discord and I discussed a rework of the generic OnSpawn script for NPCs to put all these special bits in one place.

                          Probly need to check for one, then the other, and potentially follow whatever method they use to find their store to find it then check it's valid and stuff.

                          I ain't got time right now so I'll shut up now, but it seems pretty plausible.

                          > !!!MOLES for the MOLE GOD!!!

                          1 Reply Last reply Reply Quote
                          • EchoE Echo moved this topic from Suggestions on
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post