Some script help needed!
Hello.
I'm a little stuck, so I'll explain my problem. I'm trying to get an npc to move in two directions, back and forth in a loop. I've managed to get it to move in the first place, but I can't loop it. Here's what I've tried; Sticking "While" before and after the move lines, I've used the flag name, but I don't know the operation (so I left that blank, then stuck the two lines of code that move next to it, seperated by a comma.)I aslo declared that the flag is set too. I've also tried an "If" statement, that didn't work either. here's the bit of code, maybe one of you cleverclogs can crack it. set nopkzone while nopkzone, move -17,0,2,; move 17,0,0.4,;} The error is "expected format set: string" the "If" is exactly the same, with the same error. Why isn't there just a "loop" command? Makes my life easier. Also, I'm using the offline editor. I have a few other minor problems aswell, I'll post them later. Thanks. |
You're doing something really weird, and there is loops in GS1:
PHP Code:
|
Thank you! any chance you could tell me why (playertouchesme) isn't working?
+1 |
It's playertouchsme not playertouchesme
|
Quote:
PHP Code:
|
No I can't read your mind or screen, you have to post your code, and you were already told why it doesn't work.
|
Quote:
Quote:
|
FAIL. Thanks guys, I feel pretty dumb, haha. Repped you both.
One last question. Is it possible to slowdown player movement after "touchsme"? And if so, how? |
Can anyone help me?
|
You can only change the players speed in GS2
PHP Code:
|
Aww :(
|
At least I don't know any way in GS1 except making your own movement system
|
I see, thanks anyway. ^^
|
You can simulate slow downs by using an 'opposite' boots script:
PHP Code:
|
Quote:
|
All times are GMT. The time now is 09:42 AM. |
Powered by vBulletin/Copyright ©2000 - 2024, vBulletin Solutions Inc.