
Originally Posted by
Taiji
Umm.. Is this like 'extreme modding'? Just thinking perhaps you could do with fixing the problems, or starting again, before adding anything

Your choice though

It is 'extreme modding' - I could do a simple workaround by using the historic_event way and use a Yes\No event that asks if you want to go to the event location, but that is not the idea behind the thread.
My question simpler put: does anyone have an idea what might cause the problem of this mod? The initial script works in any other mod, just not in this one. The mod is nearly finished, so changing the size of the map (happily I can wash my hands of this one) would mean endless hours of script work. (250 armies, 500 resources, script co-ordinates)
I will still try all suggestions.
Edit: results so far
It appears that as long as there is no additional condition or command the add_event command fires correctly. I will try to use I_CompareCounter in the monitor line - that way I can still use the add_event command (simply create the counter condition first in another monitor).
Edit2: I_CompareCounter doesn't work either in the monitor line
Code:
declare_counter sample_counter
set_counter sample_counter 1
monitor_event FactionTurnStart I_CompareCounter sample_counter > 0
add_events
event historic schwed_statisch_movie
date 0
position 299, 368
movie event/schwed_statisch_movie.bik
end_add_events
terminate_monitor
end_monitor
Guess it will have to be the hard way: Yes/No historic_event with snap to the co-ordinates on 'Yes'
Hopefully I can find a workaround for the other add_event entries (haven't checked yet, maybe they work, pleeeease....)
Edit3: the final (?) solution
Code:
script
restrict_strat_radar false
monitor_event FactionTurnStart FactionIsLocal
and I_TurnNumber => 0
campaign_wait 1
historic_event schwed_statisch_movie true event/schwed_statisch_movie.bik
reveal_tile 299, 368
spawn_army
faction england
character random_name, named character, age 45, x 299, y 368
traits GoodCommander 2 , Intelligent 1 , ReligionStarter 1
unit 1648 Bodyguard exp 0 armour 0 weapon_lvl 0
end
terminate_monitor
end_monitor
monitor_event EventCounter EventCounterType schwed_statisch_movie_accepted
and I_EventCounter schwed_statisch_movie_accepted == 1
snap_strat_camera 299, 368
terminate_monitor
end_monitor
wait_monitors
end_script
It has a small drawback: the window disappears when you click either of the options.
.