Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Vars and stuff (https://forums.graalonline.com/forums/showthread.php?t=7353)

Slaktmaster 07-16-2001 06:17 AM

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?

Shard_IceFire 07-16-2001 09:15 PM

um...couldn't you just do:
NPC Code:

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


Brady2 07-16-2001 11:31 PM

Jadis:

Not if you're cool.

Slaktmaster 07-17-2001 12:50 AM

You don't get it. I wanna know if a weapon can read vars set by another non-weapon NPC in the level.

grim_squeaker_x 07-17-2001 01:26 AM

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.

Slaktmaster 07-17-2001 04:31 AM

Thanks Lady Midnight!


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

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