Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Occupation links

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII War in Europe >> Scenario Design and Modding >> Occupation links Page: [1]
Login
Message << Older Topic   Newer Topic >>
Occupation links - 11/8/2018 11:39:38 AM   
Kossatx

 

Posts: 31
Joined: 8/16/2015
From: Spain
Status: offline
Hi, I'm trying to find the way to link the occupation of a hex to the occupation of other hex. For example, "if any country occupies hex a,b then the hex c,d is also assigned as occupied to this country". In the map, the hex c,d will be inaccessible from any other way, only will be "occupable" if any country occupies with troops hex a,b. So, anyone have idea how it should be scripted? I think it should be with "territory" script, but I don't know how



< Message edited by Kossatx -- 11/8/2018 12:01:35 PM >
Post #: 1
RE: Occupation links - 11/8/2018 7:02:49 PM   
El Condoro

 

Posts: 80
Joined: 4/2/2008
Status: offline
Perhaps a 2-step approach: a decision that fires when the first hex is occupied and that fires the territory script? How close to each other are the hexes?

(in reply to Kossatx)
Post #: 2
RE: Occupation links - 11/8/2018 7:04:48 PM   
BillRunacre

 

Posts: 2427
Joined: 7/22/2013
Status: offline
Hi

There is no script based way to change occupation as such without changing the country that a hex belongs to, unless one wants the country itself to surrender and ownership to change that way.

The Territory script is therefore generally the best one to use (one of the Surrender scripts can also be used for this, as mentioned above).

What I would recommend would be to open up the Territory script file for one of the official campaigns, and work through one of them to understand what it sets out to do.

With that done, it'll make answering any questions you have easier, as hopefully you'll have some grasp of it already then.

Judging from the circumstance in which you wish it to happen, the Territory script will need a Decision event to trigger it. This doesn't have to be a real Decision, as if no text is added then it becomes what we call a Dummy Decision, i.e. there is no player choice, but the Decision fires when its trigger conditions are met, and it then triggers your Territory script.

You'll find examples of Dummy Decisions within the official campaigns. Find one, and then look in the other script files to find the script(s) it triggers. These will have that Decision's number in their link= section.

< Message edited by BillRunacre -- 11/8/2018 7:06:47 PM >


_____________________________

Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/

(in reply to Kossatx)
Post #: 3
RE: Occupation links - 11/8/2018 7:37:12 PM   
Kossatx

 

Posts: 31
Joined: 8/16/2015
From: Spain
Status: offline
@El Condoro. The hexes are far away, unaccessible one from the other. Thanks for your answer!

@BillRunacre. Thanks for your help again, I'll try what you say

(in reply to BillRunacre)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII War in Europe >> Scenario Design and Modding >> Occupation links Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.107