# sprint NEW8
common_speed_spell = (
0, 0, 60, [(key_clicked, key_j),(store_skill_level,"$attribute",skl_athletics,"trp_player"),(ge,"$attribute",4),(eq,"$ability",1),(neg|main_hero_fallen)], [
(play_sound,"snd_man_victory"),
(display_message,"@You cast Wings of Eledran, enhancing your speed!",0x6495ed),
(reset_mission_timer_b),
(assign, "$ability", 3),
(store_attribute_level,"$attribue2","trp_player",1),
(val_mul,"$attribue2",8),
(store_skill_level,"$athletics","skl_athletics","trp_player"),
(troop_raise_skill,"trp_player","skl_athletics",7),
(troop_raise_attribute,"trp_player",1,15),
(store_skill_level,"$athleticsnew","skl_athletics","trp_player"),
],
1, 0, 0, [(store_mission_timer_b,"$timer"),(gt,"$timer","$attribue2"),(eq,"$ability",3)], [
(val_sub,"$athletics","$athleticsnew"),
(troop_raise_skill,"trp_player","skl_athletics","$athletics"),
(troop_raise_attribute,"trp_player",1,-15),
(display_message,"@You feel the effects of your Wings of Eledran spell disappearing...",0x6495ed),
(call_script, "script_sprint_exp_penalty"),
(assign, "$ability", 1),
],
1, 0, 0, [(main_hero_fallen),(eq,"$ability",3)], [
(val_sub,"$athletics","$athleticsnew"),
(troop_raise_skill,"trp_player","skl_athletics","$athletics"),
(troop_raise_attribute,"trp_player",1,-15),
(display_message,"@You feel the effects of your Wings of Eledran spell disappearing...",0x6495ed),
(call_script, "script_sprint_exp_penalty"),
(assign, "$ability", 1),
],
ti_tab_pressed, 0, 0, [(eq,"$ability",3)], [
(val_sub,"$athletics","$athleticsnew"),
(troop_raise_skill,"trp_player","skl_athletics","$athletics"),
(troop_raise_attribute,"trp_player",1,-15),
(display_message,"@You feel the effects of your Wings of Eledran spell disappearing...",0x6495ed),
(call_script, "script_sprint_exp_penalty"),
(assign, "$ability", 1),
],
)
# sprint end
# focus NEW8
common_focus_spell = (
0, 0, 60, [(key_clicked, key_k),(store_attribute_level,"$attribute","trp_player",2),(ge,"$attribute",14),(eq,"$ability",1),(neg|main_hero_fallen)], [
(display_message,"@You focus on the battle, entering the trance-like state of Battle Meditation!",0x6495ed),
(reset_mission_timer_b),
(assign, "$ability", 4),
(store_attribute_level,"$attribue2","trp_player",2),
(store_attribute_level,"$bonus","trp_player",2),
(val_mul,"$bonus",10),
(val_mul,"$attribue2",2),
(troop_raise_proficiency_linear,"trp_player",0,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",1,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",2,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",3,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",4,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",5,"$bonus"),
(troop_raise_attribute,"trp_player",1,5),
],
1, 0, 0, [(store_mission_timer_b,"$timer"),(gt,"$timer","$attribue2"),(eq,"$ability",4)], [
(val_mul,"$bonus",-1),
(troop_raise_proficiency_linear,"trp_player",0,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",1,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",2,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",3,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",4,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",5,"$bonus"),
(troop_raise_attribute,"trp_player",1,-5),
(display_message,"@Your lose your focus...",0x6495ed),
(call_script, "script_focus_exp_penalty"),
(assign, "$ability", 1),
],
1, 0, 0, [(main_hero_fallen),(eq,"$ability",4)], [
(val_mul,"$bonus",-1),
(troop_raise_proficiency_linear,"trp_player",0,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",1,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",2,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",3,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",4,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",5,"$bonus"),
(troop_raise_attribute,"trp_player",1,-5),
(display_message,"@Your lose your focus... ",0x6495ed),
(call_script, "script_focus_exp_penalty"),
(assign, "$ability", 1),
],
ti_tab_pressed, 0, 0, [(eq,"$ability",4)], [
(val_mul,"$bonus",-1),
(troop_raise_proficiency_linear,"trp_player",0,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",1,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",2,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",3,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",4,"$bonus"),
(troop_raise_proficiency_linear,"trp_player",5,"$bonus"),
(troop_raise_attribute,"trp_player",1,-5),
(display_message,"@Your lose your focus... ",0x6495ed),
(call_script, "script_focus_exp_penalty"),
(assign, "$ability", 1),
],
)
# focus end