_GrandStrategy vs _events scripts Question

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
User avatar
ago1000
Posts: 901
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

_GrandStrategy vs _events scripts Question

Post by ago1000 »

not sure if anyone has played around with _events or the other scripts in the game:

I read in the manual that the _GrandStrategy script provides different AI different strategy plans. For example the AI could perform Operation Sea lion or Barbarossa. _events script effect both the AI and player.

I'm wondering if I can modify the 1939 scenario in such a way that the entry of Russia is either accelerated or delayed. If so what script should be used?

For example, using the _events script you can have an event happen given certain conditions being fulfilled.
The Winter War is an example.

Is it possible to track the number of units the German and Italian forces have in the East. For example in Poland and based on those numbers increase Russia's readiness for war? (this would be in the _events script??????)

Is it possible to set up multiple entry dates for Russia? (I'm guessing the _GrandStrategy script, plans=????)

Just wondering if this is possible or if I'm barking up the wrong tree? Having an editor is awesome.



Isoko
Posts: 84
Joined: Fri May 19, 2017 1:43 pm

RE: _GrandStrategy vs _events scripts Question

Post by Isoko »

I played a few times WarPlan.
German action is the same, so I checked scripts.
I'm thinking of a script for a little stronger AI.
But there are many bugs, I can't be bothered to make it.
1
Tests are not easy to play.
Need to start game every time for test play.
2
plan = number doesn't work.
There may be other scripts that cause errors.
3
randomizeplanMax = number
The value is always 0 (_event.txt)
4
$GiveUnit of _event.txt
Unit placement is error.
Place units between Axis turn and Allies turn.
So Axis units can't move this turn, but Allies units can move this turn.

These bugs are not yet fixed.

>Is it possible to track the number of units the German and Italian forces have in the East. For example in Poland and based on those numbers increase Russia's readiness for war? (this would be in the _events script??????)
I think this script.
landUnitInRadius=x,y,+units,radius,alliance ¯ returns true if the number of land units in the area is equal to or GREATER than the number from the specified alliance that are within the radius. If set to zero radius it checks the x,y hex only

>Is it possible to set up multiple entry dates for Russia? (I'm guessing the _GrandStrategy script, plans=????)
I have not checked yet
But I think that you can do it if you think normally.
User avatar
AlvaroSousa
Posts: 12106
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: _GrandStrategy vs _events scripts Question

Post by AlvaroSousa »

So lets take a look at one of the grand strategy orders

$GrandStrategy
if_Date=1/1/1939
lifespan=once
actionCountry=6
strategyOffense=true ----> this means the A.I. will take offensive action attacking and taking objectives making riskier attacks. false means it will only make high odds attack and defends it's own territory

randomizePlanMax=2 ----> You can have many plans. This randomizes the plans you have labeled int he game. If no plan is specified in scripts then it

$End

### Grand strategy plan example..


//setup to invade Yugoslavia
$GatherLand
if_Date=3/15/1941
if_Plan=1 ----> here is the random plan from above is 1 this script will execute. If it is plan 2 it won't simple

landUnitInRadius=167,43,5,4,Axis
lifespan=tillTrigger
actionCountry=6
targetCountry=57
landAssets=1
hqAsset
setup=0
xyArea=170,46
$End


#### testing

No testing isn't easy. It is very complex for large intricate scenarios. I am still adjusting scripts based on unforeseen outcomes. But say you design an Eastern Front scenario. Here scripts will be much easier as it is a single front line. Or the invasion of Malta will be simple. Or North African campaign.

But something like the European theater is very difficult to accomplish. I had to get very creative with scripting to make things happen without putting in special code for it.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
ago1000
Posts: 901
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: _GrandStrategy vs _events scripts Question

Post by ago1000 »

Thank you Gentlemen. Awesome game.
Post Reply

Return to “WarPlan”