Home   Help Search Login Register  

Author Topic: Scripting Basics  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Sundog

  • Guest
Scripting Basics
« on: 30 Jul 2003, 20:18:19 »
I've been using the opfec for about a month now and I've made some truly mediocre missons!  I've realized that what you guys have been saying all along is true, I need to be able to script to make anything of consequence.  My problem is not knowing the commands (I have the reference), it's knowing the syntax.  I used to do a fair bit of programming in old fashioned languages like basic back in my school days (the 80's), so the pseudocode is not really the issue.  OFP scripts use HTML??  Can anyone reccomend a good reference?

Sundog :help:

peter

  • Guest
Re:Scripting Basics
« Reply #1 on: 30 Jul 2003, 20:44:55 »
i learned ofp-scripting using the unofficial command reference

(http://www.ofpec.com/includes/download2.php?id=12)

... as far as i know itÂ's only available for v1.46, but there are only a few new commands in resistance ...  ;)

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Scripting Basics
« Reply #2 on: 30 Jul 2003, 20:53:01 »
the best way to learn is to d/l script snippets from the editing depot and look at how they work.  for example, i wrote a script that displays how far a person has gone (mileage), and does it in some fancy ways.  you can d/l it and see how it works (if you want):
http://www.ofpec.com/editors/resource_view.php?id=534

other than that its just a matter of remembering commands (so you know what you can and cant do) and experimenting

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Scripting Basics
« Reply #3 on: 30 Jul 2003, 22:48:20 »
Look in the online official command reference in the Editors Depot.    There is a section called Scripting Topics which is very useful.    I recommend you read the whole of both the official and unoffical command refs from start to finish, like a book.   It won't take as long as you think and will give you  agood overview of the whole thing.

Also there are good tutes in the Ed Depot ... snYpir's Friendly Introduction to Code Snippets and Johan Gustafsson's Scripting Guide I would particularly recommend.

OFP scripts don't use html except for the briefing and overview files - it's a unique and simple programming language.

But you don't really need to script to make good missions ... many official missions have very little scripting.
Plenty of reviewed ArmA missions for you to play

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Scripting Basics
« Reply #4 on: 30 Jul 2003, 22:52:27 »
... many official missions have very little scripting.

hardly any of the 1985 campaign had scripts - even the mission where you told trucks where to go using the radio - all used triggers and multiple waypoints... BIS were very clever with triggers  :D
Proud Member of the Volunteer Commando Battalion

_hammy_

  • Guest
Re:Scripting Basics
« Reply #5 on: 31 Jul 2003, 05:26:32 »

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Scripting Basics
« Reply #6 on: 31 Jul 2003, 06:30:45 »
Quote
the mission where you told trucks where to go using the radio - all used triggers and multiple waypoints...

what mission was that?

m21man

  • Guest
Re:Scripting Basics
« Reply #7 on: 31 Jul 2003, 06:36:37 »
I think he means the Guardian mission where you tell the convoy to stop/start and turn left/right at any intersection you came to.