Alright, I will instal the game.We will be taking screen shots for when historic_events fire. You really need a working mod folder.
Alright, I will instal the game.We will be taking screen shots for when historic_events fire. You really need a working mod folder.
Developer of Rising Sumer
Beta-tester for ChC; Mapper of Colonialism-TW;
I have a problem: My PC has crashed, it's the only Computer I have that will run TW. It should be fixed soon, but I'll be behind on the lessons.
In the beginning, Prometheus brought fire to man. Wrong move.
well here is my try.. I copied it from my campaign script in N++ so I do not know if formating is 100%
;Campaign Script
;Slurricane-for class (money scripts)
;script=
;add money to timurids if under 10k
monitor_event FactionTurnEnd FactionType timurids
and not FactionIsLocal
and Treasury > 10000
console_command add_money timurids, 10000
end_monitor
;event money base for hre conflict
monitor_event FactionTurnEnd FactionType hre
and not FactionIsLocal
and Treasury < 100000
console_command add_money hre, -10000
console_command add_money hre, -10000
console_command add_money hre, -15000
end_monitor
;Add money england
monitor_event FactionTurnEnd FactionType england
and not FactionIsLocal
and Treasury < 2000
console_command add_money england, 10000
console_command add_money england, 10000
console_command add_money england, 10000
console_command add_money england, 10000
console_command add_money england, 10000
end_monitor
;mongol reduction
monitor_event FactionTurnEnd FactionType mongols
and not FactionIsLocal
and Treasury > 3000000
console_command add_money mongols, -100000
console_command add_money mongols, -100000
console_command add_money mongols, -100000
console_command add_money mongols, -100000
console_command add_money mongols, -100000
end_monitor
;mongol optimization
monitor_event FactionTurnEnd FactionType mongols
and not FactionIsLocal
and Treasury < 30000
console_command add_money mongols, 100000
console_command add_money mongols, 100000
console_command add_money mongols, 100000
console_command add_money mongols, 100000
console_command add_money mongols, 100000
end_monitor
end_script
In the first two monitors your > and < are backwards, other than that it looks good.
Here's mine!Spoiler Alert, click show to read:
how does it look this evening?
Under the noble patronage of Jimkatalanos
Cool, isn't it?
Under the noble patronage of Jimkatalanos
Indeed
Proud patron of Wlesmana
Assyria Total War
Check update thread for new HQ models
My Workshop
Here is mine
Spoiler Alert, click show to read:
Last edited by Hector Barbossa; June 22, 2009 at 08:34 AM.
There's a few issues with this one besides the one GED mentioned:
1) You commented out(with ; ) script at the top. That's a command that needs to run so the script is initialized, so the script in current form should never initialize.
2) You don't have the command wait_monitors above end_script.
3) In the second monitor you have Faction Type which should be FactionType (without spaces). Scripting is very particular about capitals and spaces and underscores. It's also very particular about exactly using the wording of the DocuDemon, you will find a few with mis-spelled words(like Seige), but you must use Seige as that's what it is registered as.
4) The conditions utilizing an operator(>, <, >=, <=, ==) should be separated on either side by a space, or it's possible the game will not parse it properly. So Treasury >100 should be Treasury > 100 and so on.
You also commented out script at the top of the file, and need to add wait_monitors between end_monitor and end_script at the end of the file.
There's no problem with using a Kingdoms command, I noted it for the benefit of other users who, if they don't use Kingdoms, should not be using that command in place of the console command.
Good except for two things, you're missing end_monitor on the last two monitors.
Good except you have an extra n(add_monney) on the second monitor.
-------------------------------------------------------
As an aside, I encourage all users to make sure their scripts work in-game. If they don't work, before telling us they don't work, go back through your scripts and see if you can find what's wrong with them. 9 times out of 10 your problem will be having misspelled an event, condition, or command. Double-check the DocuDemons for the exact spelling(including capitalization and underscores), insure you start and close off all your monitors, insure you start and end the script including wait_monitors, and insure that if you tried to play with a new condition the exports/requirements match up. We can keep pointing out the problems most of the time, but learning to be tolerable to debugging your own scripts after finding they don't work as intended, perhaps multiple times, is integral to being a good scripter.
After Lesson 1 I'm not going to point out these types of mistakes but will instead say how many mistakes there are, potentially where, and ask you to debug it. I'll still point out any issues that are of an advanced nature.
Last edited by Augustus Lucifer; June 22, 2009 at 08:41 AM.
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
How does it look now?Code:; ;campaign script ; script monitor_event FactionTurnEnd FactionType france and FactionIsLocal and Treasury > 1000 console_command add_money england 10000 end_monitor monitor_event FactionTurnEnd FactionType poland and not FactionIsLocal and Treasury > 100 console_command add_money hre 2500 end_monitor monitor-event FactionTurnStart FactionType hre and FactionIsLocal console_command add_money venice 900 end_monitor ;script ends here wait_monitors end_script
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
Fixed, and sorry for being so slow todayCode:; ;campaign script ; script monitor_event FactionTurnEnd FactionType france and FactionIsLocal and Treasury > 1000 console_command add_money england 10000 end_monitor monitor_event FactionTurnEnd FactionType poland and not FactionIsLocal and Treasury > 100 console_command add_money hre 2500 end_monitor monitor_event FactionTurnStart FactionType hre and FactionIsLocal console_command add_money venice 900 end_monitor ;script ends here wait_monitors end_script
Last edited by Legio; June 22, 2009 at 09:37 AM.
grrrrr, i need a cup of coffe. Done