Tutorial (WIP): Map Scripting 4 Newbies (need feedback)


(Ifurita) #1

http://www.kan.org/michael/RTCW/maps/Map_Scripting.htm

Suggestions, edits, corrections, edits, corrections, etc are welcome.

If anyone would like to take a shot at editing the source file for accuracy, grammar, conciseness, and ‘down to earth’-ness let me know.

Preface: This is a long assed read. Pull up a beer(s) and get comfortable

Cheers


(Blaster_Jr) #2

Did you make that… it helped me a bit but it would be fun if you could make a downloadable one(is that your page) how much space do you have one it(if you cant just let me copy them and i will make it a downloadable scripting tutorial) ill see you in a while if i can K

if you want my e-mail just wait a bit ok


(Ifurita) #3

you mean like, Right-click: Save As?


(SCDS_reyalP) #4

Very nice.

A few comments:

  • In some of the diagrams, one pixel wide lines have been lost through compression or formatting.

  • Another thing worth mentioning:
    each script ‘routine’ is associated with an entity, via the entities ‘scriptname’ key.
    For example, your script_multiplayer has a script_name of game_manager. This means that the state of the game_manager script is actually stored in that particular entity. That, in turn, means that if you have two entities with the same script name, they will not share accum values. In general, you should only have one entity with a given scriptname.
    edit:
    Oops, you did cover that… teach me to skim the tutorial :stuck_out_tongue:

Furthermore, each script routing must have a corresponding entity with that scriptname.

/me waits for djbob to whip me with a large trout if this has changed from RTCW.

  • I’m not sure the spawn section is actually required… It wasn’t in RTCW.

  • alertentity
    This is the equivalent of triggering the entity with the given targetname.


(Ifurita) #5

Cool. I’ll wait for a couple of days, synthesize all of the comments, turn it into better HTML and then post it up on my site.

Does it adequately break in new mappers to the scripting process?


(Loffy) #6

Good initiative! // Loffy


(BadIdea) #7

Good! I have understood all - keep in mind that my english is’nt good.
Great Job.


(redfella) #8

I’m not quite sure how u learned all this in only one month. Do you sleep?

nice work.

:chef:


(CaptM) #9

Ifurita, Just one thing to say,

THANK YOU, THANK YOU, THANK YOU, THANK YOU, THANK YOU.

Ok, techniquely, it is one thing, just repeated. : )

Seriously though, this helps a lot, I’ve been trying to go back and forth with some of the scripts that I have seen but that gets to be a bit difficult.
I really have been waiting for someone to break it down like this.

Your work is greatly apprieciated.

Again

Thanks


(Ifurita) #10

I don’t sleep much, but that is more related to a pair of 8 month old boys than it is dedication to gaming :moo:


(Rummie) #11

Hey Iffy -

alertentity - I used this in se-airstrip to trigger trigger-multiple speakers. When the aircraft would reach certain points in the script, I wanted to fire off sounds at in different areas. What this does in effect is trigger your trigger-multiples which can trigger other entities in the map.