![]() |
Condensed Endless Loop...
NPC Code: Yes, I have tried changing i=17 to i==17 but it didn't work :\. |
yes, well keep the i==17 in because thats the correct format. At least thats one problem solved. Also, you have:
if (this.key5=true) it should be if (this.key5==true) like Falcor said, = is an assignment, == means equal to eg this.var = 5; // Makes this.var equal to 5 Also, heres an example of a very simple timeout loop that is stopped: NPC Code: I suggest using : if (timeout && i == 17) { //thingys; } -Ning |
last time i checked graal checks = and == in if/while/for statements as being equals, i always use == but i think = works as well, even though it is technically incorrect
|
kool :P
|
NPC Code: :\, that's the script now. It still doesn't work though... |
In the timeout loop, you set i to 16. SO the timeout loop could never start...I may be reading it wrong, but at a glance thats how it looks
w00t im a member now :D (not junior) <3 |
it says &&i==17, meaning it has to be 17 in the first place, so you have to set that somewhere
(dunno if thats what ningnong meant or not, sorry if it was :X) |
Quote:
|
hmm, why do you have
if (this.key5 == true) this.key5 = false ? since the script is confusing, maybe you should explain in english what your trying to do, then I could whip you up an alternate script :P |
Okay, at the time that this part of the script is executed...
this.key5 could be true or false. i=17 |
the timeout stops for me. *shrugs*
|
Falados, I'll send you the whole script whenever you get on AIM.
|
If you need a variable to be stored longer than the current "frame", you should use this. variables, because other scripts might use the variable as well and therefore mess up your script.
|
Quote:
|
Quote:
|
Please explain what you're trying to do in plain english and give us an idea of how you will be applying it, none of us are interested in stealing it ;)
Until then, all i can tell is you want to set i equal to 16 and set this.key5 to false which doesn't require a timeout at all because the way it's set up no matter if the timeout checks the given requirement, it still does the same thing |
Well, I tried to get some private help, but because I seem to script strangely, nobody could understand my script. But then, when I was playing Survivor on 2K1, I innexplicably randomly knew what I was doing wrong. Strange indeed, but fortunate aswell. Anyways, thank you for trying :grin:. You can close this thread if you like Kai.
|
Quote:
I screw something up and then I know what's wrong while I'm not even worrying about scripting. |
I understood it
I understood the script, because I am pyschotic, insane, crazy and a dork. You have to think in the 3 x 3 method instead of the 2 x 4. It works much better due to crisp triangles than sorry rectangles. It's just that Googi logged off AIM right before I was going to send it X_X.
hehe, I need to make a leet signature :grin: |
XD, yes, just after I figure it out, Sage sent me another fixed version of the script, which worked just as good, but was only about 3/4 the length.
|
since your topic was resolved and i don't want to start a separate pointless thread... what's with your icons? x.x it's so... femminine... i thought you were a guy
|
Chrono something?
I believe his icon is from Chrono Trigger or Chrono Cross. He told me that she has that teenager way of speaking. You know like "Like whatever." Or wait that could be his other icon. I forgot, you guys go ask him.
What do you want him to have as an icon, a big bad man with a big bad gun and a big bad sword with some big pecs that show from his muscle T-Shirt. |
Quote:
|
She just scares me ._.
So demonic! OH THE HUMANITY! |
Marcy.. tee hee
heh, Marcy reminds me of Chun-li with her head ornaments.
|
Quote:
|
| All times are GMT +2. The time now is 01:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.