Home Forum Index Neverwinter Nights 2 NWN2: Builders - NWN2 Scripting Mob grouping
NWN2: Builders - NWN2 Scripting
DaveyHavock
Game OwnerNWN 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
nostrilhair
Game OwnerNWN 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 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.
Kaldor Silverwand
Game OwnerNWN 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:
string sGroupName = "HalflingBrothers";
object oNHalfling;
int i;
ResetGroup(sGroupName);
for (i = 1; i<=3; i++)
{
object oNHalfling = GetObjectByTag("NHalfling" + IntToString(i));
GroupAddMember(sGroupName, oNHalfling);
ChangeToStandardFaction(oNHalfling, STANDARD_FACTION_HOSTILE);
StandardAttack(oNHalfling, GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC));
}
GroupOnDeathExecuteCustomScript(sGroupName, "0160_a_cs_halfling_postfight");
View Post/Code in separate window Regards
What do these icons mean?
Where can I learn how to use the forums?
Jump To:
Select A Forum
BioWare General
-- Web Site Help
-- BioWare Online Store Support
-- BioWare News Discussion
Premium Neverwinter Nights Modules
-- Premium Neverwinter Nights 1 Modules Tec...
-- Premium Neverwinter Nights 1 Modules Dis...
Neverwinter Nights
-- NWN 1: General Discussion (No Spoilers ...
-- NWN 1: Players - Official Campaign (Spo...
-- NWN 1: Players - SoU Official Campaign (...
-- NWN 1: Players - HotU Official Campaign ...
-- NWN 1: Modules Discussion
-- NWN 1: Community Expansion Pack (CEP)
-- NWN 1: Guilds and Registry - Ye Olde Tav...
-- NWN 1: Dungeon Master's Realm
-- NWN 1: Toolset
-- NWN 1: Scripting
-- NWN 1: Custom Content
-- NWN 1: For Developers
-- NWN 1/SoU/HotU Technical Support (Self-H...
-- NWN 1: Server Admin
-- NWN 1: Linux Version - General Discussio...
-- NWN 1: Macintosh Version - General Discu...
Old Dragon Age Forums
-- Dragon Age (Old)
-- Dragon Age: Origins General Discussion
Sonic Chronicles: The Dark Brotherhood
-- Sonic Chronicles: The Dark Brotherhood G...
-- Sonic Chronicles Storyline and Strategy ...
Baldur's Gate II Series
-- Baldur's Gate II: SoA and ToB General Di...
-- Baldur's Gate II Gameplay (Spoilers!)
-- Baldur's Gate II: SoA and ToB Technical ...
Baldur's Gate Series
-- Baldur's Gate and Tales of the Sword Coa...
-- Baldur's Gate Gameplay (Spoilers!)
-- Baldur's Gate and TotSC Technical Suppor...
MDK2
-- MDK2 Gameplay (Spoilers!)
-- MDK2 General Discussion
-- MDK2 Technical Support
Shattered Steel
-- Shattered Steel General Discussion
Star Wars: Knights of the Old Republic
-- Official Announcements - Star Wars: Knig...
-- Storyline Discussion (Spoilers Warning) ...
-- Xbox Version (Spoilers Will Be Moved) - ...
-- PC/Mac Version (Spoilers Will Be Moved) ...
-- Technical Support (Self-Help) - Star War...
Jade Empire Forums
-- Jade Empire PC General Discussion (Spoil...
-- Jade Empire Xbox General Discussion (Spo...
-- Jade Empire Storyline and Strategy Discu...
-- Jade Empire Technical Support (Self-Help...
Neverwinter Nights 2
-- NWN2: General discussion forums for NWN2...
-- NWN2: Players - NWN2 Official Campaign (...
-- NWN2: Players - Mask of The Betrayer Cam...
-- NWN2: Players - Storm of Zehir (Spoilers...
-- NwN2: Mysteries of Westgate Adventure Pa...
-- NWN2: Modules
-- NWN2: Guilds and Registry
-- NWN2: Builders - NWN2 Toolset
-- NWN2: Builders - NWN2 Scripting
-- NWN2: Custom Content
-- NWN2: Dungeon Masters Realm
-- NWN2: Persistent Worlds & Multiplayer
-- NWN2: For the Mac
-- NWN2: Tools and Plugin Developers
-- NWN2: Technical Support (Self-Help)
Mass Effect Forums
-- Mass Effect 2 General Discussion (No ME1...
-- Mass Effect 1 General Discussion (No spo...
-- Mass Effect PC Version General Discussio...
-- Mass Effect Storyline and Strategy Discu...
-- Mass Effect for PC Technical Support (Se...
-- Mass Effect for Xbox 360 Technical Suppo...
Archives: Neverwinter Nights
-- Archives: For Everyone - NWN General Di...
-- Archives: NWN HotU General Discussion
-- Archives: NWN SoU General Discussion
-- Archives: Players - NWN Official Campaig...
-- Archives: Witch's Wake Discussion
-- Archives - Players - NWN Modules
-- Archives: Players - Ye Olde Tavern
-- Archives: DMs - Dungeon Master's Realm
-- Archives: Builders - NWN Toolset
-- Archives: Builders - NWN Scripting
-- Archives: Builders - NWN Custom Content
-- Archives: NWN Technical Support (Self-He...
Pre-Release NWN Archives
-- Archives - NWN Official Announcements
-- Archives - General Discussion
-- Archives - Ye Olde Tavern
-- Archives - Dungeon Master's Realm
-- Archives - Models and Model Viewer
-- Archives - Beta Toolset General
-- Archives - Beta Toolset Technical Issues
-- Archives - Beta Toolset Bug Reporting
Forums Archives
-- Archives - Off Topic
-- Archives - Baldur's Gate II Gameplay (Sp...
-- Archives: Baldur's Gate II: SoA and ToB ...
Archives: Star Wars: Knights of the Old Republic
-- Archives: PC/Mac Version (Spoilers Will ...
-- Archives: Storyline Discussion (Spoilers...
-- Archives: Xbox Version (Spoilers Will Be...
Jade Empire Archives
-- Archives - Jade Empire General Discussio...
NwN2 - Pre-Release Archives
-- NWN 2 Art and Graphics Engine
-- NWN 2 Single Player Campaign
-- NWN 2 General Discussion
-- NWN 2 Toolset and Custom Content
-- NWN 2 Gameplay and Rules
Search Forums |
Forums FAQ |
Forum Archives
NeverWinter Nights 2, Forgotten Realms and the Forgotten Realms logo, Dungeons & Dragons, D&D, and the Dungeons & Dragons logo, and Wizards of the Coast and its logo are trademarks of Wizards of the Coast, Inc., in the U.S.A. and other countries, and are used with permission. © 2004 Wizards. Software © 2004 Atari Interactive, Inc. All rights reserved. HASBRO and its logo are trademarks of Hasbro and are used with permission. Windows is either a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries. Manufactured and marketed by Atari, Inc., New York, NY. All other trademarks are the property of their respective owners.
Powered by BioBoards Version 3.00.0 10.1.12.32
Web Site Help
Jobs | Website Terms of Use Agreement | Privacy Policy
Rules of Conduct | Copyright and Trademark Information