Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : can a script be repeated?
New Topic New Poll Post Reply
Poster Message
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon can a script be repeated? (0)  
like say i want character to

move to 1,1
move to 2,2
repeat?

can a script be repeated so a constant movement is created? i know that it is somehow possible as i have seen it in some holds


____________________________
KDD- completed demo
TCB-
JTRH-
11-08-2008 at 01:44 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
mxvladi
Level: Smitemaster
Rank Points: 2505
Registered: 02-11-2008
IP: Logged
icon Re: can a script be repeated? (+2)  
Yep, it can be. I currently don't remember exact threads where it was explained, so I'll just post an example of script which is repeated:

Label moving
Move to [coordinates here]
Move to [coordinates here]
Go to moving


Label name doesn't need to be "moving", that's just an example. :)
11-08-2008 at 01:46 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon Re: can a script be repeated? (0)  
whoa man! thankyou very very much!

____________________________
KDD- completed demo
TCB-
JTRH-
11-08-2008 at 01:49 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
Sillyman
Level: Smiter
Avatar
Rank Points: 339
Registered: 09-08-2006
IP: Logged
icon Re: can a script be repeated? (0)  
Note that if you want to loop a script that doesn't necessarily do anything which takes a turn, you must insert a wait 0.

____________________________
Who, me?
FNORD
11-08-2008 at 06:46 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon Re: can a script be repeated? (0)  
i ave a new question.
can i copy/paste a script? if so how?

____________________________
KDD- completed demo
TCB-
JTRH-
11-09-2008 at 06:01 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: can a script be repeated? (0)  
You can. Try pressing control (ctrl) C after selecting an area.

At least, I think that's how it works. Haven't tested it myself.
11-09-2008 at 06:04 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
mxvladi
Level: Smitemaster
Rank Points: 2505
Registered: 02-11-2008
IP: Logged
icon Re: can a script be repeated? (+1)  
No-no, ctrl-c doesn't work(EDIT: oh, well, it also works, but Ctrl-B is better to use; see lower posts).

ctrl-b does. To copy the script, select it(using shift) and press Ctrl-b, to paste it press Ctrl-shift-b.

That's how it works. :)

[Last edited by mxvladi at 11-09-2008 06:37 PM]
11-09-2008 at 06:09 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
rman
Level: Smiter
Avatar
Rank Points: 371
Registered: 09-24-2007
IP: Logged
icon Re: can a script be repeated? (0)  
mxvladi wrote:
No-no, ctrl-c doesn't work.

ctrl-b does. To copy the script, select it(using shift) and press Ctrl-b, to paste it press Ctrl-shift-b.

That's how it works. :)

Really? I always used Ctrl+C and Ctrl+V and it worked... :?

____________________________
Click here to view the secret text

Best quote ever (TSS ending spoiler):
Click here to view the secret text

11-09-2008 at 06:31 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mxvladi
Level: Smitemaster
Rank Points: 2505
Registered: 02-11-2008
IP: Logged
icon Re: can a script be repeated? (0)  
rman wrote:
mxvladi wrote:
No-no, ctrl-c doesn't work.

ctrl-b does. To copy the script, select it(using shift) and press Ctrl-b, to paste it press Ctrl-shift-b.

That's how it works. :)

Really? I always used Ctrl+C and Ctrl+V and it worked... :?

Maybe it works, but that's what Someone Else said in one of topics:

Someone Else wrote: Simply select the script and press Ctrl-B to copy it, and then Ctrl-V to paste them into a reply. If you want to use a script, select it and press Ctrl-C, then in a character press Ctrl-Shift-B to paste it.

So, in fact, he advices to use Ctrl-B and Ctrl-shift-B when copying script. I think it's not bad to follow advices of scriptmaster... :look
11-09-2008 at 06:34 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: can a script be repeated? (+1)  
IIRC Ctrl-C and Ctrl-V use an internal clipboard, which doesn't persist, whereas Ctrl-B and Ctrl-Shift-B use the real clipboard, and can copy-paste scripts across DROD instances, to the forums and back, and anywhere else.
11-09-2008 at 06:38 PM
View Profile Show all user's posts Quote Reply
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon Re: can a script be repeated? (0)  
im having a prob. i only ever get one command.. i want to copy a whole sequence.

____________________________
KDD- completed demo
TCB-
JTRH-
11-09-2008 at 08:25 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
Kwerulous
Level: Smiter
Rank Points: 340
Registered: 05-15-2008
IP: Logged
icon Re: can a script be repeated? (+2)  
ellwilll wrote:
im having a prob. i only ever get one command.. i want to copy a whole sequence.
To highlight a group of commands-
*Click on the first command.
*Hold down control (ctrl)
*Click the other commands

You can also click once on the top command, then hold down shift and click the bottom command that you want, and that will highlight all other commands in between.

Then continue copying/pasting like before.

[Last edited by Kwerulous at 11-09-2008 08:54 PM]
11-09-2008 at 08:54 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon Re: can a script be repeated? (0)  
lol another quiestion!
how do i make stairs that dont look like stairs, like a place that takes you to a different level but not a staircase?

____________________________
KDD- completed demo
TCB-
JTRH-
11-13-2008 at 07:02 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
mxvladi
Level: Smitemaster
Rank Points: 2505
Registered: 02-11-2008
IP: Logged
icon Re: can a script be repeated? (+2)  
SCRIPTING, TOO! :)

There's a command "go to level entrance" among other script command. Do smth like:

Wait for entity player [coordinates]
Go to level entrance [skip/not skip entrance screen][choose level entrance]


Good luck. ;)
11-13-2008 at 07:05 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
ellwilll
Level: Roachling
Rank Points: 11
Registered: 10-14-2008
IP: Logged
icon Re: can a script be repeated? (0)  
thanks man ur soooo helpfull :)

____________________________
KDD- completed demo
TCB-
JTRH-
11-16-2008 at 10:13 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : can a script be repeated?
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.