View previous topic :: View next topic |
Author |
Message |
scarface
Joined: 12 Jun 2005 Posts: 94 Location: Sweden
|
Posted: Tue Jul 28, 2009 23:22 Post subject: Possess Creature |
|
|
Possible with any current plugins (or even possible at all) to possess creatures that are owned by players? |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Wed Jul 29, 2009 9:32 Post subject: |
|
|
I've done it for tests, it's possible, but when two players controls one creature there are strange behaviours, also if you change player possession to other creature, this creature will be saved in to PC bic file.
So I've abandoned this for now, because this require more changes in other server functions. |
|
Back to top |
|
|
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Wed Jul 29, 2009 14:50 Post subject: |
|
|
This would be superb functionality. |
|
Back to top |
|
|
scarface
Joined: 12 Jun 2005 Posts: 94 Location: Sweden
|
Posted: Wed Jul 29, 2009 15:48 Post subject: |
|
|
I'd love to see this work. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Wed Jul 29, 2009 23:04 Post subject: |
|
|
Why? I'd like to hear what you'd use it for, as I can't really think of an application for it offhand. _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
scarface
Joined: 12 Jun 2005 Posts: 94 Location: Sweden
|
Posted: Thu Jul 30, 2009 1:56 Post subject: |
|
|
Zebranky wrote: | Why? I'd like to hear what you'd use it for, as I can't really think of an application for it offhand. |
Off the top of my head charm comes to mind, but being able to directly take control of another player's charmed summon, or how about role-playing.
But besides that not everything needs to have a useful purpose to it anyway, what's wrong with good clean fun? have we all been scripting so long we've lost all of our rational thoughts and forgotten the main reason we're doing this to begin with. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Thu Jul 30, 2009 2:35 Post subject: |
|
|
Zebranky wrote: | Why? I'd like to hear what you'd use it for, as I can't really think of an application for it offhand. | for example, PC's clone, like Shadow Adept prc one. The default or even custom AI is useless for the clone. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Thu Jul 30, 2009 4:08 Post subject: |
|
|
Zebranky wrote: | Why? I'd like to hear what you'd use it for, as I can't really think of an application for it offhand. |
Remote control of drones and vehicles. |
|
Back to top |
|
|
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Sun Aug 02, 2009 1:29 Post subject: |
|
|
axs wrote: | I've done it for tests, it's possible, but when two players controls one creature there are strange behaviours, also if you change player possession to other creature, this creature will be saved in to PC bic file.
So I've abandoned this for now, because this require more changes in other server functions. |
Both of the problem scenarios sound like they could easily have scripted protections put in place to prevent them. Thoughts? Maybe the plugin is really ok as is? |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Sun Aug 02, 2009 11:25 Post subject: |
|
|
Ok, it's one of my testing sources, i've added prototypes for
Possess, UnPosses and GetFlatFooted.
Please test possession well, and use it to your own responsibility
(FOR TESTING ONLY) funcsext.test.tar.gz |
|
Back to top |
|
|
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Sun Aug 02, 2009 22:02 Post subject: |
|
|
Thanks a bunch. I'll test it out and see if I can find any problems that can't be scripted around. |
|
Back to top |
|
|
scarface
Joined: 12 Jun 2005 Posts: 94 Location: Sweden
|
Posted: Wed Aug 12, 2009 14:53 Post subject: |
|
|
Hmmm am I missing something, I don't see any function to for possessing in the .nss. |
|
Back to top |
|
|
Kiri-Jolith
Joined: 01 Jul 2009 Posts: 10
|
Posted: Sat Aug 15, 2009 1:46 Post subject: |
|
|
Found these in FunctionHooks.h file.
void PossessCreature(CNWSCreature *pCreature, dword pToPossess);
void UnpossessCreature(CNWSCreature *pCreature);
Pure guess, I haven't played with this plug-in, but...
Code: |
void PossessCreature(object oPossessingCreature, object oCreatureToPossess );
void UnpossessCreature(object oCreature ); |
Share your results, if you would. |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Sat Aug 15, 2009 11:56 Post subject: |
|
|
Prototypes for nwscript:
Code: | void PossessCreature(object oPC, object oCreature) {
SetLocalString(oPC, "NWNX!FUNCSEXT!POSSESS", ObjectToString(oCreature));
DeleteLocalString(oPC, "NWNX!FUNCSEXT!POSSESS");
}
void UnPossessCreature(object oPC, object oCreature) {
SetLocalString(oPC, "NWNX!FUNCSEXT!UNPOSSESS", " ");
DeleteLocalString(oPC, "NWNX!FUNCSEXT!UNPOSSESS");
} |
Somehow I have packed wrong file. |
|
Back to top |
|
|
Kiri-Jolith
Joined: 01 Jul 2009 Posts: 10
|
Posted: Sat Aug 15, 2009 23:11 Post subject: |
|
|
Wasn't totally wrong... kinda right... srry. |
|
Back to top |
|
|
|