IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Scripting Tutorials, Need help finding Scripting Tutorials
crashdodgers
post 21 Sep 2016, 13:26
Post #1



Group Icon

Group: Members
Posts: 40
Joined: 14 January 2015
From: UK
Member No.: 10821



Hi, well I am trying to work on a mission map that I have made, but I have got a brain block and just cannot quite get my head around the scripting of certain parts of the map, 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.

Any one got any good ideas?
Go to the top of the page
 
+Quote Post
Skitt
post 21 Sep 2016, 14:47
Post #2



Group Icon

Group: Moderator
Posts: 1641
Joined: 8 January 2015
From: Newcastle, England
Member No.: 10811
Aut vincere aut mori, Cave quid dicis, quando, et cui, De duobus malis, minus est semper eligendum.



if:
(such and such what u want to start the escape)
Then:
Have unit X follow X waypoint path exactly.

have trigger areas on the path so then you can use .

IF:
X unit has entered area Y
Then:
do such and such


Have a look at the intros and outro on this its pritty much what you were asking
http://forums.swr-productions.com/index.ph...st&p=123081

This post has been edited by Skitt: 21 Sep 2016, 14:50


--------------------
Go to the top of the page
 
+Quote Post
crashdodgers
post 21 Sep 2016, 17:48
Post #3



Group Icon

Group: Members
Posts: 40
Joined: 14 January 2015
From: UK
Member No.: 10821



QUOTE (Skitt @ 21 Sep 2016, 14:47) *
if:
(such and such what u want to start the escape)
Then:
Have unit X follow X waypoint path exactly.

have trigger areas on the path so then you can use .

IF:
X unit has entered area Y
Then:
do such and such


Have a look at the intros and outro on this its pritty much what you were asking
http://forums.swr-productions.com/index.ph...st&p=123081


Sorry but this is of no help at all as I have looked at this before, what I need help with is scripting the landing and unloading of escape chopper and making the escape into a cutscene in order to trigger the phase of the mission.

All the intro scripting is no problem as I have a good tutorial for that part, plus I made and intro for another mission map, but lost it all when the disk crashed. Also the scripting of the main AI and secound sub AI base is fine I am able to do all that it is just this escape cutscene scripting I am have a hard time with.
Go to the top of the page
 
+Quote Post
Oliver
post 23 Sep 2016, 23:38
Post #4



Group Icon

Group: Dev. Team
Posts: 964
Joined: 15 August 2013
From: Portugal, Lisbon
Member No.: 10072



Scipting tutorials...

http://www.cnclabs.com/forums/cnc_postst48...-FAQ-Table.aspx
http://www.cnclabs.com/forums/default.aspx...osts&t=5045

Try to explain what you want with a little more detail, can't really give you an advice without the full details of your desired final produte.

This post has been edited by Oliver: 23 Sep 2016, 23:42
Go to the top of the page
 
+Quote Post
crashdodgers
post 24 Sep 2016, 1:02
Post #5



Group Icon

Group: Members
Posts: 40
Joined: 14 January 2015
From: UK
Member No.: 10821



QUOTE (Oliver @ 23 Sep 2016, 23:38) *
Scipting tutorials...

http://www.cnclabs.com/forums/cnc_postst48...-FAQ-Table.aspx
http://www.cnclabs.com/forums/default.aspx...osts&t=5045

Try to explain what you want with a little more detail, can't really give you an advice without the full details of your desired final produte.


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 centrer
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.

Hope this helps?



Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 26 April 2024 - 22:27