View previous topic :: View next topic |
Author |
Message |
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Dec 02, 2014 0:50 Post subject: |
|
|
InitPlayerNameList should be called on oPC instead of the module, and you should move NWNX!INIT stuff to OnModuleLoad as it should only be called once and as soon as the server loads. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
metagamer
Joined: 30 Nov 2014 Posts: 20
|
Posted: Thu Dec 04, 2014 0:56 Post subject: |
|
|
Ok thanks, it is working.
I have some questions anyway.
For example
void SetDynamicName(object oPlayer, object oObject, string sName)
object oPlayer: ok
object oObject: which object should I use? The module, one "support" object?
I would like to have that each player is able to set the name of the "Unknown" PG. Basically each player will have a different List Characters and will see different names of the other players.
In the GDR contest, this is usefull because "Player A" could bluff and then "Player B"" could really think that his name is "Paciuciucio" instead of "Player A".
Can you suggest me where to find the function where should I work in cpp?
I am trying to do it. I will give you the work done once completed.
|
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Thu Dec 04, 2014 15:15 Post subject: |
|
|
metagamer wrote: |
void SetDynamicName(object oPlayer, object oObject, string sName)
object oPlayer: ok
object oObject: which object should I use? The module, one "support" object?
I would like to have that each player is able to set the name of the "Unknown" PG. Basically each player will have a different List Characters and will see different names of the other players.
In the GDR contest, this is usefull because "Player A" could bluff and then "Player B"" could really think that his name is "Paciuciucio" instead of "Player A". |
I did this on my PW way back then. oPC is the one who should see the name, oObject is the named object (in this instance, the other player character). You might have to party- or area-cycle him to update the name, though.
FWIW, it wasn't used much because it was too much work for players to maintain name lists, so I scrapped the thing again. |
|
Back to top |
|
|
xorbaxian
Joined: 18 Dec 2007 Posts: 45
|
Posted: Thu Dec 11, 2014 1:41 Post subject: |
|
|
for npc's, i've used functionality similar to this using the standard nwn SetName() function. in doing this, i ran into some strange behaviour -- after using SetName(), one pc will see the npc's new name, but others will continue to see the old one. my guess is that the engine somehow doesn't update all of the game clients correctly after the SetName() call. does the nwnx_names plugin get around this difficulty ? |
|
Back to top |
|
|
metagamer
Joined: 30 Nov 2014 Posts: 20
|
Posted: Tue Mar 17, 2015 15:45 Post subject: |
|
|
I have another interesting question.
Does somebody know if it is possible to HIDE the Player Name of the character?
I mean...to mask the account name.
|
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Tue Mar 17, 2015 15:47 Post subject: |
|
|
metagamer wrote: | I have another interesting question.
Does somebody know if it is possible to HIDE the Player Name of the character?
I mean...to mask the account name.
:D |
Not as it is now. You would have to hook and patch the server at a few places in the netlayer and rewrite them into pseudoyms. _________________ silm.pw, a player-driven Forgotten Realms NWN1 persistent world for tinkerers. |
|
Back to top |
|
|
Lea_Andersteen
Joined: 15 Sep 2012 Posts: 5
|
Posted: Wed Jul 01, 2015 11:21 Post subject: |
|
|
i'm using the nwnx_name for a module.
I clean a bit the code (the code i downloaded have duplicated declaration of NWN function) and i use it perfectly.
Btw i have a strange issue, i try to add the "setname function for the PC on a radial menu. I try it on PLAYER_TOOL_01. I did stuff about this found on the lexicon horse tutorial: it failed. I found a hak on the vault (the new one), witch had a social interaction menu on a radial, and it fail too.
I'm a bit mad about it >_>
I'm know i'm just a bit out of topic but it seem there is life here. And i will put on vault my dynamic name implementation
http://neverwintervault.org/project/nwn1/hakpak/radial-social-actions
Trinity! I need some help! |
|
Back to top |
|
|
Anaris
Joined: 16 Mar 2018 Posts: 1
|
Posted: Thu Mar 22, 2018 7:36 Post subject: |
|
|
I am wondering if any could share an example of how they used nwnx_names to create a Disguise system. Alternatively good documentation on how to use the various functions in nwnx_names will be highly appreciated.
Thank you! |
|
Back to top |
|
|
|