This script here are working.
Spoiler Alert, click show to read:
This script here are working.
Spoiler Alert, click show to read:
Last edited by WikkeD; June 21, 2009 at 04:59 AM.
Im not entirely sure but I think you need to add the wait monitors part at the bottom to make the script work. That's the most obvious thing I saw anyway, straight away.
end_monitor
wait_monitors
end_script
like that
Last edited by Bucket of Lithium; June 20, 2009 at 05:29 PM.
How is your parsing?
Is it,
script
---------monitor_event etc.
--------------conditions/commands
---------end_monitor
---------wait_monitors
end script
That seems to work for me, the lines are tabs by the way.
Tabs are not required, it will read the script without them. But I do HIGHLY suggest you format things the same way just to make it easier to read.
What are you using for a mod folder? That almost looks like the 1066 Conquests mod. I would remove everything except one monitor and see if that runs. That will let you know if your script is being read or not. Also make sure the faction names are spelled correctly.
No is my mod Vacuus Lux Lucis an i don´t know what format that mods uses but i have base mine on bare bone kingdoms , my descr_sm_factions looks like this:
Spoiler Alert, click show to read:
and has all other names , its a complete redo of the mod folder factions, edu, edb, map etc and it all work fine except the scripts i have just put up.
How will i notice if the script was 1500 like the rest has done, how will they see if it work or not?, i am starting to be skeptical about how you will be able to control others from cheating, i could simply have told you that its done.
Any ways, will i be able to see it in the Financial details tab? or there is no way to tell that it worked only by adding a massive amount of money like AL has said before?
Edited:
Does this image help?
![]()
You have to watch the amount of money the faction has right when you click end turn, and you cannot use a new script on a saved game.
Okay, I got this script in, real simple one—thought I would see if everything fired before expanding upon it. It fires, but Med2 crashes on the second endturn. I’m using the Barebones folder and I modified the .cfg file as suggested, but nothing is showing up. So, I tried aduellist’s script, exactly as posted. Crashes, second turn. Any idea what is going wrong?
Spoiler Alert, click show to read:
Son of PW
@Icedie
As a quick check, you can scroll back through the console to see if any appropriate "add_money" commands have been used.
If you set up logging options, you can find them in the appropriate log.
I'm using the Barebones folder as a base. Here are the logging options I'm using:
In my Barebones.script.log.txt, I can find messages like this:Code:[log] to = mods/barebones/logs/Barebones.system.log.txt level = game.script* trace file = game.script* mods/barebones/logs/Barebones.script.log.txt
Spoiler Alert, click show to read:
Under the patronage of TheFirstONeill
Proud team member of THERA, A New Beginning
"The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." H. L. Mencken
"Liberty is meaningless where the right to utter one’s thoughts and opinions has ceased to exist. That, of all rights, is the dread of tyrants. It is the right which they first of all strike down." Frederick Douglass
Son of PW
Does it crash with an empty campaign script? If so then its not related to the script but there is another problem.
Son of PW
This is the error i got from my old log setting
I know it has to do with the event txt but i can´t locate it.Code:23:26:34.109 [game.script] [error] Script parsing error at line 10, column 1 in mods/VacuusLuxLucis/data/world/maps/campaign/imperial_campaign/campaign_script.txt don't recognise this token: wait_monitor 23:26:34.109 [game.script] [error] Script parsing error at line 12, column 1 in mods/VacuusLuxLucis/data/world/maps/campaign/imperial_campaign/campaign_script.txt Couldn't create a script from file mods/VacuusLuxLucis/data/world/maps/campaign/imperial_campaign/campaign_script.txt 23:28:33.655 [game.script] [error] Trigger processing error in <0085_Update_Religion> : <own religion> is unavailable from event <FactionTurnStart>
Can anyone tell what code i should be looking after?
Its wait_monitors, not wait_monitor. I missed that the first time, sorry.
It worked!! that is great news, thanks for the help!!
+ rep to you guys
By the way sorry for my ignorance but it has been long ago since the last time i used this symbols < > which one means high ;
is it < 1000 means higher than 1000 or less than 1000?
thanks
> greater than
< less than
Hey thanks
Ok here it is:
Spoiler Alert, click show to read:
And here is my log :
Spoiler Alert, click show to read:
Does that means it all worked?
i did this before i saw your post, so i set a < instead of > and that didn´t trigger but still i got 4 working and i guess that qualifies me for this test, right?
Here's my very first try on scripting
Spoiler Alert, click show to read:
Last edited by Fev; June 21, 2009 at 06:14 AM.
Sorry I'm studding for exams that start tomorrow and just signed on with The Last Kingdom as the expert scripter and have just copied and pasted my work done for that. This is above and beyond this lesson in some of the parts but it close enough. I have only put in 4
Spoiler Alert, click show to read:
Oh no the picture of my dog disappeared!