Proper VIDEO tutorial for using scripts?

Started by Renato Lopes, January 27, 2015, 10:35:11 PM

Previous topic - Next topic

Renato Lopes

Hi, I looked at the tutorials for making scripts, searched through the entire internet, but I couldn't understand a thing of how to use them.


The problem is, I can only put 1 line when I put a script box! Common, should I double click it? No one says a thing...


But what I want is a video, but I can't find any on the internet. Any help?

prrg

Place a Script Box with Y (I think it is Y), or a Terminal with T. The only difference is that terminal will have a appearance and you will need to press enter, and script boxes not (they are mostly trigger_once from Hammer, if you know what I mean, and I know you know what I mean). He will request you to place a line. This line is how you're going to call the script, some people place fast and easy to recognize numbers, like {1, 2, 3} etc. But you can also place codenames, like "going_be_awful" for a script that make a terminal say "This is going to be awful".

After that press ESC to go to the menu screen and go to "edit scripts", choose your script and begin scripting! If I remember well you should be able to place up to 500 lines of scripting. Begin with simple things like say(n), then say(n,c), and then destroy(element), and beyond!

shape worrior t

Do what you would do when you want to create another line in a notepad or on the forums: press enter.
Are there any things that you need a video for?

Renato Lopes

Prrg just telled me. What I didn't know was the thing of the line and the "edit scripts" menu option, no one telled me about it. thanks anyway.

Ps: is a script box a trigger_once?

shape worrior t


prrg

Quote from: Renato Lopes on January 28, 2015, 12:03:46 AM
Prrg just telled me. What I didn't know was the thing of the line and the "edit scripts" menu option, no one telled me about it. thanks anyway.

Ps: is a script box a trigger_once?

trigger_once:
Only triggered once
Can't be seen
Is a transparent block that activates a command.

script box:
Only triggered once
Can't be seen
Is a transparent block that activates a script, that gives a command.

Renato Lopes

yeye I know what a trigger once is just wanted to know about the script thing

thanks :D