Author Topic: Scripting Tutorial - A PJBottomz Level  (Read 23184 times)

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Scripting Tutorial - A PJBottomz Level
« on: August 03, 2011, 04: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!









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)
« Last Edit: August 20, 2011, 07:38:12 AM by PJBottomz »

SirBryghtside

  • Doctor
  • ***
  • Posts: 81
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #1 on: August 03, 2011, 06:08:46 PM »
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:

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #2 on: August 03, 2011, 06:19:48 PM »
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!
« Last Edit: August 03, 2011, 06:42:40 PM by PJBottomz »

mint301

  • Crewmate
  • *
  • Posts: 15
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #3 on: August 03, 2011, 07:08:52 PM »
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:

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #4 on: August 03, 2011, 07:27:33 PM »
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:

Gnome

  • Crewmate
  • *
  • Posts: 10
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #5 on: August 04, 2011, 04:56:43 AM »
A most novel idea! Off to try it!

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #6 on: August 04, 2011, 07:39:11 AM »
Thanks! I figured it'd be a nice thing to do for Terry to keep the impatients off his tail.

JoKiv

  • Crewmate
  • *
  • Posts: 4
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #7 on: August 04, 2011, 09:51:41 PM »
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?)


bigkahuna

  • Crewmate
  • **
  • Posts: 26
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #8 on: August 05, 2011, 03: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.

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #9 on: August 06, 2011, 01: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.

Vimol

  • Crewmate
  • *
  • Posts: 11
  • Personal Text goes here
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #10 on: August 07, 2011, 10:49:54 AM »
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?

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #11 on: August 07, 2011, 12:24:14 PM »
Errr... Can you provide a video of this? I don't understand what you mean.

Vimol

  • Crewmate
  • *
  • Posts: 11
  • Personal Text goes here
    • View Profile
Re: Scripting Tutorial - A PJBottomz Level
« Reply #12 on: August 07, 2011, 12: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

LaZ00L1

  • Crewmate
  • *
  • Posts: 5
    • View Profile
    • All Powered Up
Re: Scripting Tutorial - A PJBottomz Level
« Reply #13 on: August 07, 2011, 01: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!

PJBottomz

  • Captain
  • *****
  • Posts: 700
  • Chibi Toast. It kicks your ass for miles.
    • View Profile
    • PJBottomz First Homepage
Re: Scripting Tutorial - A PJBottomz Level
« Reply #14 on: August 07, 2011, 02: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.