Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-16-2001, 06:17 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Vars and stuff

If I do a weapon like this:

if (playerenters) {
timeout=1;
}

if (timeout) {
if (level.wee==1) {
setplayerprop #c,Wee;
}
timeout = 1;
}

I then make an NPC in the level that is like this:

if (playerenters) {
timeout = .05;
}

if (timeout) {
level.wee = 1;
timeout = .05;
}

Would this make the character say Wee when I enter the level and have the weapon?
Reply With Quote
  #2  
Old 07-16-2001, 09:15 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
um...couldn't you just do:
NPC Code:

if (playerenters) {
setplayerprop #c,Wee;
}

__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 07-16-2001, 11:31 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

Not if you're cool.
Reply With Quote
  #4  
Old 07-17-2001, 12:50 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
You don't get it. I wanna know if a weapon can read vars set by another non-weapon NPC in the level.
Reply With Quote
  #5  
Old 07-17-2001, 01:26 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Slaktmaster
You don't get it. I wanna know if a weapon can read vars set by another non-weapon NPC in the level.
Yes it can.
__________________

Reply With Quote
  #6  
Old 07-17-2001, 04:31 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Thanks Lady Midnight!
Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT +2. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.