Home   Help Search Login Register  

Author Topic: question about scripts  (Read 548 times)

0 Members and 1 Guest are viewing this topic.

garrett

  • Guest
question about scripts
« on: 21 Nov 2002, 07:22:58 »
hi what are scripts?  i want a group to parachute out of a chopper and people have told me that "scripts" will do the trick.  but i have no clue how or where to type (you do type them don't you?) scripts.  so please tell me how to use scripts cuz i have a feeling you use them alot in mission editor.
THANKS  

P.S. ive also heard that you download scripts in EDITORS DEPOT and i tried once but i had no clue what to do with it after downloading it. so if i have to download something i will. but plz tell me how to use a downloaded script THANKS again


Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:question about scripts
« Reply #1 on: 21 Nov 2002, 13:42:23 »
 :D Hey garrett, wanna know about scrolls, oy?!  :thumbsup: ;D I have to agree,
they can be pretty scary at first sight but even mega-mathjerks like me can
get to know 'em and use the crab every now & then when I have to, so don't
frikkin panic man - it can be learned  ;)

See, ya need this text program called NOTEPAD, it should prolly be on your
computer already (I believe it's a default 'windows' program), so just find it.

Then ya type in a few codes, whatever needed (see details below), and then ya just
gotta put it into the SAME folder as the one where your mission hides  :-* :)

Now, if you make a mission in the editor and save it as "demo", then try this :

  • hit the "ALT" + the "TAB" buttons to exit out to windows
  • Locate your newly made "Demo" mission folder
  • Save the NOTEPAD script to this folder
The "Demo" mission folder is located through this path :

C: / OFP / USERS / YOURNAME / MISSIONS <----It's in here!!!  ;)

Inside the "demo" folder you'll see a file called "Mission.sqm" and thats yer mission.
Now, the notepad script shoud be a file of the type .sqs and not .sqm  :o ;D so ya better
select *ALL FILES* when saving the script in NotePad and then locate the "Demo" mission folder and save as :

       MyScroll.sqs


-------------------------

Right, now wtf shoud we put in the scroll itself  ??? well, howsabout a suicidal scroll?!  :D ;D

Try this :

In the "Demo" mission, create a character and name him BOB in his "name" field.

Save & ALT+TAB out to windows.

Open up NotePad and type in this code :

--------------------------

           Bob setDammage 1
           exit

--------------------------

Select *ALL FILES* and save as "Kill.sqs" (instead of "MyScroll.sqs")  ::)

Right, then save it in the "Demo" folder as stated above.
Now ALT+TAB back to OFP and in the mission ya can create this trigger or
just a waypoint where ya execute the script  :thumbsup:

To execute it, let's get Bob himself to do the job  :-X So make a WP for bob and put the followin code in the "on activation" field of the WP :

[Bob] exec "Kill.sqs"

 Save and hit the "PREVIEW" button & watch bob die!  :-* 8)


Hope this helps m8  :cheers:

PS.  do yerself a big one and go read the tutorials on, say camera scripting or alike.
   it's really a great help - ya can find the TUT's in the Ed. depot I believe  ;)

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:question about scripts
« Reply #2 on: 21 Nov 2002, 14:25:11 »
try this tutorial if you new to scripting.

garrett

  • Guest
Re:question about scripts
« Reply #3 on: 21 Nov 2002, 21:05:24 »
 ;Dtomb and black feather thank you sooooo much! tomb thanks for explaining it so that even a noob like me can understand.  i'm going right now to try them out thank you so much again! ;D :) ;D :) ;D :) ;D :) ;D :)

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:question about scripts
« Reply #4 on: 21 Nov 2002, 22:59:17 »
that's alright man, just remember not to look down on me when you've become a
monster scripter & finds out that ol' Tomb's still a frikkin n00b after 1 year of OFP'ing  ::) :beat:

 ;D