Absolute beginner's guide to scripting: Difference between revisions

>Quenty
No edit summary
>Ajedi
Line 70: Line 70:


=== Being specific ===
=== Being specific ===
When you first create a script, you have to '''know what it is meant''' to do at '''exactly what time''' and '''under what conditions'''. For a script to kill yourself, it's pretty obvious: it kills you. Scripting is just giving commands to the computer, so you just need a line of code to do something to kill your character.
When you first create a script, you have to '''know what it is meant''' to do at '''exactly what time''' and '''under what conditions'''. For a script that kills your character it's pretty obvious what it needs to do: it kills you. Scripting is just giving commands to the computer, so you just need a line of code to do something to kill your character.


'''''Remember that scripts can break with just one letter or symbol being wrong.'''''
'''''Remember that scripts can break with just one letter or symbol being wrong.'''''
Anonymous user