you cant really write a turorial on scripting. When I started scripting here is what i did:
i figured out what i wanted to do, and put it in if-then format.
Quote: "example= "
if the player is within 60 blocks of the trigger zone, then reset the HUD and show the picture triggerzone.tga in the bottom middle of the screen.
then, I just translated it using a print-out of the fpi commands.
Quote: "example="
:state=0:hudreset,hudx=50,hudy=90
:hudimagefine=gamecore\text\triggerzone.tga
:hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
Quote: "IMPORTANT"
the above line may seem confusing because it uses variables, but this is basically what its saying:
Quote: ":hudimagefine=gamecore\text\triggerzone.tga
:hudname=useswitchprompt,hudhide=1,hudmake=display,state=10"
it means that from here after, the image "triggerzone.tga" will be refered to as "useswitchprompt". remember, you can create your own variables too.
in fact, you could change the script to this:
Quote: ":state=0:hudreset,hudx=50,hudy=90
:hudimagefine=gamecore\text\triggerzone.tga
:hudname=myvariable,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=myvariable,hudfadeout=useswitchprompt"
and all i did was replace "useswitchprompt" with "myvariable" without changing what the script does....
well, thats all the time i have right now,
hope it helps=)
-BULLSHOCK
-I will beat anyone in HALO2!