NWN2 Toolset

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Spawn Creature from conversation

 
Post new topic   Reply to topic    NWN2 Toolset Forum Index -> NWN2 Script Vault
View previous topic :: View next topic  
Author Message
Hellcow



Joined: 17 Jan 2007
Posts: 100
Location: Denmark

PostPosted: Mon Mar 26, 2007 4:15 pm    Post subject: Spawn Creature from conversation Reply with quote

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. Smile



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
View user's profile Send private message Visit poster's website MSN Messenger
DarinClark



Joined: 08 Oct 2009
Posts: 2

PostPosted: Wed Oct 21, 2009 10:49 pm    Post subject: Reply with quote

How do you add scripts to the "actions" section of a conversation or does this script one of those already provided?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NWN2 Toolset Forum Index -> NWN2 Script Vault All times are GMT
Page 1 of 1

Jump to:  

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.

Abuse - Report Abuse
Powered by forumup.com free forum, create your free forum!
Created by Raulken of Hyarbor S.r.l.
TOS & Privacy.

Page generation time: 0.023