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 03-30-2002, 01:03 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
2 in 1

would there be any way to make this one command?
NPC Code:

if(this.index[this.selecteditem] in this.anihats) {setstring this.ext,mng;} else {setstring this.ext,png;}
setstring client.hat,hat#v(this.index[this.selecteditem]).#s(this.ext);



I tryed
setstring client.hat,hat#v(this.index[this.selecteditem]).(this.index[this.selecteditem] in this.anihats ? mng:png);
&
setstring client.hat,hat#v(this.index[this.selecteditem]).#s((this.index[this.selecteditem] in this.anihats ? mng:png));


nether worked
Reply With Quote
  #2  
Old 03-31-2002, 05:08 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
oh ok i did not know of thos... thank you
Reply With Quote
  #3  
Old 03-31-2002, 11:32 AM
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: Re: 2 in 1

Quote:
Originally posted by Kaimetsu
Your way is satisfactory. But, if this is to be run on the clientside, use local.strings for the temp value instead of this.strings. And clear it afterwards.
like 'level.string' ?
Reply With Quote
  #4  
Old 03-31-2002, 12:18 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I think he means like
if (created) {
level.test=true;
}
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 11:40 AM.


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