Games Support Forums BioWare Info My Account Login Community Sign Up Store
Neverwinter Nights 2 Forums

NWN2: Builders - NWN2 Scripting

New Topic    Post Reply


    Add this To My Topics

   Go To Bottom

Author Mob grouping
DaveyHavock
Game Owner
Profile: DaveyHavockNWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 18 Jan 2003
Posted: Sunday, 17 August 2008 09:08PM
Howdy, wondering if someone has a moment to explain how the custom group ondeath script is used. I guess what i dont understand is how to name the grp, i see it uses getgroupname, but how do i define what the group is?

i intend to use the script on a group of mobs made up of 1 boss kobold and 3 subordinate kobolds, i'd like to force a cutscene/conversation if the 3 subordinates r killed or if the boss is killed, force a seperate cutscene showing the remaining kobolds flee.

if anyone has time to reply, i'd appreciate it. thanks
  Profile: DaveyHavock   Send Message To: DaveyHavock
nostrilhair
Game Owner
Profile: nostrilhairNWN
NWN: SoU
NWN: HotU


Joined: 12 Aug 2005
Posted: Sunday, 17 August 2008 10:12PM
You could use something like this for the grouping and conversation on death for the subordinate kobolds
Code:

View Post/Code in separate window



For the boss you could write a script that triggers a conversation or just a loop to make the remaining kobolds flee and place the name of the script as a DeathScript string variable on the boss. The default ondeath script checks for the DeathScript variable and executes it.
In this case if you want a conversation on death you should include ginc_cutscene and use the makeconversible function in case the PC speaker is dead/dying etc.

I don't know what would happen if they all died at the same time though.
  Profile: nostrilhair   Send Message To: nostrilhair
Kaldor Silverwand
Game Owner
Profile: Kaldor SilverwandNWN
NWN: SoU
NWN: HotU
NWN 2
NWN 2: MotB
NWN 2: SoZ


Joined: 20 Jun 2002
Posted: Sunday, 17 August 2008 10:40PM
The first meeting with Neeshka makes use of groups in this way.

The functions you'll need are are in ginc_group.

Here is a bit of script that I have used for having a few halfling NPC's put into a group and then a script is started once they are dead.

NWScript:

View Post/Code in separate window




Regards
  Profile: Kaldor Silverwand   Send Message To: Kaldor Silverwand

New Topic    Post Reply

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

Jump To:

Search Forums | Forums FAQ | Forum Archives

 

 

  Visit the Official Site | Technical Support
Neverwinter Nights 2 Official Support
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

6,251,297 Users
170 Online
11 Logged In

9,046,484 posts in forums

Newest Forum Topics:
1. These forums are now closed (NWN 1: Scripting)

2. These forums are now closed (NWN2: Guilds and Registry)

3. These forums are now closed (BioWare News Discussion)

4. Can you level items? (NWN 1: Scripting)

5. Thank you! (NWN 1: Scripting)


Current time is: (set time)
Fri, 03 September 2010 12:56AM