PC Mode
Org Mobile Site
Forum > Rome: Total War > Rome: Total War > R:TW Modification > Modding Questions >
Thread: Switch off guard mode via script?
Aulus Caecina Severus 17:18 02-16-2010
How can I switch off guard mode via script?

I've tried this way and it doesn't work:


script

monitor_conditions I_InBattle
unit_set_guard_mode rtr_carthaginian_sacred_band off
end_monitor

end_script


I've tried to activate the script from this advice:

AdviceThread Keyboard_Shortcuts_Scroll_Thread
GameArea Battle

Item Keyboard_Shortcuts_Scroll_Text_01
Uninhibitable
Verbosity 0
Threshold 1
Attitude Normal
Presentation Default
Title Keyboard_Shortcuts_Scroll_Text_01_Title
Script scripts\battlescript.txt
Text Keyboard_Shortcuts_Scroll_Text_01_Text1


This show_me advice work only in the first time I start a battle.

How can I do?

Reply
Myrddraal 16:48 03-01-2010
I'm not sure, but I think you may be referring to units in the wrong way. What does "rtr_carthaginian_sacred_band" refer to?

Reply
Aulus Caecina Severus 15:01 03-07-2010
No it's right, it's unit id (requires description) as command label unit.
If you write the specific unit name (like "carthage sacred band", the same you use in export_descr_building and create_unit command) you have CTD.
Unit description, like "rtr_carthaginian_sacred_band" seems to work, not CTD.
But it doesn't work because it does nothing in battle, completely unuseful.
Searching for another way to switch off guard mode...

Reply
Up
Single Sign On provided by vBSSO