View unanswered posts | View active topics * FAQ    * Search
* Login 




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Acacia
 
PostPosted: Thu, Jan 07 2010, 0:09 AM 



Player

Joined: 28 Dec 2009

I'm new to scripting in the NWN Aurora toolset and I was wondering how to go about making statues out of NPCs like the ones I see in Cordor and the temple of Waukeen in Amia for a weekly story module a friend has been running for six months now. I'm guessing that I would need to make an OnEnter event for the specific area that the statues are in and then set the NPCs to be petrified but I can't seem to get the scripting right.

I hate the statues in the placables menu and I don't really want to dignify the Seldarine (the elven gods) with the faceless granite statue with gold shield placable.

_________________
Very clever.


 
      
Terra_777
 
PostPosted: Thu, Jan 07 2010, 0:47 AM 

User avatar

Administrative Developer

Joined: 31 Jan 2007
Location: Sweden

Scripting is like lego, you get pieces and you pieces them together after your needs. Here is two legoblocks you will need:

http://www.nwnlexicon.com/compiled/func ... bject.html
http://www.nwnlexicon.com/compiled/func ... trify.html

_________________
Fear is not evil… It tells you what your weakness is. And once you know your weakness, you can become stronger as well as kinder. - Gildarts Clive, Fairy Tail, Hiro Mashima.


 
      
Galenson
 
PostPosted: Thu, Jan 07 2010, 1:23 AM 

User avatar

Player

Joined: 26 May 2006
Location: Down Under, calculating your demise with blunt expressions.

Scripting for me is like poking a leopard with a stick and wondering why it gets angry and attacks you through a window.

...(me being the leopard attacking my computer due to frustration)

_________________
Plays:

"I'll think of something once Amia:EE drops."


 
      
Dev Disco
 
PostPosted: Thu, Jan 07 2010, 9:50 AM 

User avatar

HRM Chicken I of Amia

Joined: 02 Jun 2005
Location: Amsterdam

Acacia wrote:
I'm new to scripting in the NWN Aurora toolset and I was wondering how to go about making statues out of NPCs like the ones I see in Cordor and the temple of Waukeen in Amia for a weekly story module a friend has been running for six months now. I'm guessing that I would need to make an OnEnter event for the specific area that the statues are in and then set the NPCs to be petrified but I can't seem to get the scripting right.

I hate the statues in the placables menu and I don't really want to dignify the Seldarine (the elven gods) with the faceless granite statue with gold shield placable.


You make a script in their OnSpawn event (NPC properties/scripts).

Add this:

ApplyEffectToObject( DURATION_TYPE_PERMANENT, SupernaturalEffect( EffectPetrify() ),
OBJECT_SELF );

Strip the scripts from the other events, set the NPC to immovable, and make it plot and immortal.

_________________
Say 'no' to JSBF!


 
      
Acacia
 
PostPosted: Thu, Jan 07 2010, 20:22 PM 



Player

Joined: 28 Dec 2009

Thanks, I'll try that out. I was kind of scratching my head at how to implement it based on the links from the lexicon...

_________________
Very clever.


 
      
Xaviera
 
PostPosted: Fri, Jan 08 2010, 19:24 PM 

User avatar

Player

Joined: 07 Aug 2006
Location: Temple of Love

Thanks. Was looking to do the same thing myself.

Then, of course, you get the nice stone effect. Can you permanently paralyze it without petrifying so that the normal colours show?

And why isnt there a thread for scripting questions so that Disco and Terra have even more to do?

_________________
Image
~Sharess on AmiaWiki~
Priestess, politician, prostitute
"[They] were moving in on me like Sharessans on a new broad in the bath house" - Tracer Bolt
AmiaWiki mod (mostly inactive)


 
      
Terra_777
 
PostPosted: Fri, Jan 08 2010, 19:54 PM 

User avatar

Administrative Developer

Joined: 31 Jan 2007
Location: Sweden

Oh, yeah, sitescripting.

Code:
ApplyEffectToObject( 2, SupernaturalEffect( EffectCutsceneParalyze( ) ), OBJECT_SELF );
ApplyEffectToObject( 2, SupernaturalEffect( EffectVisualEffect( VFX_DUR_FREEZE_ANIMATION ) ), OBJECT_SELF );


Petrifies but without any extra textures.

_________________
Fear is not evil… It tells you what your weakness is. And once you know your weakness, you can become stronger as well as kinder. - Gildarts Clive, Fairy Tail, Hiro Mashima.


 
      
Terra_777
 
PostPosted: Fri, Jan 08 2010, 20:18 PM 

User avatar

Administrative Developer

Joined: 31 Jan 2007
Location: Sweden

Also, how to do a sit-able chair since I get asked frequently:

1: Rightclick on your chair and select "properties"
2: In the basic tab. click in "plot" (optional: if you want your chair to be un-destroyable) and click in the "usable" checkbox, otherwise it won't work.
3: Go to the script tab and fill in "x2_plc_used_sit"(This script is bioware default thus all nwn installations has it) in the OnUsed field.

Pictures:

Image

Image

_________________
Fear is not evil… It tells you what your weakness is. And once you know your weakness, you can become stronger as well as kinder. - Gildarts Clive, Fairy Tail, Hiro Mashima.


 
      
Xaviera
 
PostPosted: Sun, Jan 24 2010, 2:08 AM 

User avatar

Player

Joined: 07 Aug 2006
Location: Temple of Love

That monster I froze - I got that part working. But I want it to be a statue on top of a pedestal and it insists on spawning at ground level even though it has a positive z-coordinate. Can I force it to spawn in mid-air (atop the placeable) or does there need to be a tile surface there?

_________________
Image
~Sharess on AmiaWiki~
Priestess, politician, prostitute
"[They] were moving in on me like Sharessans on a new broad in the bath house" - Tracer Bolt
AmiaWiki mod (mostly inactive)


 
      
Selvec Darkon
 
PostPosted: Sun, Jan 24 2010, 2:31 AM 

User avatar

Player

Joined: 12 Oct 2005
Location: On a Disk, carried by four elephants, which stand on a gigantic turtle.

Neverwinter Nights sittable chairs are easy to do...try it on NWN2 *snicker*.
Walkmesh issues galore, then you sometimes have to cut your own area's with your own mesh thing to let them sit. Then you have to make them sit. Then you have to enter variable to make sure they face the right way. Then after all this (and it is a lot), you'll probably only get it working for humans sized models and smaller models will glitch up, sinking into the chair or what not.

So you have to make "hin chairs" or something. Go back through the steps. Finally done, realise that there is another few hundred chair models in the game that need these steps done for them. Thats when you give up and go do something else xD.

_________________
I keels u with my axe!

"Do ye know where the Holy-Flamin' Frost-brand Gronk-slayin' Vorpal Hammer o' woundin' an' returnin' an' Shootin'-Lightnin'-out-yer-bum is?"


 
      
Garnith
 
PostPosted: Sun, Jan 24 2010, 8:16 AM 

User avatar

Player

Joined: 22 Jan 2008

Personally, I use Lilac Soul's Script Generator. It can generally walk you through most things easily enough, and is wonderful for us lazy module makers. :P

Link:
http://nwvault.ign.com/View.php?view=Ot ... ail&id=625

_________________
"Hi, I'm Garnith, and I'm an Invisophile."
Garnith, Ranth, Rick, Burick, Elail, Deryl, Kane, Rini.
Suggestion Rule of Thumb: Don't think about how neat it would be to use, think about how neat it would be for people to use against you.


 
      
Dev Disco
 
PostPosted: Sun, Jan 24 2010, 9:17 AM 

User avatar

HRM Chicken I of Amia

Joined: 02 Jun 2005
Location: Amsterdam

Just in case: if you do things like this in areas you intend to add to Amia: don't. We got those scripts already available and I hate doubles.

_________________
Say 'no' to JSBF!


 
      
Acacia
 
PostPosted: Sun, Jan 24 2010, 18:54 PM 



Player

Joined: 28 Dec 2009

Garnith wrote:
Personally, I use Lilac Soul's Script Generator. It can generally walk you through most things easily enough, and is wonderful for us lazy module makers. :P

Link:
http://nwvault.ign.com/View.php?view=Ot ... ail&id=625


I use it sometimes, but not because I'm lazy. I've learned a lot about scripting for NWN through using it but I was stumped on how to get those statues right even when using it.

_________________
Very clever.


 
      
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group