Accueil Forums Index du Forum Neverwinter Nights NWN 1: Scripting Removing Energy barriers
NWN 1: Scripting
Mescalino
Game OwnerNWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ Lié: 20 jan 2003 De: The land of drugs and wooden shoes
Posté: samedi, 07 novembre 2009 11:52
Well this is the situation. On a ramp i have placed 2 energy barriers. One of the creatures drops an energy matrix. With the energy matrix in your inventory you click on the barrier, the barrier removes/is destroyed and the matrix removed from inventory. What goes wrong? Well the barriers are not removed. I checked the tags and they are good. (the matrix is being removed.) If i change the line: into: it works but only removes 1 of the 2 barriers. I checked the 10 times and they are correct. _________________ Homer: I'm normally not a praying man, but if you're up there, please save me Superman.
Axe Murderer
Game OwnerNWN NWN: SoU NWN: HotU Lié: 16 jun 2003 De: California U S A Red, White, & Bluuu
Posté: samedi, 07 novembre 2009 12:55
NWScript:
// Put this script OnUsed of both energy barriers
void main()
{ object oPC = GetLastUsedBy();
if( !GetIsPC( oPC)) return;
object oEnergyMatrix = GetItemPossessedBy( oPC, "AirEnergyMatrix1");
if( !GetIsObjectValid( oEnergyMatrix)) return;
DestroyObject( oEnergyMatrix);
DestroyObject( OBJECT_SELF, 0.5);
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectVisualEffect( VFX_COM_HIT_ELECTRICAL), OBJECT_SELF);
object oOtherBarrier = GetNearestObjectByTag( "energybarrier");
if( GetIsObjectValid( oOtherBarrier))
{ DestroyObject( oOtherBarrier, 0.51);
DelayCommand( IntToFloat( Random( 16) +15) /100.0, ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectVisualEffect( VFX_COM_HIT_ELECTRICAL), oOtherBarrier));
}
}
View Post/Code in separate window
Mescalino
Game OwnerNWN NWN: SoU NWN: HotU NWN 2 NWN 2: MotB NWN 2: SoZ Lié: 20 jan 2003 De: The land of drugs and wooden shoes
Posté: samedi, 07 novembre 2009 01:13
Your the best!! That worked now i can do the other 2 barriers the same way. _________________ Homer: I'm normally not a praying man, but if you're up there, please save me Superman.
Que signifie cet icone?
Où puis-je apprendre à utiliser les forums?
Jump To:
Select A Forum
BioWare General
-- BioWare Online Store Support
-- BioWare News Discussion
-- Web Site Help
Premium Neverwinter Nights Modules
-- Premium Neverwinter Nights 1 Modules Dis...
-- Premium Neverwinter Nights 1 Modules Tec...
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...
Off Topic
-- Off Topic
Old Dragon Age Forums
-- Dragon Age (Old)
-- Dragon Age: Origins General Discussion
Sonic Chronicles: The Dark Brotherhood
-- Sonic Chronicles Storyline and Strategy ...
-- Sonic Chronicles: The Dark Brotherhood G...
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 Technical Support
-- MDK2 General Discussion
-- MDK2 Gameplay (Spoilers!)
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 Spo...
-- 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 - Baldur's Gate II Gameplay (Sp...
-- Archives - Off Topic
-- 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 General Discussion
-- NWN 2 Gameplay and Rules
-- NWN 2 Art and Graphics Engine
-- NWN 2 Toolset and Custom Content
-- NWN 2 Single Player Campaign
Recherche dans les forums |
FAQ des forums |
Archives Forum