Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   This. Commands (https://forums.graalonline.com/forums/showthread.php?t=15611)

Aknts 10-28-2001 06:17 AM

This. Commands
 
Ok say I have 2 npc in the same level that in there scripts say
if (playerchats) {Hi;this.on = 1;
if (this.on==1) {
message Hi
}
}
and the other
if (playerchats) {Hello;this.on = 1;
if (this.on==1) {
message Hi
}
}
If you talk to one will it set the other to be on too also?

Brad_Elven 10-28-2001 08:02 AM

u could use flags...

TDO2000 10-28-2001 08:31 AM

yes he will beacause both npc will reakt on playerchats ;)

um... or do I missundestand something =/

KJS 10-28-2001 08:33 AM

u could use level.blah
insted of this.

nyghtGT 10-30-2001 08:44 PM

Re: This. Commands
 
Quote:

Originally posted by Aknts
Ok say I have 2 npc in the same level that in there scripts say
if (playerchats) {Hi;this.on = 1;
if (this.on==1) {
message Hi
}
}
and the other
if (playerchats) {Hello;this.on = 1;
if (this.on==1) {
message Hi
}
}
If you talk to one will it set the other to be on too also?

this. variables pertain only to the NPC they are on ....


All times are GMT +2. The time now is 09:38 PM.

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