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 02-16-2002, 12:54 PM
Jap Jap is offline
Registered User
Join Date: Dec 2001
Location: Pennsylvania, United States of America
Posts: 261
Jap is on a distinguished road
Send a message via ICQ to Jap Send a message via AIM to Jap
Unhappy Need help.

I am trying to set a string. I think it's set. I said:
"setstring part,1;"

Then, on another NPC...I said:
"if (strequals(#s,part==1)){
setcharprop #c,blah blah;
}"

Except, it doesn't say "blah blah". Could someone please help me?
Reply With Quote
  #2  
Old 02-16-2002, 01:11 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Thats not how you do strequals for a string, this is an example of strequals that worked for me:
if (timeout&&strequals(#s(client.hp),0))
Reply With Quote
  #3  
Old 02-16-2002, 01:41 PM
Jap Jap is offline
Registered User
Join Date: Dec 2001
Location: Pennsylvania, United States of America
Posts: 261
Jap is on a distinguished road
Send a message via ICQ to Jap Send a message via AIM to Jap
Quote:
Originally posted by Python523
Thats not how you do strequals for a string, this is an example of strequals that worked for me:
if (timeout&&strequals(#s(client.hp),0))
Could you fix mine all back up like yours worked?
Reply With Quote
  #4  
Old 02-16-2002, 02:27 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
try..
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}
Reply With Quote
  #5  
Old 02-17-2002, 02:43 AM
Jap Jap is offline
Registered User
Join Date: Dec 2001
Location: Pennsylvania, United States of America
Posts: 261
Jap is on a distinguished road
Send a message via ICQ to Jap Send a message via AIM to Jap
Quote:
Originally posted by Python523
try..
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}
Still not working. It says no if-clause is specified. As you can see, I'm not a great scripter.
Would someone tell me the scripts for both NPC's?
EX: For one, say do this in the script:

if (created){
string is being set like this;
}

Then for the second one say this:

if (string is acutallt set do this){
setcharprop #c,blah blah;
}
Reply With Quote
  #6  
Old 02-17-2002, 02:46 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
if (created) {setstring part,1;}
if (created) {timeout=.05;}
if (timeout&&strequals(#s(part),1))
{setcharprop #c,blah blah;timeout=.05;}
else{timeout=.05;}
that should work, havent tested, if you want me to try to fix all the parts of the script, PM me it or post it
Reply With Quote
  #7  
Old 02-17-2002, 03:32 AM
Jap Jap is offline
Registered User
Join Date: Dec 2001
Location: Pennsylvania, United States of America
Posts: 261
Jap is on a distinguished road
Send a message via ICQ to Jap Send a message via AIM to Jap
Yes I would =)
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 04:02 PM.


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