Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > NWN Mod: Escape from Undermountain
FAQ Calendar Arcade Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 03-01-2007, 02:54 AM   #11
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
location lTarget;
object oSpawn;
object oTarget;

void main()
{

object oPC = GetPCSpeaker();

if (GetLocalInt(oPC, "barrel")== 0)
{
oTarget = GetWaypointByTag("WP_YOURTAGHERE");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "yourresrefhere", lTarget);

SetLocalInt(oPC, "barrel", 1);

}
}

This may be the better spawner for the barrel, it checks for, and sets the variable, then the barrel can reset it, and destroy itself.
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 03-01-2007, 04:06 AM   #12
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Damn.. I even used Lilac's tool to spawn one--with no else even, and it didn't work. made sure the resref was right, lowercase, and waypoint tag was right...

Yours WORKS!! Here was my version. I didn't have the setlocal thingy, I guess that was it. I suck as scripts. Next time, instead of spending hours at it, I'll ask you! [img]smile.gif[/img] Thanks a million!! WOOHOO! Now I can finish up, and OPEN the beast!

-----------
/*
void main()
{

object oTarget;
object oSpawn;
location lTarget;

object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);

//if (GetLocalInt(oPC, "oncogfindquest")== 1)
// {


lTarget = GetLocation(oTarget);
oTarget = GetWaypointByTag("WP_PLTBARREL01");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "woodenbarrel0001", lTarget);

// }
//else
// {
// //incase someone spawned it and another player comes along
// oTarget = GetObjectByTag("WoodenBarrel0001p");
// DestroyObject(oTarget, 0.0);
// }
}
*/
-------------------------
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 03-01-2007, 04:09 AM   #13
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Quote:
Originally posted by robertthebard:
I don't know how much of this you may have already done, but...

/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3

For download info, please visit:
http://nwvault.ign.com/View.php?view...id=4683&id=625 */

//Put this on action taken in the conversation editor
void main()
{

object oPC = GetPCSpeaker();

object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("WP_YOURTAGHERE");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "resrefhere", lTarget);

}

Try that for your barrel.

Edit: Make sure you paint the waypoint in where you want the barrel...Not like you might forget, but I have...
Yeah, I use Lilac all the time, and this didn't work for some reason. totally stumped me.. Lilac's scripts ALWAYS work usually. odd... [img]smile.gif[/img]
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 03-01-2007, 04:38 AM   #14
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
Quote:
Originally posted by Ziroc:
Damn.. I even used Lilac's tool to spawn one--with no else even, and it didn't work. made sure the resref was right, lowercase, and waypoint tag was right...

Yours WORKS!! Here was my version. I didn't have the setlocal thingy, I guess that was it. I suck as scripts. Next time, instead of spending hours at it, I'll ask you! [img]smile.gif[/img] Thanks a million!! WOOHOO! Now I can finish up, and OPEN the beast!

-----------
/*
void main()
{

object oTarget;
object oSpawn;
location lTarget;

object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);

//if (GetLocalInt(oPC, "oncogfindquest")== 1)
// {


lTarget = GetLocation(oTarget);
oTarget = GetWaypointByTag("WP_PLTBARREL01");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "woodenbarrel0001", lTarget);

// }
//else
// {
// //incase someone spawned it and another player comes along
// oTarget = GetObjectByTag("WoodenBarrel0001p");
// DestroyObject(oTarget, 0.0);
// }
}
*/
-------------------------
If your calling it from a conversation, then the EnteringObject won't work. This looks more like a trigger/area enter script. I really hate the DoOnce thing too, it never seems to work for me. I'll generate the rough script, and add the variables after the fact. This stuff was easy, I've spent most of the day working on a cutscene for another module I'm scripting for...*shudder*...Gestalts package is pretty easy to use, but getting it to fire from different places is sure a pain.

Edit, I spend far too much time on this stuff now, but...when you called for the tag of the int, you called (oPC, OBJECT_SELF), this will call the tag of the PC. This may also be a part of why it wasn't working. All fixed anyway, so it's all good. As I said before, if you need help, don't hesitate to ask. I'm more than glad to help where I can.

[ 03-01-2007, 04:45 AM: Message edited by: robertthebard ]
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 03-01-2007, 07:29 AM   #15
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Yep, I was doing a trigger, but I decided to use yours and drop it in the convo on accepting the quest. [img]smile.gif[/img] Works fine!
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 03-01-2007, 10:49 AM   #16
Unglaublich Verwustung
Silver Dragon
 

Join Date: August 2, 2006
Location: i ngach aon áit (but mostly Western Europe)
Age: 55
Posts: 1,619
I like to think that you two are talking in english but frankly I'm taking it on faith at the moment.

[img]graemlins/1dizzy.gif[/img]
__________________


Make a decision, even if it's wrong, and remember....


...it's never too early for a salad.
Unglaublich Verwustung is offline   Reply With Quote
Old 03-01-2007, 11:28 AM   #17
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
Nope, not English, NWN's Official Gibberish...
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 03-01-2007, 02:35 PM   #18
Garnet FalconDance
Mephistopheles
 

Join Date: August 30, 2001
Location: deep within the sylvan splendor....
Age: 60
Posts: 1,443
For a minute I thought you said you were speaking in Gibberling - and I was about to get out my sharp-and-pointy!
__________________
"Nature tells every secret once." Ralph Waldo Emerson
Garnet FalconDance is offline   Reply With Quote
Old 03-02-2007, 02:10 PM   #19
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Bump!
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 03-02-2007, 06:59 PM   #20
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Any feedback yet?
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your favorate Undermountain level? T-D-C NWN Mod: Escape from Undermountain 11 11-08-2005 10:56 PM
Undermountain Trollbark Temple now open! Ziroc NWN Mod: Escape from Undermountain 14 09-05-2005 09:17 PM
Undermountain Level 14 almost open & NEW UPDATE added! Ziroc NWN Mod: Escape from Undermountain 0 02-04-2005 01:40 AM
Level 11 Finished -- Fortress on that level open! Ziroc NWN Mod: Escape from Undermountain 3 02-14-2004 01:53 AM
July 5th 9:35 the undermountain is open come on everyone! TheCrimsomBlade General Conversation Archives (11/2000 - 01/2005) 6 07-06-2003 03:09 AM


All times are GMT -4. The time now is 04:14 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved