How to learn scripting


(Qimen) #1

Hi

How can i learn scripting for wolf:ET?
I have looked at other maps and tutorials but haven’t found
anything.


(ziege) #2

Basically it’s just a variation of C++, you can find many books and sites that help you learn that.


(Dark Killer) #3

that is vaguely speaking c++ is far more complex, rtcw scripting doesn’t even have loops so comparing it or saying its a variation of c++ is a sin :cool: its a real simple scripting language by looking at each line you can almost tell what it does!


(ziege) #4

Well I don’t know C++ except the very very basics, and it looks exactly the same to me :stuck_out_tongue:

I’d say if someone just learnt about variables and the layout of C++ then that’s all they’d need to understand what’s going on in these ET scripts.


(Qimen) #5

but there is lot of maps out now, how did they learned?


(ziege) #6

Well the language has been around for many years. If you’ve ever scripted for anything before then you will understand how to read the code, recently I’ve done winamp3 skinning, making games in flash/director, etc etc and all used this exact way of coding (just slight variations). ET scripts are probably the most simple I’ve ever seen, as Dark Killer said you only need to look at one to know what it’s doing.


(Qimen) #7

ok, I am using php/mysql/java daily. Haven’t looked so much at other maps yet but I will try now :moo:


(SCDS_reyalP) #8

Look at the scripts included with the maps.

Read the documentation.

Read RTCW scripting tutorials. Not everything is the same, but it is very similar.

Eperiment.

If you are familiar with any kind of programming or scripting, it shouldn’t be too hard.

Oh yes, and it is ‘just like’ c++ is, in the same way a Ford model T is ‘just like’ a Lamborghini :moo:


(ziege) #9

Heh… well the Ford is closer to the Lamborghini than, say, a Microwave Oven :slight_smile: You learn how to drive the Ford and how the engine works, then you pretty much know what’s going on when someone gives you the keys to a Lambo (which unfortunatley doesn’t happen nearly as often as I’d like).


(sock) #10

Probably cutting and pasting from the scripts with the game and experimenting. The scripting language is ok, not very friendly for complete novices but after a few experiments it should make some sense.

I did some tutorials a while back with djbob, discussing scripting and basic door/lift funtions. Have a read they may make some sense …

http://www.planetquake.com/simland/pages/articles.htm

Sock
:moo: