try_for_range (Wow)

Users who are viewing this thread

I was playing with the mission_templates file and look what the compiler answered at my changes:

It gave me...
n_wedge')], []), (1, 0, 100000000.0, [], [(1701, '$base_kills', 0), (2133, '$new
_kills_a', 0), (2133, '$new_kills', 0)]), (3, 0, 3, [], [(1701, ':more_kills', 0
), (2106, ':more_kills', '$base_kills'), 4, (32, ':more_kills', '$new_kills_a'),
(2133, '$new_kills_a', ':more_kills'), (2133, '$new_kills', ':more_kills'), (21
08, '$new_kills', 2), (2133, 72057594037927937L, ':more_kills'), (1106, '@You ha
ve killed {reg1} enemies in this battle!', 6591981), (1106, '@Your bravery inspi
res your troops!', 6591981), 3]), (0, 0, 2, [(71, 20)], [(1, 'script_coherence')
, (1, 'script_healthbars')]), (0, 0, 100000000.0, [(71, 21)], [(1106, '@You rall
y your men!', 8179068), (1, 'script_battle_cry'), (1, 'script_hero_exp_penalty')
]), (10, 0, 20, [], [(1, 'script_rally')]), (0, 10, 100, [(71, 47), (1106, '@You
call for reinforcements!', 6591981)], [(1106, '@Reinforcements arrive!', 659198
1), (1930, 0, 7), (1930, 3, 7), (1, 'script_hero_exp_penalty')]), (1, 0, 1000000
00.0, [], [(1, 'script_coherence')]), (15, 0, 10, [], [(1, 'script_coherence'),
(1, 'script_morale_check')]), (5, 0, 3, [], [(1, 'script_coherence'), (1, 'scrip
t_rout_check')]), [(0, 0, 60, [(71, 20), (2172, '$attribute', 'trp_player', 1),
(30, '$attribute', 14), (31, '$ability', 1), 2147484654L], [(600, 'snd_man_victo
ry'), (1106, '@You push yourself to the limit!', 6591981), 2376, (2133, '$abilit
y', 3), (2172, '$attribue2', 'trp_player', 1), (2107, '$attribue2', 2), (2170, '
$athletics', 'skl_athletics', 'trp_player'), (1521, 'trp_player', 'skl_athletics
', 7), (1520, 'trp_player', 1, 15), (2170, '$athleticsnew', 'skl_athletics', 'tr
p_player')]), (1, 0, 0, [(2371, '$timer'), (32, '$timer', '$attribue2'), (31, '$
ability', 3)], [(2106, '$athletics', '$athleticsnew'), (1521, 'trp_player', 'skl
_athletics', '$athletics'), (1520, 'trp_player', 1, -15), (1106, '@You are out o
f breath... ', 6591981), (1, 'script_sprint_exp_penalty'), (2133, '$ability', 1)
]), (1, 0, 0, [1006, (31, '$ability', 3)], [(2106, '$athletics', '$athleticsnew'
), (1521, 'trp_player', 'skl_athletics', '$athletics'), (1520, 'trp_player', 1,
-15), (1106, '@You are out of breath... ', 6591981), (1, 'script_sprint_exp_pena
lty'), (2133, '$ability', 1)]), (-21.0, 0, 0, [(31, '$ability', 3)], [(2106, '$a
thletics', '$athleticsnew'), (1521, 'trp_player', 'skl_athletics', '$athletics')
, (1520, 'trp_player', 1, -15), (1106, '@You are out of breath.. ', 6591981), (1
, 'script_sprint_exp_penalty'), (2133, '$ability', 1)])], [(0, 0, 60, [(71, 34),
2147484654L], [(600, 'snd_man_victory'), (1700, ':player_agent'), (1710, 1, ':p
layer_agent'), (2171, ':level', 'trp_player'), (2107, ':level', 2), (2105, ':lev
el', 1), (12, ':agent'), (2124, 1), (1702, ':agent'), (1704, ':agent'), (2147485
354L, ':agent'), (1718, ':trp_agent', ':agent'), (2171, ':troop_level', ':trp_ag
ent'), (30, ':level', ':troop_level'), (1710, 2, ':agent'), (710, ':distance', 2
, 1), (2147483678L, ':distance', 500), (2124, 10), (726, ':player_x', 1), (727,
':player_y', 1), (726, ':enemy_x', 2), (727, ':enemy_y', 2), (2121, ':difference
_x', ':enemy_x', ':player_x'), (2107, ':difference_x', 12), (2121, ':difference_
y', ':enemy_y', ':player_y'), (2107, ':difference_y', 12), (2105, ':enemy_x', ':
difference_x'), (2105, ':enemy_y', ':difference_y'), (729, 2, ':enemy_x'), (730,
2, ':enemy_y'), (1730, ':agent', 2, 1), 3, (1106, '@You unleash a fearsome cry!
', 6591981), (2124, 1), (1, 'script_focus_exp_penalty')]), (0, 5, 60, [(71, 34),
2147484654L], [(12, ':agent'), (1702, ':agent'), (1704, ':agent'), (2147485354L
, ':agent'), (1735, ':agent'), 3]), (0, 7, 60, [(71, 34), 2147484654L], [(12, ':
agent'), (1702, ':agent'), (1704, ':agent'), (2147485354L, ':agent'), (1735, ':a
gent'), 3])], [(0, 0, 60, [(71, 37), (2172, '$attribute', 'trp_player', 3), 2147
484654L], [(600, 'snd_man_warcry'), (1700, ':player_agent'), (1710, 1, ':player_
agent'), (2121, ':ch_bonus', '$attribute', 0), (2108, ':ch_bonus', -3), (2133, '
:whistled', ':ch_bonus'), (12, ':agent'), (1702, ':agent'), (1704, ':agent'), (2
147485354L, ':agent'), (2147483678L, ':whistled', 1), (1710, 2, ':agent'), (710,
':distance', 2, 1), (30, ':distance', 600), (1730, ':agent', 1, 1), (2105, ':wh
istled', 1), 3, (1106, '@You taunt your enemies!', 6591981), (1, 'script_rage_ex
p_penalty')]), (0, 4, 60, [(71, 38), 2147484654L], [(12, ':agent'), (1702, ':age
nt'), (1704, ':agent'), (2147485354L, ':agent'), (1735, ':agent'), 3])], [(0, 0,
60, [(71, 36), (2172, '$attribute', 'trp_player', 3), (30, '$attribute', 14), 2
147484654L], [(600, 'snd_horse_low_whinny'), (1700, ':player_agent'), (1710, 1,
':player_agent'), (2121, ':ch_bonus', '$attribute', 14), (2108, ':ch_bonus', -2)
, (2133, ':whistled', ':ch_bonus'), (12, ':agent'), (1702, ':agent'), (214748535
2L, ':agent'), (2147483678L, ':whistled', 1), (1710, 2, ':agent'), (710, ':dista
nce', 2, 1), (30, ':distance', 250), (1730, ':agent', 1, 1), (2105, ':whistled',
1), 3, (1106, '@You whistle for a horse!', 6591981), (1, 'script_sprint_exp_pen
alty')])], [(0, 0, 0, [(71, 49), (1122, '@Combat abilities ^^T: SPRINT, +7 Athle
tics, +15 Agility, lasts for two times your Agility seconds, requires 14 Agility
^^J: WHISTLE FOR A HORSE, call a horse to come to you, more than one with highe
r Charisma, requires 14 Charisma ^^K: WARCRY, unleash a fearsome cry to terrify
weaker oppnents around you ^^K: TAUNT, attract the attention of your enemies, mo
re with higher charisma^^All combat abilites can be used every 60 seconds in bat
tle.^^Press M to view other controls^^Press X to close help.')], []), (0, 0, 0,
[(71, 50), (1122, '@Other Controls:^^Formations - U: Ranks, I: Lines, V: Call Re
inforcements.^^B to brace the spear.^^To use Shield Bashing, press LMB while hol
ding RMB.^^Press N for abilities help^^Press X to close help')], []), (0, 0, 0,
[(71, 45), (1122, '@ ')], []), (3, 0, 100000000.0, [], [(1106, '@Press N for hel
p', 6591981)]), (1, 0, 100000000.0, [], [(2133, '$ability', 1)])], (0.2000000000
0000001, 0, 100000000.0, [], [(2133, '$spear_in_position', 0), (12, ':agent'), (
505, ':agent', 142, 0), (505, ':agent', 143, 0), (505, ':agent', 144, 0), (505,
':agent', 145, 0), (505, ':agent', 146, 0), 3]), (0.20000000000000001, 0, 0, [(3
1, '$setting_use_spearwall', 1)], [(2124, 100), (12, ':agent'), (1702, ':agent')
, (525, ':oldagentx', ':agent', 143), (525, ':oldagenty', ':agent', 144), (525,
':oldagentz', ':agent', 145), (1710, 1, ':agent'), (726, ':agentx', 1), (727, ':
agenty', 1), (728, ':agentz', 1), (729, 2, ':oldagentx'), (730, 2, ':oldagenty')
, (731, 2, ':oldagentz'), (729, 1, ':agentx'), (730, 1, ':agenty'), (731, 1, ':a
gentz'), (710, ':speed', 1, 2), (505, ':agent', 143, ':agentx'), (505, ':agent',
144, ':agenty'), (505, ':agent', 145, ':agentz'), (505, ':agent', 146, ':speed'
), 3]), (0, 0, 0, [(31, '$spear_in_position', 1), (1073741897, 6), (1073741897,
7), (1073741897, 7), (1073741897, 0), (1073741897, 1), (1073741897, 2), (1073741
897, 3), (1073741897, 8), (1073741897, 9), (1073741897, 4), (73, 10)], [(1700, '
:player'), (1702, ':player'), (1106, '@Releasing spear.', 6591981), (1740, ':pla
yer', 'anim_release_thrust_staff'), (2133, '$spear_in_position', 0)]), (0.200000
00000000001, 0, 0, [(31, '$setting_use_spearwall', 1)], [(12, ':agent'), (1714,
':horse', ':agent'), (2147483680L, ':horse', 0), (525, ':speartimer', ':agent',
142), (2147483678L, ':speartimer', 10), (2105, ':speartimer', 2), (505, ':agent'
, 142, ':speartimer'), 3]), (3, 0, 0, [(31, '$spear_in_position', 1)], [(1700, '
:player'), (1702, ':player'), (1740, ':player', 'anim_spearwall_hold')]), (0.100
00000000000001, 0, 0, [(31, '$setting_use_spearwall', 1)], [(1700, ':player'), (
1770, ':playerteam', ':player'), (12, ':agent'), (1702, ':agent'), (2147483679L,
':agent', ':player'), (1704, ':agent'), (1714, ':horse', ':agent'), (2147483680
L, ':horse', 0), (525, ':speartimer', ':agent', 142), (30, ':speartimer', 10), (
1738, ':state', ':agent'), (1770, ':team1', ':agent'), (1772, ':class', ':agent'
), (1785, ':order', ':team1', ':class'), (2133, ':continue', 0), 4, (2147483679L
, ':team1', ':playerteam'), (1073741855, ':state', 0), (1073741855, ':state', 9)
, (31, ':state', 1), (2133, ':continue', 1), 5, (1073741855, ':order', 0), (31,
':order', 11), (1073741855, ':state', 0), (1073741855, ':state', 9), (1073741855
, ':state', 4), (31, ':state', 1), (2133, ':continue', 1), 3, (31, ':continue',
1), (2133, ':continue', 0), 4, (31, ':team1', ':playerteam'), (31, '$rout', 0),
(2133, ':continue', 1), 5, (31, '$airout', 0), (2133, ':continue', 1), 3, (31, '
:continue', 1), (2133, ':continue', 0), (1726, ':handone', ':agent', 0), (1726,
':handtwo', ':agent', 1), (2133, ':speardist', 145), (6, ':spear', 'itm_pitch_fo
rk', 'itm_wooden_shield'), (1073741855, ':handone', ':spear'), (31, ':handtwo',
':spear'), (2133, ':continue', 1), 4, (31, ':spear', 'itm_war_spear'), (2133, ':
speardist', 160), 5, (31, ':spear', 'itm_spear_e_2-5m'), (2133, ':continue', 0),
5, (31, ':spear', 'itm_light_lance'), (2133, ':continue', 0), 5, (31, ':spear',
'itm_lance'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_heavy_lance'), (21
33, ':continue', 0), 5, (31, ':spear', 'itm_pike'), (2133, ':speardist', 255), 5
, (31, ':spear', 'itm_ashwood_pike'), (2133, ':speardist', 255), 5, (31, ':spear
', 'itm_awlpike'), (2133, ':speardist', 170), 5, (31, ':spear', 'itm_pitch_fork'
), (2133, ':speardist', 164), 5, (31, ':spear', 'itm_military_fork'), (2133, ':s
peardist', 145), 5, (31, ':spear', 'itm_battle_fork'), (2133, ':speardist', 152)
, 5, (31, ':spear', 'itm_boar_spear'), (2133, ':speardist', 167), 5, (31, ':spea
r', 'itm_glaive'), (2133, ':speardist', 167), 5, (31, ':spear', 'itm_poleaxe'),
(2133, ':speardist', 190), 5, (31, ':spear', 'itm_polehammer'), (2133, ':speardi
st', 140), 5, (31, ':spear', 'itm_shortened_spear'), (2133, ':speardist', 130),
5, (31, ':spear', 'itm_halberd'), (2133, ':speardist', 185), 5, (31, ':spear', '
itm_ancient_halbard'), (2133, ':speardist', 185), 5, (31, ':spear', 'itm_klance'
), (2133, ':continue', 0), 5, (31, ':spear', 'itm_jousting_lance'), (2133, ':con
tinue', 0), 5, (31, ':spear', 'itm_double_sided_lance'), (2133, ':continue', 0),
5, (31, ':spear', 'itm_staff'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_
quarter_staff'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_iron_staff'), (2
133, ':continue', 0), 3, 3, (31, ':continue', 1), (2133, ':victim', -1), (1710,
1, ':agent'), (12, ':possible_victim'), (1702, ':possible_victim'), (2147485352L
, ':possible_victim'), (1715, ':rider', ':possible_victim'), (30, ':rider', 0),
(1770, ':team2', ':rider'), (1788, ':team1', ':team2'), (1710, 2, ':possible_vic
tim'), (710, ':dist', 1, 2), (2147483678L, ':dist', ':speardist'), (2147484361L,
2, 1), (525, ':speed', ':possible_victim', 146), (30, ':speed', 120), (2133, ':
victim', ':possible_victim'), 3, (32, ':victim', -1), (1740, ':agent', 'anim_spe
arwall_hold'), (1750, ':victim', 'snd_metal_hit_high_armor_high_damage'), (1720,
':hp', ':victim', 0), (1720, ':oldhp', ':victim', 1), (2108, ':speed', 2), (210
6, ':speed', 15), (2106, ':hp', ':speed'), (2111, ':hp', 0), (505, ':agent', 142
, 0), (1714, ':playerhorse', ':player'), (1721, ':victim', ':hp', 0), (1722, ':v
ictim', ':victim'), 4, (31, ':victim', ':playerhorse'), (1720, ':hp', ':victim',
1), (2106, ':oldhp', ':hp'), (2133, 72057594037927937L, ':oldhp'), (1106, '@You
r horse received {reg1} damage from a braced spear!', 16728128), 3, 3]), (0.1000
0000000000001, 0, 0, [(31, '$spear_in_position', 1)], [(1700, ':player'), (1702,
':player'), (1720, ':hp', ':player', 1), (2147483678L, ':hp', '$spear_hp'), (11
06, '@The injury causes your grip on the spear to slip!', 16728128), (1740, ':pl
ayer', 'anim_release_thrust_staff'), (2133, '$spear_in_position', 0)]), (0.10000
000000000001, 0, 0, [(31, '$spear_in_position', 1)], [(1700, ':player'), (1702,
':player'), (525, ':speartimer', ':player', 142), (30, ':speartimer', 10), (2133
, ':victim', -1), (1710, 1, ':player'), (12, ':possible_victim'), (1702, ':possi
ble_victim'), (2147485352L, ':possible_victim'), (1715, ':rider', ':possible_vic
tim'), (30, ':rider', 0), (2147485354L, ':rider'), (1710, 2, ':possible_victim')
, (710, ':dist', 1, 2), (2147483678L, ':dist', '$spear_dist'), (2147484361L, 2,
1), (525, ':speed', ':possible_victim', 146), (30, ':speed', 120), (2133, ':vict
im', ':possible_victim'), 3, (32, ':victim', -1), (1750, ':victim', 'snd_metal_h
it_high_armor_high_damage'), (1720, ':hp', ':victim', 0), (1720, ':oldhp', ':vic
tim', 1), (2108, ':speed', 2), (2106, ':speed', 15), (2106, ':hp', ':speed'), (2
111, ':hp', 0), (1721, ':victim', ':hp', 0), (1722, ':victim', ':victim'), (505,
':player', 142, 0), (1720, ':hp', ':victim', 1), (2106, ':oldhp', ':hp'), (2133
, 72057594037927937L, ':oldhp'), (1106, '@Spear-wall dealt {reg1} damage!')]), (
0, 0, 2, [(71, 48), (31, '$setting_use_spearwall', 1)], [(2133, ':continue', 0),
(1700, ':player'), (1702, ':player'), (1726, ':handone', ':player', 0), (1726,
':handtwo', ':player', 1), (2133, '$spear_dist', 145), (6, ':spear', 'itm_pitch_
fork', 'itm_wooden_shield'), (1073741855, ':handone', ':spear'), (31, ':handtwo'
, ':spear'), (2133, ':continue', 1), 4, (31, ':spear', 'itm_war_spear'), (2133,
'$spear_dist', 160), 5, (31, ':spear', 'itm_spear_e_2-5m'), (2133, ':continue',
0), 5, (31, ':spear', 'itm_light_lance'), (2133, ':continue', 0), 5, (31, ':spea
r', 'itm_lance'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_heavy_lance'),
(2133, ':continue', 0), 5, (31, ':spear', 'itm_pike'), (2133, '$spear_dist', 255
), 5, (31, ':spear', 'itm_ashwood_pike'), (2133, '$spear_dist', 255), 5, (31, ':
spear', 'itm_awlpike'), (2133, '$spear_dist', 170), 5, (31, ':spear', 'itm_pitch
_fork'), (2133, '$spear_dist', 164), 5, (31, ':spear', 'itm_military_fork'), (21
33, '$spear_dist', 145), 5, (31, ':spear', 'itm_battle_fork'), (2133, '$spear_di
st', 152), 5, (31, ':spear', 'itm_boar_spear'), (2133, '$spear_dist', 167), 5, (
31, ':spear', 'itm_glaive'), (2133, '$spear_dist', 167), 5, (31, ':spear', 'itm_
poleaxe'), (2133, '$spear_dist', 190), 5, (31, ':spear', 'itm_polehammer'), (213
3, '$spear_dist', 140), 5, (31, ':spear', 'itm_shortened_spear'), (2133, '$spear
_dist', 130), 5, (31, ':spear', 'itm_halberd'), (2133, '$spear_dist', 185), 5, (
31, ':spear', 'itm_ancient_halbard'), (2133, '$spear_dist', 185), 5, (31, ':spea
r', 'itm_klance'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_jousting_lance
'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_double_sided_lance'), (2133,
':continue', 0), 5, (31, ':spear', 'itm_staff'), (2133, ':continue', 0), 5, (31,
':spear', 'itm_quarter_staff'), (2133, ':continue', 0), 5, (31, ':spear', 'itm_
iron_staff'), (2133, ':continue', 0), 3, 3, (31, ':continue', 1), (1714, ':horse
', ':player'), (2147483680L, ':horse', 0), (2147483679L, '$spear_in_position', 1
), (1106, '@Bracing spear for charge.', 6591981), (1740, ':player', 'anim_spearw
all_hold'), (2133, '$spear_in_position', 1), (1720, '$spear_hp', ':player', 1)])
, [(-19.0, 0, 0, [], [(2133, '$bash_readiness', 0)]), (0.10000000000000001, 0, 0
, [], [(2105, '$bash_readiness', 1)]), (0, 0, 0, [(72, 7), (73, 6)], [(2133, ':c
ontinue', 0), (1700, ':player'), (1702, ':player'), (6, ':shield', 'itm_wooden_s
hield', 'itm_heraldic_mail_with_surcoat'), (1729, ':player', ':shield'), (2133,
':continue', 1), 3, (31, ':continue', 1), (1714, ':horse', ':player'), (21474836
80L, ':horse', 0), (30, '$bash_readiness', 10), (2133, '$bash_readiness', 0), (1
, 'script_cf_agent_shield_bash', ':player')]), (1.0, 0, 0, [], [(1700, ':player'
), (12, ':agent'), (1702, ':agent'), (1704, ':agent'), (2147483679L, ':agent', '
:player'), (1772, ':class', ':agent'), (2147483679L, ':class', 2), (2133, ':cont
inue', 0), (6, ':shield', 'itm_wooden_shield', 'itm_heraldic_mail_with_surcoat')
, (1729, ':agent', ':shield'), (2133, ':continue', 1), 3, (31, ':continue', 1),
(2133, ':chances', 0), (1770, ':team', ':agent'), (1710, 1, ':agent'), (12, ':ot
her'), (1702, ':other'), (1704, ':other'), (1772, ':class', ':other'), (21474836
79L, ':class', 2), (1770, ':otherteam', ':other'), (2147483679L, ':team', ':othe
rteam'), (1710, 2, ':other'), (710, ':dist', 1, 2), (2147484361L, 2, 1), (214748
3678L, ':dist', 200), (2105, ':chances', 1), 3, (1720, ':health', ':agent', 0),
(2107, ':health', -1), (2105, ':health', 100), (2108, ':health', 10), (2107, ':c
hances', ':health'), (2136, ':rand', 1, 25), (2147483678L, ':rand', ':chances'),
(1, 'script_cf_agent_shield_bash', ':agent'), 3])], -19.0, 0, 0, [], [(1796, 0,
2, 1), (1796, 1, 3, 1), (1, 'script_change_banners_and_chest')]), (0, 0, 100000
000.0, [(2133, '$defender_team', 0), (2133, '$attacker_team', 1), (2133, '$defen
der_team_2', 2), (2133, '$attacker_team_2', 3)], []), (-21.0, 0, 0, [], [4, (214
7483679L, '$g_battle_result', 0), (1, 'script_custom_battle_end'), 1907, 5, (112
1, 'str_give_up_fight'), 3]), (-8, 0, 0, [], [(2071, ':answer'), (31, ':answer',
0), (2133, '$g_battle_result', -1), (1, 'script_custom_battle_end'), 1907]), (-
22.0, 0, 0, [(1106, 'str_cant_use_inventory_now')], []), (0, 0, 100000000.0, [],
[(2133, '$g_battle_result', 0), (1, 'script_music_set_situation_with_culture',
262144)]), (30, 0, 0, [], [(1, 'script_combat_music_set_situation_with_culture')
]), (1, 60, 100000000.0, [(2370, 72057594037927937L), (30, 72057594037927937L, 1
0), (1003, 2), (2147484654L, 0), (1906, 1), (1106, 'str_msg_battle_won'), (2133,
'$battle_won', 1), (2133, '$g_battle_result', 1)], [(1, 'script_custom_battle_e
nd'), (1907, 1)]), (10, 0, 0, [], [(31, '$battle_won', 1), (1106, 'str_msg_battl
e_won')]), (1, 4, 100000000.0, [1006, (2133, '$g_battle_result', -1)], [(1, 'scr
ipt_custom_battle_end'), 1907]), (5, 0, 0, [], [(12, ':agent_no'), (1704, ':agen
t_no'), (1702, ':agent_no'), (1770, ':agent_team', ':agent_no'), (1073741855, ':
agent_team', '$attacker_team'), (31, ':agent_team', '$attacker_team_2'), (1737,
':agent_no', 1), 3]), (120, 0, 0, [], [(1700, ':player_agent'), (12, ':cur_agent
'), (2147483679L, ':cur_agent', ':player_agent'), (1702, ':cur_agent'), (1704, '
:cur_agent'), (1770, ':agent_team', ':cur_agent'), (1073741855, ':agent_team', '
$defender_team'), (31, ':agent_team', '$defender_team_2'), (1728, ':cur_agent'),
3]), (0, 0, 100000000.0, [(1, 'script_siege_init_ai_and_belfry')], []), (0, 0,
100000000.0, [(1, 'script_cf_siege_move_belfry')], []), (0, 2, 100000000.0, [(1,
'script_cf_siege_rotate_belfry_platform')], [(2133, '$belfry_positioned', 3)]),
(0, 0, 100000000.0, [(1, 'script_cf_siege_assign_men_to_belfry')], []), (0, 0,
100000000.0, [(1107, 0), (1780, 10, 10), (1790, '$defender_team', 0, 0), (1790,
'$defender_team', 0, 7), (1790, '$defender_team', 0, 7), (1790, '$defender_team'
, 1, 11), (1791, '$defender_team', 10, 10), (1790, '$defender_team_2', 0, 0), (1
790, '$defender_team_2', 0, 7), (1790, '$defender_team_2', 0, 7), (1790, '$defen
der_team_2', 1, 11), (1791, '$defender_team_2', 10, 10), (1107, 1)], [])])
Exporting mission_template data...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 48, in save_mission_templates
    save_triggers(file,convert_to_identifier(mission_template[mission_template_n
ame_pos]), mission_template[mission_template_triggers_pos],variables,variable_us
es,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 21, in save_triggers
    file.write("%f %f %f "%(trigger[trigger_check_pos],trigger[trigger_delay_pos
],trigger[trigger_rearm_pos]))
TypeError: float argument required, not tuple
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting scripts...
WARNING: Usage of unassigned global variable: $new_kills
WARNING: Usage of unassigned global variable: $new_kills
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: training_fight_won
WARNING: Global variable never used: g_village_raid_evil
WARNING: Global variable never used: g_siege_sallied_out_once
WARNING: Global variable never used: attacker_team_2
WARNING: Global variable never used: g_arena_training_max_opponents
WARNING: Global variable never used: tutorial_1_finished
WARNING: Global variable never used: tutorial_2_finished
WARNING: Global variable never used: tutorial_3_finished
WARNING: Global variable never used: tutorial_4_finished
WARNING: Global variable never used: tutorial_5_finished
WARNING: Global variable never used: g_training_ground_training_num_gourds_to_de
stroy
WARNING: Global variable never used: g_training_ground_ranged_distance
WARNING: Global variable never used: airout
WARNING: Global variable never used: rout
WARNING: Global variable never used: $new_kills
WARNING: Global variable never used: $new_kills

______________________________

Script processing has ended.
Press any key to exit. . .
^    ^    ^
(My largest error for now)
This


And one little question: What does the "try_for_range" thingie does? Does it search the items from the first set to the second set? Just like now:
Code:
        (try_for_range,":shield","itm_wooden_shield","itm_heraldic_mail_with_surcoat"),
In this case, does it scan the items.py from wooden_shield to heraldic_mail_with_surcoat or what?
 
it's you standard "for loop"
(try_for_range,":shield","itm_wooden_shield","itm_heraldic_mail_with_surcoat"),

it will increment the variable ":shield" from the value of "itm_wooden_shield" up to (but not including) the value of "itm_heraldic_mail_with_surcoat"

If these 2 items had the values 4 and 10, then this would loop from 4 to 9 (stopping before 10).
 
Back
Top Bottom