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

NWN 1: Scripting

New Topic    Post Reply


    Add this To My Topics

   Go To Bottom

Author vfx not working help please
spider661
Game Owner
Profile: spider661NWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 25 Dec 2002
Posted: Wednesday, 04 November 2009 04:37AM
anyone know y this code is not working..

im trying to make a new placable then put a vfx on it so they can see its selected by the scripts its making the sounds for the effect but not showing the effect i have tryed delaying it and everything else i could think of i even had debug code it getting the tag of the placable to make sure it could find it.

here is the code

NWScript:

View Post/Code in separate window

  Profile: spider661   Send Message To: spider661
Axe Murderer
Game Owner
Profile: Axe MurdererNWN
NWN: SoU
NWN: HotU


Joined: 16 Jun 2003
From: California U S A Red, White, & Bluuu
Posted: Wednesday, 04 November 2009 06:06AM
Try using ApplyEffectAtLocation instead. Some of them don't work on placeables.
  Profile: Axe Murderer   Send Message To: Axe Murderer
kalbaern
Game Owner
Profile: kalbaernNWN
NWN: SoU
NWN: HotU


Joined: 25 Apr 2006
Posted: Wednesday, 04 November 2009 06:14AM
The issue seems to stem from "where" on the placeable the effect is fired from. Often if you can hear the effect,but not see it ... it's because the effect is at or below ground level on that particular placeable. I usually just apply the effect to an invisible object along with a static placeable and raise it between .25 and .75 on the X-axis if the placeable doesn't seem to like the effect. I've also encountered the same issue and use this fix when a placeable needs to cast a spell with a line of sight requirement.
  Profile: kalbaern   Send Message To: kalbaern
spider661
Game Owner
Profile: spider661NWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 25 Dec 2002
Posted: Wednesday, 04 November 2009 06:45AM
ok it does work when applying it to the location.. but i need to move the object and so i destroy it and put it in its new location. can i move the effect with it?

1 spawn placable
2 create effect at location under placable
3 delete placable
4 delete effect
5 respawn placable
6 reset effect at location

can i do that? im not sure how to remove the effect from a location with the placable it would go away when the placable was destroyed.
  Profile: spider661   Send Message To: spider661
Axe Murderer
Game Owner
Profile: Axe MurdererNWN
NWN: SoU
NWN: HotU


Joined: 16 Jun 2003
From: California U S A Red, White, & Bluuu
Posted: Wednesday, 04 November 2009 09:49AM
No need to destroy and recreate the effect, just the placeable only.
  Profile: Axe Murderer   Send Message To: Axe Murderer
spider661
Game Owner
Profile: spider661NWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 25 Dec 2002
Posted: Wednesday, 04 November 2009 05:12PM
if I use ApplyEffectAtLocation rather then to the object then I would have to destroy the effect also or the object would move but the effect would stay in the same place.
  Profile: spider661   Send Message To: spider661
spider661
Game Owner
Profile: spider661NWN
NWN: SoU
NWN: HotU
NWN 2


Joined: 25 Dec 2002
Posted: Thursday, 05 November 2009 09:01AM
well i did it will an invis object and the worked.

but i would still like to know how to find and remove an effect from a location that would be a nice function to have later down the road.
  Profile: spider661   Send Message To: spider661
kalbaern
Game Owner
Profile: kalbaernNWN
NWN: SoU
NWN: HotU


Joined: 25 Apr 2006
Posted: Thursday, 05 November 2009 10:43PM
Or make the effect one with a set duration that destroys itself to coincide withthe second placeable and effect appearing elsewhere.
  Profile: kalbaern   Send Message To: kalbaern
Axe Murderer
Game Owner
Profile: Axe MurdererNWN
NWN: SoU
NWN: HotU


Joined: 16 Jun 2003
From: California U S A Red, White, & Bluuu
Posted: Friday, 06 November 2009 12:49AM
Unless it is an AOE type effect, you cannot find an effect applied at a location once it is up. You'll have to work out a way to apply it temporary and refresh it periodically based on a condition if you want something like that. Or do what you did and use an invisible object to manage it.

Sorry I didn't realize you were moving the placeable around to different locations. I assumed you were recreating it at the same spot and therefore it would make no sense to remove the effect just to re-establish it in the same location.
  Profile: Axe Murderer   Send Message To: Axe Murderer

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

 

 

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)
Sun, 22 November 2009 09:08AM

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,052,460 BioWare Users:
  31 Logged In
  3 Hidden
  140 Guests

712 Playing Online
  100% NWN
  100% NWN: SoU
  100% NWN: HotU

444 Registered Guilds

8,768,815 posts in forums

Newest Forum Topics:
1. Transfering Shepard's appearance (Mass Effect 2 General Discussion (No Spoilers Allowed))

2. Jade Empire's History (Jade Empire Xbox General Discussion (Spoilers Will Be Moved))

3. can't change language (Web Site Help)

4. which script launches the crafti... (NWN 1: Scripting)

5. Killing Morag (NWN 1: General Discussion (No Spoilers Allowed))