Jump to content


Photo

[Tutorial] Fudge's Scripting Test Area


  • Please log in to reply
10 replies to this topic

#1 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 05 April 2015 - 04:31 PM

Hello Revorians! I hope you are all enjoying a pleasant Easter Sunday!

Welcome to my new tutorial series, beautifully named 'Scripting Test Area' (STA)

These tutorials are aimed at providing you with experience in scripting some of the most important aspects of any story based mission (from a group of enemy units attacking you to a cinematic) in bite-sized chunks that can be undertaken without causing you to curl up into a ball and cry for sweet relief - as I did many times when I was leaning through EA's campaign scripting.

Creating a script test map

 

Before you begin scripting however you must create a small, simple & pretty map in which to test your lovely scripts. This is one of the most essential things to any person new to scripting as it severely reduces map loading times - which you can spend a lot of time in when testing your map.

This map is then duplicated and scripted differently according to each individual tutorial, producing a catalogue of maps that define different aspects of scripting a story based mission.

Attached File  Creating this Map.zip   17.57KB   73 downloads

th_BFME%20Map%20-%20Create%20pt%2000.jpg th_BFME%20Map%20-%20Create%20pt%2002.jpg th_BFME%20Map%20-%20Create%20pt%2001.jpg th_BFME%20Map%20-%20Create%20pt%2004.jpg th_BFME%20Map%20-%20Create%20pt%2003.jpg th_BFME%20Map%20-%20Create%20pt%2005.jpg th_BFME%20Map%20-%20Create%20pt%2006.jpg th_BFME%20Map%20-%20Create%20pt%2007.jpg th_BFME%20Map%20-%20Create%20pt%2008.jpg th_BFME%20Map%20-%20Create%20pt%2009.jpg th_BFME%20Map%20-%20Create%20pt%2011.jpg th_BFME%20Map%20-%20Create%20pt%2010.jpg th_BFME%20Map%20-%20Create%20pt%2012.jpg  th_BFME%20Map%20-%20Trees.jpg

How scripts work and how they are created?

Below are two documents that describe and define each aspect of a script & team behaviours - for example they describe how to add a new team, open the scripting window, explain what 'subroutine' scripts are etc.

Attached File  EA & Fudges - Introduction to scripting.zip   294.46KB   116 downloads

Each Tutorial

Now the actual content of any particular tutorial (sorry I know there's a lot of rubbish to take in here) is a folder contains the following:

 

1) An 'STA - X' word document that describes:

  1. '​The purpose' of this particular tutorial, which is essentially the learning objectives
  2. 'The New tasks required' to edit and correctly set-up the base map (whatever test map you create)
  3. 'Important things to observe' in which I identify the possible faults & highlight some of the most important learning features of any particular tutorial
  4. 'Team Set-up & Conditions' this large table details each team, its composition & its behaviours
  5. 'Scripts' this table names each script, as well as describing its settings, conditions and actions
  6. 'How you could develop the map further' in this section I try to give you ideas as to how to broaden the scope of the map a little further and generally attempt to encourage you to undertake things that may be a little harder than that describe in the tutorial

2) Some photographs: simply to give you a bit of reference as to how the map should look.

 

3) A 'map.ini' file: It isn't within the scope of my knowledge to describe how map.ini works so I'm simply going to provide you with one for each tutorial.

 

4) An 'STA - X.scb' file: this contains the scripts, teams, players and scripted objects I detail so that if your having trouble creating a duplicate of the map I describe, you can simply import this script file into worldbuilder and observe first hand what I am saying.
 

Available STA tutorials:

 

Attached File  STA 02 - Attacking.zip   1.91MB   85 downloads - shows basic scripts: discovering an enemy (using areas, attacks & sighting), altering team behaviours, playing audio, setting flags & death counters, subroutine scripts & associated team scripting, victory & defeat scripts.

Attached File  STA 03 - Recruiting.zip   395.05KB   92 downloads - Very simple map: discovering an allied units, recruiting them, playing audio, setting flags

 

Attached File  STA 04 - Patrol.zip   403.67KB   76 downloads - One of my favourite scripts: involves setting up a simple patrol and guard looping script

 

Attached File  STA 05 - Cinematic Intro.zip   460.83KB   71 downloads - Advanced & extensive tutorial - although very rewarding: setting up a cinematic

Other
 

I would love it if you would post your questions here, request for specific tutorials, pictures of your maps or even your own scripted maps you've made using the tutorials - even if their rubbish!

I am going to do my best to create new tutorials every now and again, but I would of course very much appreciate some consideration in terms of the time my other commitments take up.

If you are totally confused and have no idea as to what I'm going on about please leave a comment and I'll try to explain this very bizarre tutorial system. Good luck!


Edited by Fudge, 03 May 2015 - 06:09 PM.


#2 MattTheLegoman

MattTheLegoman

    LEGO Knight of Minas Ithil

  • T3A Staff
  • 3,339 posts
  • Location:Tomorrow, when the War began
  • Projects:Mapping this Middle-earth
  •  Mapper
  • Division:BFME
  • Job:T3A Staff

Posted 06 April 2015 - 06:12 AM

Unfortunately I do not have the font that you used for normal text. I can still read it but it changes to a random Gothic font on my computer. =p

 

I want to add that this tutorial is of fantastic quality. The use of tables for describing the exact details of the scripts is brilliant! =D


Edited by MattTheLegoman, 06 April 2015 - 06:14 AM.

Remember that all worlds draw to an end and that noble death is a treasure which no one is too poor to buy. - C.S. Lewis

There will come a time when you believe everything is finished. That will be the beginning. - Louis L'Amour

What will matter then will be people. If relationships will matter most then, shouldn't they matter most now? - Max Lucado


#3 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 06 April 2015 - 08:33 AM

Thanks for the feedback Matt! I'm glad you like the tables, god knows there was much debate as to how they were laid out! I'll try and find a nice standard font for the next one.



#4 MattTheLegoman

MattTheLegoman

    LEGO Knight of Minas Ithil

  • T3A Staff
  • 3,339 posts
  • Location:Tomorrow, when the War began
  • Projects:Mapping this Middle-earth
  •  Mapper
  • Division:BFME
  • Job:T3A Staff

Posted 06 April 2015 - 10:44 AM

Apparently my computer was missing a standard font. =p Have you thought about using PDFs?


Remember that all worlds draw to an end and that noble death is a treasure which no one is too poor to buy. - C.S. Lewis

There will come a time when you believe everything is finished. That will be the beginning. - Louis L'Amour

What will matter then will be people. If relationships will matter most then, shouldn't they matter most now? - Max Lucado


#5 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 06 April 2015 - 03:59 PM

I've never made a PDF before, but I'll give it a go.



#6 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 10 April 2015 - 08:09 PM

New tutorial added: STA 04 - Patrol

This one involves setting up a series of basic subroutine scripts for team conditions, one of these subroutine scripts tells another script to run 'sequentially'. This script will then fire each action in the order listed, allowing you to set up a patrol involving patrolling, guarding, patrolling etc.

th_STA%20-%20Patrol%2002.jpg th_STA%20-%20Patrol%2001.jpg

I've applied what I think is a standard font to the word document, however I haven't got round to attempting to create a pdf yet.



#7 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 03 May 2015 - 06:10 PM

New tutorial added: STA 05 - Cinematic Intro

The most extensive tutorial so far; certainly in terms of how much you have to do. However permitted you've completed all 4 previous STAs then it is very simple and the only new feature you'll be learning about is 'Edit Camera', which allows you to set-up camera positions.


th_STA%20-%20Cinematic%20Intro%20%2001.j th_STA%20-%20Cinematic%20Intro%20%2003.j th_STA%20-%20Cinematic%20Intro%20%2002.j


Edited by Fudge, 03 May 2015 - 06:10 PM.


#8 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 04 May 2015 - 03:40 PM

Just to demonstrate what the latest tutorial aims to teach you, here's a demonstration of the scripts in action. The scripts themselves are included in every tutorial, so if you wish to learn by observation you need only import the script file into your map and all the Scripts, Players, Teams, Waypoints, Waypaths, Areas and Units are instantly added to your map.



#9 Fudge

Fudge

    title available

  • Project Team
  • 461 posts
  • Location:Devon, England
  • Projects:Luckily TDH Mapping

Posted 07 October 2017 - 12:24 PM

Sorry to bump an old topic, just indulging my own nostalgia! I just wanted to find out whether anybody ever actually found these useful? Personally looking back the layout is a right mess, but it would be interesting to know if anybody ever managed to learn something.

Videos would be far easier to follow!


Edited by Fudge, 07 October 2017 - 12:30 PM.


#10 MattTheLegoman

MattTheLegoman

    LEGO Knight of Minas Ithil

  • T3A Staff
  • 3,339 posts
  • Location:Tomorrow, when the War began
  • Projects:Mapping this Middle-earth
  •  Mapper
  • Division:BFME
  • Job:T3A Staff

Posted 08 October 2017 - 01:30 AM

It helps me and the sequential script idea helped with my Ruins of Ost-in-Edhil map. ;)

Remember that all worlds draw to an end and that noble death is a treasure which no one is too poor to buy. - C.S. Lewis

There will come a time when you believe everything is finished. That will be the beginning. - Louis L'Amour

What will matter then will be people. If relationships will matter most then, shouldn't they matter most now? - Max Lucado


#11 Mathijs

Mathijs

    You ever heard the story about the scorpion and the frog?

  • Division Leaders
  • 13,448 posts
  • Division:BFME
  • Job:Leader

Posted 08 October 2017 - 06:10 PM

Have you uploaded these tutorials, in decent formatting, to The3rdAge.net so they show up in our Tutorials section?

If not, that'd be a neat thing to do...


“The special quality of hell is to see everything clearly down to the last detail.” ~ Yukio Mishima, The Temple of the Golden Pavilion
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users