.script file isn't created


(isbowhten) #1

my mapname.script file is missing!what can i do? :expressionless:


(S14Y3R) #2

create one? In wordpad save a blank txt file as “mapname.script” -!With quotes!

if you lost a recent .script, i hope you make backups often :o


(isbowhten) #3

well, i’m a n00b… must i create the script file ? doesn’t radiant create it?
must I fill in the necessary information?
<— im very n0000b


(S14Y3R) #4

you need to create it, only the game engine ever looks at it, not radiant.

Article in context

There’s many tutorial’s in the Stickie, and from recent posters making lists for us, Thanks rbh


(isbowhten) #5

thank you, but before i must look for the right information… plz one more question.
can i use “if” commands so that an trigger is activated only if i die in a predefined area?


(Flippy) #6

You can only use ‘if’ commands for the exact situation you mention, and for aborting a piece of code. Unfortunately, you cannot use conditional logic like if/else statements for anything else.

The command(s) you are looking for is (are):

‘trigger_if_equal’:

(global)accum <buffer_index> trigger_if_equal <value> <scriptblock name> <trigger event>
abort

‘abort_if_equal’

(global)accum <buffer_index> abort_if_equal <value>

And used in the same way as ‘abort_if_equal’ there’s also:
abort_if_bitset, abort_if_greater_than, abort_if_less_than, abort_if_not_bitset, abort_if_not_equal.

In these examples, “accum” or “globalaccum” can be thought of as variables (and these are the only actual variables you can use).
the “buffer_index” is the index of the accum, for example, you can use “accum 0”, “accum 1”, “accum 2” up to 9 I believe.

Check out the Scripting Reference by Chruker:
http://games.chruker.dk/enemy_territory/scripting_reference.php

Also, you could try using my scripting program called ETScript, designed specifically for W:ET. Instead of typing it all out in Notepad, ETScript helps you write the script with things like syntax highlighting, autocomplete, intellisense and importation of the entire script reference from Chrukers site.
Check it out here:
http://www.splashdamage.com/forums/viewtopic.php?t=17259&highlight=etscript