03-01-2007, 02:54 AM | #11 |
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. |
03-01-2007, 04:06 AM | #12 |
Ironworks Webmaster
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 |
03-01-2007, 04:09 AM | #13 | |
Ironworks Webmaster
Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
|
Quote:
__________________
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 |
|
03-01-2007, 04:38 AM | #14 | |
Xanathar Thieves Guild
Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
|
Quote:
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. |
|
03-01-2007, 07:29 AM | #15 |
Ironworks Webmaster
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 |
03-01-2007, 10:49 AM | #16 |
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. |
03-01-2007, 11:28 AM | #17 |
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. |
03-01-2007, 02:35 PM | #18 |
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 |
03-02-2007, 02:10 PM | #19 |
Ironworks Webmaster
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 |
03-02-2007, 06:59 PM | #20 |
Ironworks Webmaster
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |