BioWare Atari
BioWare Info BioWare Games Support Forums Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

Archives: Builders - NWN Scripting


Go to Page ( 1 , 2 Next )

       Go To Bottom

Author How to clone a PC?
Olblach
Game Owner
Profile: OlblachNWN
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?
  Profile: Olblach   Send Message To: Olblach
Fearsome Five
Game Owner
Profile: Fearsome FiveNWN
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.
  Profile: Fearsome Five   Send Message To: Fearsome Five
Olblach
Game Owner
Profile: OlblachNWN
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.
  Profile: Olblach   Send Message To: Olblach
BitRaiser
Game Owner
Profile: BitRaiserNWN
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
  Profile: BitRaiser   Send Message To: BitRaiser
Olblach
Game Owner
Profile: OlblachNWN
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.
  Profile: Olblach   Send Message To: Olblach
BitRaiser
Game Owner
Profile: BitRaiserNWN
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
  Profile: BitRaiser   Send Message To: BitRaiser
Olblach
Game Owner
Profile: OlblachNWN
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:

NWScript:

View Post/Code in separate window


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.
  Profile: Olblach   Send Message To: Olblach
Grommit666
Game Owner
Profile: Grommit666NWN
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.

NWScript:

View Post/Code in separate window



And this should be saved as clone_hb
NWScript:

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!
  Profile: Grommit666   Send Message To: Grommit666
Olblach
Game Owner
Profile: OlblachNWN
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 .
  Profile: Olblach   Send Message To: Olblach
LetoII
Game Owner
Profile: LetoIINWN
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
  Profile: LetoII   Send Message To: LetoII
Crazy Grasshopper
Game Owner
Profile: Crazy GrasshopperNWN
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.
  Profile: Crazy Grasshopper   Send Message To: Crazy Grasshopper
LetoII
Game Owner
Profile: LetoIINWN
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
  Profile: LetoII   Send Message To: LetoII
Crazy Grasshopper
Game Owner
Profile: Crazy GrasshopperNWN
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.
  Profile: Crazy Grasshopper   Send Message To: Crazy Grasshopper
LetoII
Game Owner
Profile: LetoIINWN
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
  Profile: LetoII   Send Message To: LetoII
Dolanor
Game Owner
Profile: DolanorNWN
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..
  Profile: Dolanor   Send Message To: Dolanor

Go to Page ( 1 , 2 Next )


What do these icons mean?
Where can I learn how to use the forums?

Jump To:

Search Forums | Forums FAQ | Forum Archives

 

 

BioWare Store
Neverwinter Nights 2 Forums
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

View Latest Screenshots 

View Latest Screenshots
Hide/Show

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Current time is: (set time)
Tue, 09 February 2010 08:45PM

Hide/Show

Buy Premium Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Hide/Show

5,994,287 BioWare Users:
  53 Logged In
  4 Hidden
  461 Guests

1405 Playing Online
  100% NWN
  99% NWN: SoU
  99% NWN: HotU

426 Registered Guilds

9,000,903 posts in forums

Newest Forum Topics:
1. M.O.W. Internet needed? (NWN2: General discussion forums for NWN2 (No Spoilers Allowed))

2. Script control of encounters? (O... (NWN2: Builders - NWN2 Scripting)

3. Do i need to play BG 1? (Baldur's Gate II: SoA and ToB General Discussion)

4. Memorized Spells ui modification (NWN2: Custom Content)

5. My Dm's Can't log in, DM Client ... (NWN 1: Server Admin)