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 10-28-2001, 06:17 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
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?
__________________
Reply With Quote
  #2  
Old 10-28-2001, 08:02 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
u could use flags...
Reply With Quote
  #3  
Old 10-28-2001, 08:31 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
yes he will beacause both npc will reakt on playerchats

um... or do I missundestand something =/
__________________
No Webhost at the moment
Reply With Quote
  #4  
Old 10-28-2001, 08:33 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
u could use level.blah
insted of this.
__________________
Thanks,
-KJL
Reply With Quote
  #5  
Old 10-30-2001, 08:44 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ....
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 05:23 PM.


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