![]() |
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? |
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)) |
Quote:
|
try..
if (created) {timeout=.05;} if (timeout&&strequals(#s(part),1)) {setcharprop #c,blah blah;timeout=.05;} else{timeout=.05;} |
Quote:
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; } |
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 |
Yes I would =)
|
| All times are GMT +2. The time now is 01:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.