Jump to content
Roger Dyer

Help with scripting cutscenes

Recommended Posts

Hi, well I am trying to work on a mission map that I have made, but I having trouble figuring out how to set up the scripting for a trigger area, i.e. I am trying to script actions in and around a triggered event in the game. I have part of the script done but am unable to quite workout the rest.

What I am trying to do is get an enemy unit to to do certain things once the trigger has be activated, i.e. I want an enemy base commander to escape capture, in order to trigger other events on the map. Now I have all the relevant buildings, units, trigger area and way points set up, but it is just sorting out the scripting for the triggered event, including the possibility of set up of some sort of cutscene to go with the triggered event.

So here is what should happen in the mission.

  1. Intro, able to do this

  2. Hero team enter map, have not decided how they are going to enter map

  3. Hero team set up base and scot area

  4. Hero team locate abandoned Faction base and take it over, triggering scripting copied from ZHUSA-md05 and 1st enemy sub base to become active and start hunting, can do this my self

  5. Scot and capture 1st enemy sub base, triggering cutscene, having trouble with scripting this bit

  6. Triggered cutscene see enemy unit escape and trigger a new phase of mission, i.e. enemy 2nd sub base becomes active and start hunting

  7. Again same as 5

  8. Triggered cutscene see enemy units escape and trigger a new phase of mission, i.e. enemy main base becomes active triggering final phase of mission, i.e. seek and destroy

  9. End cutscene, can work on that or might copy ZHUSA-md05 end script

So what it is I need is help working out the scripting to make the escape/cutscene work! Or could I use the same scripting as the intro to do this or will I need a new set of scripts?

The cutscene should run like this,

  1. Player has unit ground in trigger area

  2. Base commander un-garrisons from HQ and follows way point path to sleeping chopper

  3. Base commander enters chopper

  4. Escape chopper takes off and follows way point path to enemy 2nd base

  5. Chopper lands, after running from chopper base commander enters trigger area and enters the enemy 2nd base command center

  6. Triggering next phase of the game, i.e. the transport of toxins from 2nd base to main base also triggering timer for supper weapons and chemical rocket attacks on the player bases.

The only bet I am having a problem with is trying to work out the full list of scripts to make the triggered events to work like a cutscene, i.e. something like the ones used in ZHUSA-md03. I have attached 4 jpegs, 2 showing the two bases layout and 2 showing close up of start point and finish point's, as you can see every thing is in place, all I have to do is sort out the cutscene,I have made basic intros for other maps and can do the same for this one, but it is just getting my head around the making of the cutscene and once I have made it, I can then make a second cutscene for the triggering of phase 3/final part of the mission. As well as little extra bits here and there, but it is just doing the first one that is so hard.

Hope this helps?

post-10020-0-14089500-1474901173_thumb.jpg

post-10020-0-65820300-1474901311_thumb.jpg

post-10020-0-69757100-1474901454_thumb.jpg

post-10020-0-48976600-1474901582_thumb.jpg

Share this post


Link to post

Hi Roger,

 

It's nice to see ZH map making community is not dead just yet.

 

What you're trying to do sounds fairly simple, but when you present everything in one big chunk it quickly becomes confusing - that may contribute to this being the first reply. I'm not even sure if you'll read this as this is ~3 months old...

 

Either way, I feel like I could sort you out if you messaged me and asked about one thing at a time in more detail (I had trouble following your current post). In addition, you could send over the map and I could do some scripting myself :)

 

Hope to hear from you,

Pov

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×