Editor Portal Question

G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

Anyone know it if's possible to create portals that only appear under
certain conditions? For example, if a character has a dagger +2 in
his inventory and walks past the location of a portal, it'll appear
and be useable.
 
G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

Paul Fedorenko wrote:
> Anyone know it if's possible to create portals that only appear under
> certain conditions? For example, if a character has a dagger +2 in
> his inventory and walks past the location of a portal, it'll appear
> and be useable.

You'd put a trigger around the location you want the portal to be, and a
script in the OnEnter event that checked for your condition and spawned
in the portal if it was met.

For an example of spawning portals, see this thing I wrote for dynamic
portals for arcane spell casters. Not exactly what you want but it is
an example of spawning portals.

http://nwvault.ign.com/Files/prefabs/data/1083432386000.shtml
 
G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

Paul Fedorenko wrote:
> Anyone know it if's possible to create portals that only appear under
> certain conditions? For example, if a character has a dagger +2 in
> his inventory and walks past the location of a portal, it'll appear
> and be useable.

It's possible, but requires some scripting. One solution would be to place a
trigger around the location (waypoint) where the portal is supposed to
spawn. Then you will have to write a script for its OnEnter event. The
script cycles through the inventory of the entering player and creates the
portal when the correct item is found.

HTH
Hans
 
G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

On Wed, 14 Jul 2004 18:07:19 +0200, "Hans Wein"
<hwein_nospam_@gmx.net> wrote:

>It's possible, but requires some scripting. One solution would be to place a
>trigger around the location (waypoint) where the portal is supposed to
>spawn. Then you will have to write a script for its OnEnter event. The
>script cycles through the inventory of the entering player and creates the
>portal when the correct item is found.

Thanks. TIme to learn some scripting, I guess. I was kind of hoping
for a point-and-click wizard-based solution. What can I say? I'm
lazy. The scripting language seems C-like, so I'm not too worried.

Off to look into it now.
 
G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

"Paul Fedorenko" <pfedorenko@look.ca> wrote in message
news:nesaf0hsp4a8ojiooum6fh4s5fviovbsa1@4ax.com...
> On Wed, 14 Jul 2004 18:07:19 +0200, "Hans Wein"
> <hwein_nospam_@gmx.net> wrote:
>
> >It's possible, but requires some scripting. One solution would be to
place a
> >trigger around the location (waypoint) where the portal is supposed to
> >spawn. Then you will have to write a script for its OnEnter event. The
> >script cycles through the inventory of the entering player and creates
the
> >portal when the correct item is found.
>
> Thanks. TIme to learn some scripting, I guess. I was kind of hoping
> for a point-and-click wizard-based solution. What can I say? I'm
> lazy. The scripting language seems C-like, so I'm not too worried.
>
> Off to look into it now.

I'd say it falls into that family of languages. I really boils down to
finding the right function to do wht you want and then some creativitiy in
mixing and matching them.