NWN2 Toolset
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Spawn Creature from conversation
NWN2 Toolset Forum Index
->
NWN2 Script Vault
View previous topic
::
View next topic
Author
Message
Hellcow
Joined: 17 Jan 2007
Posts: 100
Location: Denmark
Posted: Mon Mar 26, 2007 4:15 pm
Post subject: Spawn Creature from conversation
Small script I wrote for use in the PW I'm working on. I figured it might be of need to others, in scripting plots, spawning pets or whatever.
Code:
//**ga_spawn_creature
// Author: Hellcow
// Last modified: March 26, 2007
/*
This script spawns in a creature on chosen waypoint in a conversation.
sCreature: resref of creature to spawn
sSpawnpoint: Tag of waypoint to spawn it at
*/
void main(string sCreature, string sSpawnpoint)
{
object oTarget = GetWaypointByTag(sSpawnpoint);
location lTarget = GetLocation(oTarget);
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, sCreature, lTarget);
}
Back to top
DarinClark
Joined: 08 Oct 2009
Posts: 2
Posted: Wed Oct 21, 2009 10:49 pm
Post subject:
How do you add scripts to the "actions" section of a conversation or does this script one of those already provided?
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
NWN2 Toolset Forum Index
->
NWN2 Script Vault
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Neverwinter Nights Toolset
----------------
NWN2 Toolset
NWN2 Scripting Help
NWN2 Script Vault
Neverwinter Nights 2
----------------
Neverwinter Nights 2 The Game
General
----------------
General Board
Dungeons & Dragons
The Toolset Web site
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
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001 phpBB Group
Chronicles phpBB2 theme by
Jakob Persson
(
http://www.eddingschronicles.com
). Stone textures by
Patty Herford
.