about scripts

ArmA 2 editing; configs, modeling, missions, textures, terrain etc.

Moderators: Lone Wolf, Snake Man

User avatar
qawa67
2nd Lt
Posts: 72
Joined: 2006-12-09 16:58:19

about scripts

Post by qawa67 » 2009-11-27 12:10:13

I've look at some nice Arma2 scrtipts around the web...

but I've look at this for the first time in my life...

I can use them only into the demo mission include in the script.rar files (from the own authors) ?

Or...

I can use these scripts into the mission I've in my Arma2 folder ? (like warfare, etc..)


-q
Image

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Re: about scripts

Post by T_Rex » 2009-11-27 14:50:16

It depends. :)

Generally, scripts are used most effectively when you are creating a mission and want certain things to happen. Then, you export the mission (from within ArmA) which creates a pbo of it so that others can play it.

Or, you can package the scripts themselves as a pbo (using BI tools) and make them like an addon, which can then be used in any mission. The various AI enhancements are like this, and my ambient traffic mod is like that, too. I think that's the kind you'd need to change Warfare.
Sic Semper tyrannosauro.

Snake Man
Commander-In-Chief
Posts: 9358
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: about scripts

Post by Snake Man » 2009-11-27 15:37:08

Yes but its very rare that mission scripts comes in addon. In my mind they stop being "mission scripts" if they are in addon.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
qawa67
2nd Lt
Posts: 72
Joined: 2006-12-09 16:58:19

Re: about scripts

Post by qawa67 » 2009-11-27 16:22:25

in a short...

would like me to know how to use the "us support" scripts from "lucilk"... It's a nice script, that use "Alpha:Radio channel" for to call any kind of troop supports....

but I've completely misunderstood how to use this script (except in mission editor..me and the flag) :(

it would be nice if this script could be integrated in my arma launcher as an addon... but, I'm a "very beginner" abou all... :oops:
Image

Snake Man
Commander-In-Chief
Posts: 9358
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: about scripts

Post by Snake Man » 2009-11-27 16:41:26

qawa67 wrote:would like me to know how to use the "us support" scripts from "lucilk"...
Well put the script into the mission dir and call it like:
SQS:

Code: Select all

this exec "script.sqs"
SQF:

Code: Select all

this = [] execVM "script.sqf"
Thats how to start them, then of course if the scripts need parameters you have to pass them like this:
SQS:

Code: Select all

[parameter] exec "script.sqs"
SQF:

Code: Select all

this = [parameter] execVM "script.sqf"
Also very important is that SQS is outdated scripting format, please do not use SQS anymore.
it would be nice if this script could be integrated in my arma launcher as an addon... but, I'm a "very beginner" abou all...
Trust me, using it as addon makes it more complicated.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
qawa67
2nd Lt
Posts: 72
Joined: 2006-12-09 16:58:19

Re: about scripts

Post by qawa67 » 2009-11-27 18:44:41

thanks SnakMan :)

one question... I dont understand the difference between these 2 mission folder:

1) C:\Arma 2\Mission
2) C:\documents and settings\Arma 2\Missions

maybe in the "1)" the PBO users mission and the "2)" for the mission made by the Editor ?

because the missions I like to use with, are .PBO... my "editor" mission are very few :(
Image

User avatar
qawa67
2nd Lt
Posts: 72
Joined: 2006-12-09 16:58:19

Re: about scripts

Post by qawa67 » 2009-11-27 19:07:15

mmmm...

I've made something, but I dont know if I've made a mistake or not...

1) I've DePBO an users Chernarus mission
2) I've copied all into a folder with the same "mission name"
3) I've copied the folder into my c:\documents and settings\Arma 2\mission
4) I've opened the Arma Mission Editor
5) I've opened that mission
6) I've used the "link" function (I dont know if the translate from Italian version is correct)
7) so, I've merged the "US Suport" template mission (or I've assumed so...)
8) I'm back to my c:\documents and settings\folder
9) I've copied the content of both the original missions ("unPBO folder" and "US SUpport") into mine new Mission folder
10) I've copied some parts of the "US support" scripts files, into the main PBO mission files:

init.sqf
description.ext
briefing.sqf

11) I've merged some "item class" into the UnPBO mission mission.sqm....
I've made some attention, because the items are counted, and all items need to be place in the right class with correct Item Number
12) I've launched my new mission from the Arma Editor....

and obviously there are some errors :( But now I can work on it... if this is the way to do...

It's the correct way to do ?
Image

User avatar
qawa67
2nd Lt
Posts: 72
Joined: 2006-12-09 16:58:19

Re: about scripts

Post by qawa67 » 2009-11-27 23:57:29

YESSS !!!!

it works :)))
Image

Snake Man
Commander-In-Chief
Posts: 9358
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: about scripts

Post by Snake Man » 2009-11-28 09:54:42

qawa67 wrote:one question... I dont understand the difference between these 2 mission folder:
1) C:\Arma 2\Mission
2) C:\documents and settings\Arma 2\Missions
Number one is official ArmA 2 missions, number two I think is your profile dir for user missions (dunno as I use -profiles=d:\arma2\ parameter which puts my users mission into d:\arma2\users\ and the missions dir is located there.

As for your 12 step example, I don't understand all of it, but it seems very complex thinking about that you are just learning. I'll recommend you start with something smaller scale.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Who is online

Users browsing this forum: ClaudeBot [Bot] and 0 guests