Events/Script for newbies?

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
User avatar
SIPRES
Posts: 439
Joined: Thu Jul 23, 2015 5:41 pm

Events/Script for newbies?

Post by SIPRES »

I try to understand the script/events mechanism but so far I am a little bit confused by all the files (Unit.txt, decision.txt ect...) are they linked together?

Is there any tutorial?

For example as playing the Axis side how can I generate by script a garnison unit in warsaw, lets say few weeks after the fall of Poland?

thanks for your inputs

Christophe


User avatar
pcpilot
Posts: 77
Joined: Fri Jan 25, 2008 11:17 am
Location: Gods country, USA

RE: Events/Script for newbies?

Post by pcpilot »

I haven't gotten into the scripting yet as I am still working on my first map. But if it is anything like SC2, it will all be .txt files. I would look at an existing script in one of the campaigns, that might help a little. Sorry cant come up with more for you.
User avatar
BillRunacre
Posts: 6651
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Events/Script for newbies?

Post by BillRunacre »

Hi Sipres

Have you taken a look at part 2 of the Manual on Designing your own Campaigns as it does contains details on the scripts?

I'd also recommend opening up some of the script files and taking a look at the descriptions at the top, and actual scripts used in the game that will appear below them in the file.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
prince_blucher
Posts: 31
Joined: Sat Dec 07, 2013 11:54 am

RE: Events/Script for newbies?

Post by prince_blucher »

Hi, I've written a new decision and added it to \Campaigns\_1939 Storm over Europe\Scripts\Events\Decision.txt however it does not fire. Do I need to add the event name (the number - DE 674) in another files? Dies the event name (number) need to be sequential? My event does not appear within in-game scripts. Thanks.
User avatar
Razz1
Posts: 2560
Joined: Sun Oct 21, 2007 3:09 pm
Location: CaLiForNia

RE: Events/Script for newbies?

Post by Razz1 »

I know one thing... You need to make sure that the DE number doesn't exist before you assign it. Can not have two numbers the same.
prince_blucher
Posts: 31
Joined: Sat Dec 07, 2013 11:54 am

RE: Events/Script for newbies?

Post by prince_blucher »

Yep check that.

I guess I should update \Templates\Events\Decision.txt as well? Same decision file exists there by the looks of it. I'll try that anyways. <-- Nope that's an empty file.
User avatar
sPzAbt653
Posts: 10060
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Events/Script for newbies?

Post by sPzAbt653 »

Check this from page 114, 2.1.4 :
You cannot save over a default campaign, instead you will have to use Save As and give it a new name.
So, open the default campaign, save it as a new name, THEN add you DE to your newly named campaign, and it should work.
It should look like this, where my campaign name is '653H' [W7 pictured] :


Image
Attachments
SC3b29.jpg
SC3b29.jpg (72.5 KiB) Viewed 575 times
prince_blucher
Posts: 31
Joined: Sat Dec 07, 2013 11:54 am

RE: Events/Script for newbies?

Post by prince_blucher »

Hello sPzAbt653, thanks for your reply. I try it now.
User avatar
BillRunacre
Posts: 6651
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Events/Script for newbies?

Post by BillRunacre »

Once you've done File -> Save As and given your campaign a new name, you'll need to Update the scripts. It should ask you to do this during the save process.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
prince_blucher
Posts: 31
Joined: Sat Dec 07, 2013 11:54 am

RE: Events/Script for newbies?

Post by prince_blucher »

Thanks everyone. I understand now to load the editor, load the 1939 Campaign, save as XXX, and then edit decisions.
Post Reply

Return to “Scenario Design and Modding”