Jump to content

Recommended Posts

Posted

Are there any tutorials that I can get to help me learn how to build missions.

 

I have played around with the some simple triggers and zones but could use some help.

 

Thanks

 

Menessis

  • ED Team
Posted

Take a look at the stickys in this section of the forum

 

http://forums.eagle.ru/forumdisplay.php?f=210

 

and have you read the manual ?

 

start > all programs > eagle dynamics > DCS World > documents

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal

  • 4 weeks later...
Posted

More Help!!!!

 

OK I have been busy trying to learn to fly the Huey. Now I am back to trying to figure out this scripting!

 

I am reading the Tutorial....

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine_%28DCS:_World_1.2.1%29

 

So far so good. I was talking with a friend about all this and we both agree that if we had an example of a simple working mission with a trigger and a script so we could follow along and see how it all fits together would be great.

 

Having said this maybe someone can take this idea and build this little mission along with the script so we can download it and learn.

 

I am thinking a couple of Hueys are tasked with stopping a convoy of APC's and troop trucks. One APC in lead 5 or 6 trucks and one more APC. The convoy is traveling by road, 8 or 10 miles out moving towards an air base. So you jump in and get the radio call to head off in what ever direction to find the convoy and destroy it. A trigger is set so that when any of the vehicles get hit that the remaining ones disperse, come to a stop and the troops jump out and defend the convoy. So a unit is hit and the script takes over.

 

Any takers willing to help us out?

 

Thanks

Menessis

Posted

I think someone recently posted a mission/script called "Dismount" or something like that. It probably has most of the elements you're looking for. Ahh... here it is:http://forums.eagle.ru/showthread.php?t=109676

Posted

Menessis - I don't think there is any way around having to dive in and learn it like everyone has. Everything you want to do in this mission idea is readily available in this forum. It does take a bit of time and effort but it'll start clicking eventually, and its rewarding when it does.

 

I would start with breaking down and understanding non-scripted (ME) missions first, before you try to create a fully scripted (dynamic) mission. What you want to do can easily be done with a combination of both.

 

I would set up a handful (say, a dozen) APC groups approaching whatever airfield you want in the ME, and then use randomization (various methods discussed in this forum) to spawn only one at mission start. OR, you could use scripting to dynamically spawn the group(s) - a little more complicated but TONS of examples how to do that here.

 

Benefits of pre-made groups in the ME is that you would know the possible spawn coordinates ahead of time and could create custom voice radio messages for each possible location with actually verbal coordinates. If dynamically spawning via script, much better randomization of course, but you would only be able to generate text coordinates.

 

Either use the ME triggers, or (more complicated) use scripting (if using dynamically spawned APC groups) to detect the attack. Then, use the dismount script to send out the enemy troops.

 

At some point, you'll have to understand the lua of the dismount script or the script that someone else would create for your idea would be equally confusing.

 

Good luck!

Posted
Menessis - I don't think there is any way around having to dive in and learn it like everyone has. Everything you want to do in this mission idea is readily available in this forum. It does take a bit of time and effort but it'll start clicking eventually, and its rewarding when it does.

 

 

This. (must spread rep)

 

 

Fact is, you're going to dig in and have lots of questions- As long as you demonstrate a willingness to help yourself there are a variety of resourceful individuals (including Joyride) that will be tripping over themselves to help you.

 

Key aspect here is, however, that you help yourself.

 

I know less about scripting than most people you know- but with enough time dug into the mission editor and looking over scripts from other missions that have been built, plus the pdf of the slmod / MIST mission editor tools etc... gradually it comes together.

 

Don't set your eyes on some complex mission with exotic scripting on your first pass- it won't work and you'll get frustrated and quit.

 

Start with something simple and slowly work at integrating more complex elements to your existing simple missions. Pretty soon you have something really awesome on your hands and that is an ability to create new missions for the community!

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

All good points guys. I have made missions without scripting. Spawning troops when a truck stops and so on. I am very new here. In my example the convoy would be following a road so it wouldn't be hard to find. Then when attacked, troops get out to fight. The trick is you don't know where they will be at the moment the Huey's catch up to them right.

 

I have looked at the Dismount script. But I don't know how to add it to my mission. I'm not asking to have a mission built so we can fly it. It's so we have the most simple example to help learn how to insert a script.

 

Keep in mind that I am not the only one struggling to learn this stuff. Others will benefit too.

 

Thanks

Menessis

Posted
Hi WreckingCrew. That is sort of along the same idea. My problem is I dont know how to add a script to my mission.

 

Menessis

 

Go to triggers panel: you can choose a file to be loaded at mission start...typically your script file or Mist_v2.0.lua if you need it.

 

To load other lua script files, just create a new trigger: time > 2s, "Do lua Script File", then select your file. Your script will be executed 2s after mission start.

 

This is an example, you can use whatever event you need.

Posted

Here are some guidelines -

 

Loading Mist -

Using a Once event named "mist.Load Mist" with Condition of Time More (5) and Action Do Script, I paste into the Do Script window the entire content of the Mistv2_0.lua file. I also have an Action of Message To All in the same event that broadcasts a 1 second long message that says "Load Mistv2_0.lua".

 

Using scripts -

For any event that uses Mist functionality, these are all Once type events. The Mist events continue to evaluate their conditions, so a Once event works and you don't need a Switched Condition type.

 

All of my events that do use Mist have a name that starts with "mist." so that I can identify them easily.

 

On Mist events I use a Condition of Time More (10). This prevents the event from trying to run before the 'mist.Load Mist' event is run at 5 seconds into the mission, because if you don't put in this delay you will get errors at the start of the mission that you will need to click through.

 

So, the Mist events have their names and that Time More (10) condition, and all of them have a Do Script Action. Put your script into the Do Script window and you are ready to test it.

 

My Mist events are used to set a flag. I use a subsequent event to process the flag to do what I want. Usually the two events have the same name, except that the first one with the Do Script Mist stuff in it has the "mist." in the name.

 

Here's a link to a simple test mission I made that will give you an idea of the events -

https://docs.google.com/file/d/0BwHk38uryutrN3FBY1ZtMG9fSWc/edit?usp=sharing

 

WC

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted

Hey thanks for the tips galevsky06 and the miz file Wrecking Crew. I will be scratching my head for days to come.

 

Just got my rudder back together and working. Now i can spend some time with this.

 

Menessis

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...