Olblach
Game Owner
NWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ
Joined: 19 May 2003 From: France |
Posted: Thursday, 22 May 2003 10:04PM |
In my (future) PW I want to have the PCs succeed some tests before being able to level up. One is the feared clone that you must defeat (heh heh heh).
So, the PC would enter a room and face an hostile NPC with exact same stats and inventory. How can this be done? I tried CopyObject but it did nothing. Any idea? |
|
Fearsome Five
Game Owner
NWN NWN: SoU NWN 2
Joined: 18 Nov 2002 From: Ontario, Canada |
Posted: Thursday, 22 May 2003 10:13PM |
CopyObject works. You just have to create it after copying. _________________ 446F6E2774 747279 68657861646563696D616C 65646974696E67. |
|
Olblach
Game Owner
NWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ
Joined: 19 May 2003 From: France |
Posted: Thursday, 22 May 2003 10:20PM |
|
Thanks, I had a bug elsewhere. Seems odd because it looks like the clone is level 1. Need some tuning now. |
|
BitRaiser
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 28 Aug 2002 From: Fifth plane of Vancouver |
Posted: Thursday, 22 May 2003 10:20PM |
problem is that copy object doesn't create AI scripts for your clone...
I was wondering about this myself. _________________ Fer some good 'ol PW fun, look below: (then go have some fun, willya?) Thain Thain's Host Site and Forums Direct Connect to: 70.68.167.40 |
|
Olblach
Game Owner
NWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ
Joined: 19 May 2003 From: France |
Posted: Thursday, 22 May 2003 11:11PM |
Spells and ranged weapons are not used, I'll check tomorrow with DM client but I am quite sure it is level 1 with no spell/feats maybe no class as well. Maybe the only way is to create a NPC then drop items on it, but how can you copy the physical attributes then?
It has some interesting possibilities, like mirror images or creating ghosts when people die. |
|
BitRaiser
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Joined: 28 Aug 2002 From: Fifth plane of Vancouver |
Posted: Thursday, 22 May 2003 11:12PM |
Keep us updated, alright?
In general this could be a very handy stunt! _________________ Fer some good 'ol PW fun, look below: (then go have some fun, willya?) Thain Thain's Host Site and Forums Direct Connect to: 70.68.167.40 |
|
Olblach
Game Owner
NWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ
Joined: 19 May 2003 From: France |
Posted: Thursday, 22 May 2003 11:47PM |
Sure, if you want to play with it already, place a lever somewhere and put this in the OnUsed function:
I could try to possess a NPC already then click on lever and it showed the same level and feats than the original. But the clone did not use any spell when attacked. Also the clone cannot be possessed by a DM it says already possessed (bah!). It looks like a blind copy so playing too much with it might do some funny things to the server. |
|
Grommit666
Game Owner
NWN NWN: SoU NWN 2
Joined: 24 Oct 2002 |
Posted: Friday, 23 May 2003 01:01AM |
The reason you see this behavior is because when you copy an object, you copy all associated scripts as well. PC's have no scripts to speak of (they do, but it doesn't help you any) so the creature created from them obviously doesn't either. There is a way to get around this if you want to fight the copy by creating a combat script that they call every so often. However, if you want to have any sort of meaningful interaction, like a conversation or a henchman, it's just not doable. (A conversation might be, but it would be forced)
Anyway, try these little code snippets for a copy that you can fight.
View Post/Code in separate window
And this should be saved as clone_hb
View Post/Code in separate window
That should allow you to create challenging monsters that don't throw your world out of balance by allowing the players free copies of all their items and gold. Enjoy! |
|
Olblach
Game Owner
NWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ
Joined: 19 May 2003 From: France |
Posted: Friday, 23 May 2003 09:36AM |
This is really neat, thanks. I noticed the items duplicated too, that means you could use clones as a replacement for HCR death corpses, really great possibilities there . |
|
LetoII
Game Owner
NWN NWN: SoU NWN: HotU SW: KotOR PC Jade Empire:SE NWN 2 NWN 2: MotB Mass Effect PC
Joined: 17 Oct 2002 From: France |
Posted: Friday, 23 May 2003 10:00AM |
Quote: Posted 05/23/03 09:36:15 (GMT) by Olblach This is really neat, thanks. I noticed the items duplicated too, that means you could use clones as a replacement for HCR death corpses, really great possibilities there  .
I'm using it in my corpse sytem  _________________ Corpse System, PC clonning system, TGA Flip Ghanima |
|
Crazy Grasshopper
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 04 May 2003 |
Posted: Friday, 23 May 2003 10:21AM |
There is actually a very specific time when scripts are being run by the PC and that is when the PC is dominated by an NPC. I have not tested this out at all, its just a theory I have, BUT - with enough scripting, it may be possible. Have a PC's adversary cast Dominate on the PC, then copy the PC and then create that copy. Now undominate the PC and there should be a copy of the PC with the same scripts attached to it that are attached to the default Henchmen. Given all that works, it seems very possible to have a PC clone with a set of scripts attached to it. _________________ Human reasoning, thought and choice is an illusion. |
|
LetoII
Game Owner
NWN NWN: SoU NWN: HotU SW: KotOR PC Jade Empire:SE NWN 2 NWN 2: MotB Mass Effect PC
Joined: 17 Oct 2002 From: France |
Posted: Friday, 23 May 2003 10:54AM |
Quote: Posted 05/23/03 10:21:46 (GMT) by Crazy Grasshopper
There is actually a very specific time when scripts are being run by the PC and that is when the PC is dominated by an NPC. I have not tested this out at all, its just a theory I have, BUT - with enough scripting, it may be possible. Have a PC's adversary cast Dominate on the PC, then copy the PC and then create that copy. Now undominate the PC and there should be a copy of the PC with the same scripts attached to it that are attached to the default Henchmen. Given all that works, it seems very possible to have a PC clone with a set of scripts attached to it.
I'll try this tonight. _________________ Corpse System, PC clonning system, TGA Flip Ghanima |
|
Crazy Grasshopper
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 04 May 2003 |
Posted: Friday, 23 May 2003 12:17PM |
Cool, if you could drop me a PM or post here if it works, I would appreciate it. No need to give me any of your scripts, I am just curious =) _________________ Human reasoning, thought and choice is an illusion. |
|
LetoII
Game Owner
NWN NWN: SoU NWN: HotU SW: KotOR PC Jade Empire:SE NWN 2 NWN 2: MotB Mass Effect PC
Joined: 17 Oct 2002 From: France |
Posted: Friday, 23 May 2003 12:40PM |
Quote: Posted 05/23/03 12:17:24 (GMT) by Crazy Grasshopper
Cool, if you could drop me a PM or post here if it works, I would appreciate it. No need to give me any of your scripts, I am just curious =)
Oky I'll tell you if it works. _________________ Corpse System, PC clonning system, TGA Flip Ghanima |
|
Dolanor
Game Owner
NWN NWN: SoU NWN: HotU
Joined: 03 Oct 2002 |
Posted: Friday, 23 May 2003 08:11PM |
Here is a link for a module where a lever is in a Cavern. Just use the lever then enter the metallic door and affront your clone.
I got a mage/monk 18/2, and i have to fight 1 min and I used 5 potion of greater healing to kill him. He used spells and his weapon to defeat me, but he used more his spells than sword. And he buffs himself well.
Click Here
This is made by Sire Pompom, so it is in French..  |
|