Author Topic: Cetanu's Advanced Fred2 Lessons - part 2 (with images)  (Read 10379 times)

0 Members and 1 Guest are viewing this topic.

Offline Cetanu

  • 27
    • http://165thbdhr.com/
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Today only one short exercise to train the mind of young Fredders... ;)

In The Die Is Cast (cet_m06) I wanted one friendly Elysium (SOC BP2) to capture 1 of 3 fleeing Argo transports (Kappa 1-3). After disabling and scanning Command decides which one is to be captured. Sounds simple enough? Well, to execute it properly it takes some events to do it right.

First of all the Kappas arrive and go to their waypoints to jump out of the system - one event to validate the capture goal (Kappa), one event for disabling and one for scanning  - both of the later check if one of the Argo transports gets destroyed or jumped out before Command could decide which one is the capture target.



Once this is done Command decides which one - the value gets stored in the variable Kappa.



Let's assume it is Kappa 1 - the following events need to be done repeatedly for Kappa 2 and 3 as well. The chained "Capture Kappa ..." events have a check on "RTB bad 2" - an event that gets true if the Kappa goal failed.



Two chained events deal with the SOC BP 2 - the first is a protect directive for the players that  also has orders for that Elysium once it docked with an Argo.



The event "SOC BP 2 bye" makes sure the Elysium leaves the area if it can't capture the designated Kappa transport.



One Kappa captured the other 2 should be destroyed (with directives of course). 6 events to make sure the right one is on the kill list. ;)



And finally the simple Kappa goal:



Hope to see a docking manoeuvre soon that  goes up and  beyond that in complexity...  :)
Work is the curse of the drinking class
Keeper of BDHR's Holy Grail of Beer

Valid PXO/F2NETD multiplayer missions - mirrors: 1,2
Additional valid F2NETD multiplayer missions - mirrors: 1,2
Voicefiles for these missions - mirrors: 1,2

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
He does it again. :):yes: Make sure you keep these in a safe place (ie. not just on the forum)... we can turn them into fully-fledged tutorials for HLP 2.0, you know. :nod:
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Keep em coming :)

H
All I ask is a tall ship and a star to steer her by.
And a laughing yarn from a merry fellow rover.
And a quiet sleep and a sweet dream when the long trick's over.
- JOHN MASEFIELD

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Excellent work as always :yes:
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Give the man a prize/cookie/title!
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 
Cetanu, we are in your debt!
More lessons=more missions=more campaigns=more fs2!

That can only be a good thing.

Thank you so much, not just for myself, but for those who are too "ashamed" to admit that they forgot FRED, ever since the advanced tutorial!

Please, do continue!
If you want to be ready for Wing Commander Saga: The Darkest Dawn, then download and play the prologue first.

Here,

http://www.wcsaga.com/downloads/files/download/releases-prologue-setup-exe.html

Then, while waiting for the Darkest dawn, Download Starshatter 4.02

http://www.starshattermods.com/infusions/pro_download_panel/download.php?did=214

You 'll understand why once you have.

 

Offline magatsu1

  • 210
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
my head hurts....

hell is finding "modify variable" doesn't work after spending several hours on a mission that you find needs it.

hey, is there a limit to the size of any one SEXP ?
Blitzerland: Knows what he's talkin' about

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
OT-ness (slightly)

Why isn't this in the FS modding forum?
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Read the Forum summary for FS Campaigns
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
Quote
Originally posted by HotSnoJ
Why isn't this in the FS modding forum?


Which reminds me, I have some threads to move (Fredding ones belong here). :)
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline Cetanu

  • 27
    • http://165thbdhr.com/
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
@magatsu1 - I have some troubles to understand what you really ask, but maybe your modify variable doesn't work because you didn't create a variable in the first place?

I never noticed a limit for sexps used in an event, just a total limit for sexps in a mission - in vanilla Fs2/Fred2 it was something near 100.
Work is the curse of the drinking class
Keeper of BDHR's Holy Grail of Beer

Valid PXO/F2NETD multiplayer missions - mirrors: 1,2
Additional valid F2NETD multiplayer missions - mirrors: 1,2
Voicefiles for these missions - mirrors: 1,2

 

Offline magatsu1

  • 210
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
I mentioned this when I first "appeared" on here.

Basically the event breaks down when I save, creating more lines of code than I actually put in. Doesn't seem to do it if the event is the first (or so) put into the mission.

Have you ever experienced that Cetanu ?:)
« Last Edit: October 05, 2003, 03:48:58 pm by 1343 »
Blitzerland: Knows what he's talkin' about

 

Offline Cetanu

  • 27
    • http://165thbdhr.com/
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
the variable is one word without a space inbetween?
Work is the curse of the drinking class
Keeper of BDHR's Holy Grail of Beer

Valid PXO/F2NETD multiplayer missions - mirrors: 1,2
Additional valid F2NETD multiplayer missions - mirrors: 1,2
Voicefiles for these missions - mirrors: 1,2

 

Offline magatsu1

  • 210
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
search for the thread "New Guy with Questions" .:)
Blitzerland: Knows what he's talkin' about

 

Offline Cetanu

  • 27
    • http://165thbdhr.com/
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
I've gone through your other topic, but you didnt answer my question.

See, the only time I had seen messed up modify-variable sexps when someone tried a variable name with a space in it (or maybe something like "§$%&/()=?*'_:, etc) - so again: what was the name of the variable you tried?

If it wasn't some mistake like the above, I have no other idea what could have corrupted your sexp.
Work is the curse of the drinking class
Keeper of BDHR's Holy Grail of Beer

Valid PXO/F2NETD multiplayer missions - mirrors: 1,2
Additional valid F2NETD multiplayer missions - mirrors: 1,2
Voicefiles for these missions - mirrors: 1,2

  

Offline magatsu1

  • 210
Cetanu's Advanced Fred2 Lessons - part 2 (with images)
the name was somethin' like "destroyercue".

but i didn't know the name made any difference, so I have at least learned that,:)
Blitzerland: Knows what he's talkin' about