distractionware forums

VVVVVV => VVVVVV Levels => Topic started by: PJBottomz on August 03, 2011, 11:23:57 pm

Title: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 03, 2011, 11:23:57 pm
Because many people are anxious to learn how to script, and to take pressure off Terry (cause he's awesome), I made a VVVVVV level that is a scripting tutorial - IN DISGUISE!

(http://i.imgur.com/3YmOb.png)

(http://i.imgur.com/zPcuZ.png)

(http://i.imgur.com/buIxl.png)

(http://i.imgur.com/VX8a2.png)

Anyway, hope it's helpful! It should be bug free.

(Please Note: PJBottomz is a self-taught scripter, so it may not be good.)

(Also Note: This uses flags.)

(IMPORTANT: I love VVVVVV)
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: SirBryghtside on August 04, 2011, 01:08:46 am
This is great! There are a couple of bugs, though - in 'Total Annihilation, there's one box which just says 'reply'. Also, in the ultimate scripting test, I activated the first terminal and got stuck between a warp token and a flipper line - the flipper respawned when I activated the terminal. I had both trinkets at that point, and couldn't progress :victoria:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 04, 2011, 01:19:48 am
Really? Let me look into it. That shouldn't happen...

EDIT: Okay, I fixed both things you mentioned, and a few others I found. The file has been fixed!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: mint301 on August 04, 2011, 02:08:52 am
Love this level! I think you should add a hub room where you can jump to a part of the tutorial you want to know more about.  :viridian:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 04, 2011, 02:27:33 am
While that is an excellent idea, the scripts aren't programmed to give more information. They simply relay the most basic information on the subject. It would take a LOT of programming to add more information to the scripts. :victoria:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Gnome on August 04, 2011, 11:56:43 am
A most novel idea! Off to try it!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 04, 2011, 02:39:11 pm
Thanks! I figured it'd be a nice thing to do for Terry to keep the impatients off his tail.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: JoKiv on August 05, 2011, 04:51:41 am
Anyway, hope it's helpful! It should be bug free.
Sorry to disappoint you :)
If you backtrack after speaking to music terminal you'll get stuck.
http://www.youtube.com/watch?v=JvDSFladqiI (no audio, thanks to recording software)

note: "blurring" effect at background is caused by video recording software (fraps does not work, recorded using camstudio.. any suggestions?)

Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: bigkahuna on August 05, 2011, 10:36:54 pm
Thanks for making this! It was very helpful for some basic level scripting.

I wrote down all the codes given so that I could use them later on.

Could you enable backtracking so that if someone forgets/mispells/wants to look over a terminal again they can? I had to start over the level again to re-check a terminal.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 06, 2011, 08:17:15 pm
Okay, I'm sorry to say guys, but backtracking is NOT possible.

To make it possible, I would have to do almost a complete rewrite of the all the scripts. I'd probably have to make an entire new level! Also, the glitch you showed me requires a major script do-over, and it might mess with the rest of the level. I'm sorry, I really am, but just DO NOT backtrack.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Vimol on August 07, 2011, 05:49:54 pm
This has been pretty helpful.

I'm only stuck with one little thing now.  When I'm done with an event, and I switch it to a flag that does nothing, I still get the black bars like I'm about to talk, or something is about to happen, and reason to as why that happens?
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 07, 2011, 07:24:14 pm
Errr... Can you provide a video of this? I don't understand what you mean.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Vimol on August 07, 2011, 07:41:35 pm
Well, I tried my streaming of it, but holy crap is the sound off.  all the same, it shows what I mean:

http://www.livestream.com/rightturnonly/video?clipId=pla_f12079de-5ad0-4ee0-9f83-a50678836a8b&utm_source=lslibrary&utm_medium=ui-thumb
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: LaZ00L1 on August 07, 2011, 08:31:09 pm
Thanks for the tutorial!  I was wondering if destroying things other than warps and gravlines was possible, though I think I'll avoid blowing up platforms until it gets fixed.  And thanks for pointing out that script names should be lowercase, as I was wondering why certain things weren't working.  Very helpful!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 07, 2011, 09:56:05 pm
@LaZ00L1

It's not possible to do any of that yet, but Terry said it might be implimented in the next patch.

@Vimol

Ah, yes, this has been explained before. See, those won't go away until there is some kind of say or reply command. I think there's a way to not have to do this. It was done in Reactor Disaster, which is a downloadable level. I'm not totally sure how they did it though.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: TheoX on August 07, 2011, 11:17:25 pm
I considered doing a serious review of this as a joke, then decided not to. :D

This is really helpful!  I mean, I already knew how to do all of it, but potentially helpful for new mappers (and it looks like it already has helped a few people).  I like how you saved a different command for each room, and had Viridian say the commands sometimes with script boxes.  My only complaint is that you didn't address the "happy()" and "sad()" commands, but those are pretty self explanatory anyway.

Nice work!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 08, 2011, 02:36:16 am
Thank you! I am glad that people get use from this.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 09, 2011, 03:27:22 am
BUMP!

I really thing this should be pinned so people can find it easily.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: xTwoTails on August 09, 2011, 04:21:31 am
That was very entertaining. It'll take me a while to get used to that. XD

Thanks!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 09, 2011, 04:23:50 am
You're welcome.

Might I ask what you need to get used to? I do enjoy feedback.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: xTwoTails on August 09, 2011, 04:28:09 am
You're welcome.

Might I ask what you need to get used to? I do enjoy feedback.

Nothing in specific, I just need to practice and use them and eventually get good at it~
I'll replay this and see what I find so I can ask you questions about scripting~
* Furry thumbs up*
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 09, 2011, 04:31:45 am
Anytime!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 12, 2011, 11:39:24 pm
Bumpity Bump!

Wow. 111 downloads. It must be a damn good tutorial. I still think this should be pinned so new/inexperienced people can find it.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: damatman on August 13, 2011, 01:11:37 am
I found this very helpful and believe everyone should make the most of it if wanting to learn how to script.

Although I did come across a slight issue.  :victoria:
If in Musical Terms you use the terminal but then leave to the left, when you next use the terminal the gravitylines do not vanish.
The same problem in Pure Annihilation.
If in The True Test Of Scripting Abilities you have not got the first trinket and then hit the warp token you get trapped in that area forever as the gravityline reappears.

I hope that helps :)
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 13, 2011, 01:20:53 am
Like I said previously, enabling backtracking would require a complete script rewrite. And for the trinket issue, well, just make sure you have them both.

I think I might revise this and make it a bit better...
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: damatman on August 13, 2011, 06:36:10 am
Well yeah, this is only requiring someone is silly enough to go backwards on an obviously linear map :P
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Whirligig on August 14, 2011, 09:15:39 pm
Where do we learn "happy" and "sad"? It's not in the level anywhere.  :vitellary:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 14, 2011, 09:36:26 pm
I forgot to include it, but, as Theo said, it's pretty self explainatory...
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 19, 2011, 11:41:51 pm
Bump it Up!

I still think this needs to be pinned. I bumped this so Denetsu can see it.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: DensetsuNoKaboom on August 20, 2011, 12:22:09 am
Thank you for bumping this, and I agree it should be pinned.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 20, 2011, 12:29:33 am
Thanks!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: DensetsuNoKaboom on August 20, 2011, 12:32:46 am
Unfortunately even with this tutorial it appears I still have the entire scripting ability of a yak in a sweater in Honolulu.

EDIT: I've looked at the code for the tutorial and I think I'll figure this all out soon.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 20, 2011, 01:11:04 am
HAH! That's hilarious! Yak. I'm gonna start using that.

Yeah, some people have told me they have some issues with it.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 20, 2011, 05:19:58 pm
Bump. :-\
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: DensetsuNoKaboom on August 20, 2011, 06:06:42 pm
I think I've got it, and I just have one question: Is there a way to use the happy() and sad() commands to make a crewmate happy/sad instead of  :viridian:?
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 20, 2011, 06:07:48 pm
Not yet. :victoria: That'll be in the next patch, though!
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: DensetsuNoKaboom on August 20, 2011, 11:57:38 pm
Not yet. :victoria: That'll be in the next patch, though!

Hopefully, it will.  :viridian:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 21, 2011, 06:17:42 pm
Bump. ???
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: FlamingBanana on August 21, 2011, 08:06:52 pm
This was a really useful tutorial, but there is no need to keep bumping it. The LEVVVVVVEL ARCHIVE has been pinned, which includes your level.  :-X

Very useful tutorial, though. Thanks :D
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 21, 2011, 08:19:53 pm
Thanks!

Technically, even though it is, they have to download the entire level archive to get it. (AKA, that means they might download levels they don't want to try).
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Terry on August 22, 2011, 02:56:18 am
Seriously, PJ, I heard you the first time :o

I'll update the tutorial threads tomorrow to link to this. How's that?
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: DensetsuNoKaboom on August 22, 2011, 12:47:50 pm
Seriously, PJ, I heard you the first time :o

I'll update the tutorial threads tomorrow to link to this. How's that?
:-*
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: PJBottomz on August 22, 2011, 07:31:50 pm
Oh. :-[ I am so sorry. Seriously.

I tend to think that if I'm not being replied to, I'm just being ignored. I never stopped to think that MAYBE you saw it. T-T
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: FlamingBanana on August 22, 2011, 11:04:08 pm
Dont worry, I'm like that too.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dispensers Heal on September 21, 2011, 12:47:21 am
If the colored text is not included in 2.1 or if 2.1 is never released...

...you get the idea.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Damn It AL to Hell on October 07, 2011, 08:20:23 pm
Now I know how to use that flash thing on the bobbers, thanks this helped a lot! :viridian:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Devilish Deabley on May 20, 2012, 09:06:06 pm
I have downloaded it but how do I actually play it?
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Devilish Deabley on May 22, 2012, 07:13:57 pm
never mind I got it  :viridian:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Vallu on June 24, 2012, 07:40:33 pm
This tutorial is great! I learnt how to script becauce of this! Still, I have one problem... Can someone please tell me how to make crewmates talk? I can do "say" script and "reply" script but how do I make for an example: when  :viridian: is rescuing  :verdigris:, how do I make them speak to each other when  :viridian: is close to  :verdigris:?
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: FIQ on June 24, 2012, 09:07:51 pm
This tutorial is great! I learnt how to script becauce of this! Still, I have one problem... Can someone please tell me how to make crewmates talk? I can do "say" script and "reply" script but how do I make for an example: when  :viridian: is rescuing  :verdigris:, how do I make them speak to each other when  :viridian: is close to  :verdigris:?
You can't, unless you're on 2.1 beta. There, use: say(N,crewmatename)
Example: say(1,vermillion)
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Bearboy on June 25, 2012, 08:01:58 pm
This tutorial is great! I learnt how to script becauce of this! Still, I have one problem... Can someone please tell me how to make crewmates talk? I can do "say" script and "reply" script but how do I make for an example: when  :viridian: is rescuing  :verdigris:, how do I make them speak to each other when  :viridian: is close to  :verdigris:?
Are you using script boxes? put one near  :verdigris: and then write the script with the box, its optional to use a flag. If you want Verdigrises text box to be green, install 2.1 and after say put (X,verdigris)
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Vallu on June 28, 2012, 10:45:18 pm
Thank you! I installed 2.1 and got it to work.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: allison on October 06, 2012, 10:20:38 pm
How about an internal scripting tutorial?  :vermillion:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dav999 on October 07, 2012, 07:57:53 am
Well, I was making it, but it got slowed down :-\
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: N on October 12, 2012, 02:13:19 am
How about an internal scripting tutorial?  :vermillion:
bumpity

Anyways, this level was REALLY helpful!
PJ, comeback...  :'(
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dav999 on October 12, 2012, 05:30:17 am
PJ, comeback...  :'(

I don't think he reads that...
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Damn It AL to Hell on October 14, 2012, 02:10:32 pm
PJ, comeback...  :'(

Don't we all wish that.  :victoria:
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dav999 on October 14, 2012, 02:13:04 pm
PJ, comeback...  :'(

Don't we all wish that.  :victoria:

Huh? ??? I think that quote is a bit wrong...

What? There's not even a quote tag behind it? ??? ??? ???
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: ToasterApocalypse on October 14, 2012, 02:16:09 pm
PJ, comeback...  :'(

Don't we all wish that.  :victoria:

Huh? ??? I think that quote is a bit wrong...

What? There's not even a quote tag behind it? ??? ??? ???

 ??? I'M SO CONFUSED  ???
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dav999 on October 14, 2012, 02:17:42 pm
Ah, I get it. There were more [quote] tags than [/quote] tags! :D
Title: R3: 5cr1pt1ng Tut0r1a! - 4 PJB0tt0mz L3v3! ^.^
Post by: N on October 16, 2012, 08:56:35 pm
PJ, comeback...  :'(

Don't we all wish that.  :victoria:

Huh? ??? I think that quote is a bit wrong...

What? There's not even a quote tag behind it? ??? ??? ???

 ??? I'M SO CONFUSED  ???







wh4t
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Pyrite on November 13, 2012, 11:52:48 am
hey kirby why do you megaman battle network.
scripting related thing insert here so i don't get said off topic
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: N on November 13, 2012, 11:45:50 pm
YOU DON'T CALL ME KIRBY MANOFPERSON

THERE WILL BE VENGEANCE AGAINST YOU (http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)(http://fi.somethingawful.com/safs/smilies/7/e/ranbowdash.001.png)
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Hilbert on January 27, 2013, 06:25:13 pm
Ima bump again for no reason. Great tutorial anyways.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: N on January 28, 2013, 12:40:53 am
Ima bump again for no reason. Great tutorial anyways.
... ... ... ... ... ... ... ... ... ... ... ...
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Lord Ghetsis on June 14, 2013, 09:00:08 pm
Thanks for the tips! I'm working on a special level called VVVVVV Academy, highlighting internal scripts, wall glitches, etc, inspired by you. You will be in the credits.
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Anthem 2# on January 14, 2014, 02:00:29 pm
Wait I Don't Understand how do for viridian talk? :verdigris: Why PJbottomz Know How to Script  :vitellary::victoria:. I Know How to viridian sad or happy :viridian:. The Level New Dimension. So By Souleye - Name: Terry. i want do level like him :vermillion:.Now Badly I have 8 years old and i'am angry :violet:. THE END OF COMMENT  :-* :viridian: :victoria: :vermillion: :vitellary: :verdigris: :violet:. I'am RUSSIAN Now Is Hungry :D(http://)http://ftp://
Title: Re: Scripting Tutorial - A PJBottomz Level
Post by: Dav999 on January 14, 2014, 07:07:23 pm
Wait I Don't Understand how do for viridian talk? :verdigris:

To make Viridian talk, you can use the reply command, like this:

Code: [Select]
reply
This is a line by Viridian!

For more than one line, use reply(lines):

Code: [Select]
reply(2)
This is
two lines!

Code: [Select]
reply(3)
This
is
three!

With a maximum of 5 lines due to compatibility with 2.0.