Event and received technology script

Joined
Dec 27, 2017
Messages
918
I have 11 techs available that don't do anything except for Writing (Wri) which increases literacy which is an intangible unless that ties to scientific research somehow.

Meanwhile, about 1462 AD or thereabouts, the tribes max out whatever available tech can be researched until 1542 AD. This is a long window as that is 3 seasons per year. They should severely cut the research during that window.

All the tribes are militaristic so I made the General Research (FT) to have a low worth of 1 and a 5 as a modifier so that General Research is as low a priority as possible. It seems to work some and tribes are switching to Fundamentalism and not researching. You can't eliminate General Research or switch it off somehow, can you?

I don't want the AI to waste income on unneeded research. Still the AI is likely to do so, so and every infrastructur that can be created except a scant few are already set up.

So I was looking at the event file and there is a command to ReceivedTechnology as a trigger. So if they research technology will that trigger still fire OR will it only work if tech is truly given away in negotiation? If researching tech for these 11 available ones is done, then it should cause a payoff like createunit or changemoney to offset the expenditure.

Otherwise I could have some special units show up when these are studied. I'm running out of unit slots unless I eliminate the merchant.

I was hoping that I could use setaggression with a low value after tech is researched to modulate diplomatic relations but it appears to only increase it.
 
Last edited:
@IF
RECEIVEDTECHNOLOGY
technology=41
receiver=Japanese Empire
@THEN
CREATEUNIT
unit=Imperial Marines
owner=Japanese Empire
veteran=yes
homecity=None
locations
214,104
215,105
215,107
216,106
endlocations
JUSTONCE
@ENDIF
Like this from the excellent MGE alternative history mod called Dictator.

This seems to be something that would be useful and even have an opposite effect of the event causing another tribe to similarly gained spawned units to balance it out. Have an identical script but spawn beneficial soldiers because it happened...most likely in the starting capital.
 
It's very cool how it works. Back in history, various spiritual systems reinforced an ethical framework ie Shinto, Confuscianism, and various schools of Buddhism. That led to an effect on the Imperial court and ethics and ettiquette. That lead to protosamurai developing from mere warriors into professionals who were expected to be educated and spiritual as well as having multiple proficient abilities in the sword, spear, pike, horsemanship, and archery.

Clan leaders worried and especially the daimyo who feared his son or heir through his brother or nephew or whoever...would lead in a different way contrary to his own leadership style. And he wanted him to exceed his own limitations. It didn't naturally lead to a dynasty as history taught the daimyo that unless his own son was proficient and well liked and had backbone and wisdom, they might be crushed through civil war upon the daimyo's death.

That leads to a document that was constantly rewritten so it was updated based on experience that had emprically been proven to lead to success.

That leads to daimyo house codes some of which survive as first they were private correspondance or documents, but then these became expectations for the lowest to the highest retainers in the fief.

That far later in the 16th century during peacetime gets written down and disseminated as bushido.

Here the tech tree progresses from: the best Budo of the circa 1460 period with Iaijutsu and Battojutsu being practical battletested swordsmanship after learning all the other arts, and that leads to Education then Rectitude(Clan Justice) then Courage as an ethical expectation then Benevolence then Politeness (be polite around soldiers bearing three foot razors), then Veracity (a samurai has no second word), then Honor no matter what, then Duty to the clan (han) versus Loyalty to one's friends and family, then Self-Control mastery.

This is a very idealized version of the time of the Warring States leading up possible ruination if a Shogunate is appointed especially a villain like Tokugawa.

This ideal leads to the concept of self-sacrifice for the good of the group and seppuku when "they cannot live with the shame of having failed their clan or family or by neglect then causing the ruin of those in their charge. That ends up being so deeply ingrained that even when the samurai are abolished in the 19th century, wistful soldiers are still vaguely holding on to it though their own actions betrayed bushido.
 
Last edited:
With those nine Bushido ideals (techs) added, then AI is aggressively investing in it despite no units being produced, but likely various special events and money and units, even nonrecruitable units might show up.

At a maxed 36 cities with lots of science and research money, it's taking four turns times nine techs so 36 turns. That is divided by three seasons so 12 years of research in Bushido pays off in undeclared ways post 1465 AD.

Already the Oda han sent a defensive army to try to take some fortresses but was repelled. The first armies are better suited to really protect the citadel instead of trying a seige. In an open field without fortification, that defensive army can win if well used.
 
Because the AI highly esteems the army units, I may have these regular Bushido levels cause spawning in the Event file to create individual high caliber infantry and cavalry at various locations. That way, whatever lost individual units were made casualties in the years leading up to armies, then still the AI has an effective military to draw from as a special challenge to the human player.

Similarly some naval forces may be spawned too. I'm trying to think of great diversity in benefits to fully learning both Budo and Bushido versus the single recruitment slot in each city.

The AI could get obsessed by army creation, but such spawning could replentish say five elite cavalry. Since an army takes 13-15 turns (4 months per turn), then meanwhile at the upper levels of the cities, they can make elite cavalry (which are very powerful) every turn. So would you rather have 13-15 elite cavalry or a single unified superb Attacking army or a great Defender army?

My guess is the way I configured it will create massive field battles and manuevering for terrain and then intense army versus army city sieges.

I'm considering realistically how many units should be deployed in the field versus garrisoned at the maximum considering that the individual units represent companies (about 100) and battalions (looks like 650-800) and the armies represent regiments (1,000-5,500) versus historical numbers of fielded 200,000 samurai in special battles.

By 1472, it looks like the cities have used up 33% of their available ability to muster and support but as these become casualties as single units ie companies then they can support more as armies of battalions and regiments as each recruited unit whether a spearman or a carrier in the vanilla game has a support cost of ONE.

I think that honor, duty, and loyalty as codified by Bushido created insane levels of ZEAL and that's what caused such extreme recruitment of samurai. They saw a noble death as a samurai professional to be superior to making lots of money as a merchant (who were despised as they created nothing and then became loan sharks ie protobankers).

Using ToTTP in ToT, you could replicate the fact that Buddhist monasteries became corrupt and started using increasing usury which startedto ruin whole samurai families and all of this actually leads to the zaibatsu in WW2 as the Samurai edicts destroys their caste (March 1876) and facilitates the merchant class seeking imperialism in Manchuria and the Pacific. Frankly after the Tokugawa shogunate, the family who most hired ronin, actually was responsible for destroying the nobility of existing low and middle samurai and they became ronin.
https://en.m.wikipedia.org/wiki/Haitōrei_Edict

In Europe with "credit" and merchants, you have first the crusaders beginning with Templars incorporating checking and loans, then merchants loaning to the nobility. So you have the same crusader zeal ending up harming the noble houses who have bad cashflow and perpetual loans.

A collection of han (clans) used to having autonomy then felt repressed as everything they know from Budo amd Bushido has trained them for War yet Tokugawa then restricts and steals through taxation and hands down edicts. This causes things like this though it's isolated.
https://en.m.wikipedia.org/wiki/Shimabara_Rebellion
Tokugawa turned elite professional soldiers into clerks and bureacrats.
 
Last edited:
Back
Top Bottom