Identifier: restrict_clickable_area
Parameters: [allowed regions(by name or id)]
Description: Enable/disable(with no parameters) clickable area restriction
Sample use: restrict_clickable_area York_Province London_Province
Class: RESTRICT_CLICKABLE_AREA
Implemented: Yes
Author: Grig
For this to work you need to first understand that you will be restricting you playability to a region, i.e. the region you specify is the only region you play in, all other regions are restricted!
By reading the docudemon explanation one would understand that there is a way to easily enable/disable the clickable area easily – well sorry folks, yet again CA prove they like the more complicated choice when an easier (more obvious) choice such as enable/disable.. So now we understand the description above in not entirely accurate, you are choosing a playable region thus restricting all other regions from play.
How this will work in reverse (restricting selected regions from play) is the complicated part. What you need to do is specify all regions you want to keep playable - leaving the desired unplayable regions out of the script command. So you will have one line of code with a lot of region identifiers.
PROBLEM: majority of modders use notepad – for this DO NOT USE NOTEPAD, use notepad++ or a spreadsheet program.
The reason is notepad supports limited characters per line before the text is ‘wrapped’ to the next line. If the engine reads the next line it will CTD as the line is not recognized as a command option (as it is usually a part of a region i.d.).
You cannot use notepad simple, you cant even try to add two lines of restrict_clickable_area with half the regions on the first line and the rest on the second line – because the engine will read the first set and then switch to the second set, in play only the second set of regions will be accessible.
USES:
I used this script in Divide and Conquer Submod for TATW – to restrict player from entering Mordor regions after Barad Dur is destroyed. And it works as intended. The smallest issue is you cannot simply select the characters that were already in these regions (or the settlements that may be in your control).
To select them you must go through the Army list scroll (or the settlement List scroll), or filter through to them using the select next/previous buttons.
The way I scripted a fix for this in DaC is to force the settlements control over to slave faction, nothing much else can be done about the armies in there unless they have a general and we know his name.. so it is up to the player to know how to move him out of the restricted area…





Reply With Quote











































