OSP Kit Combat Combat Abilities

Users who are viewing this thread

This is good. Now I can look through the files and get some more understanding of thing.

Excellent for a newbie.

-EDIT-

Checked it out and found why I could not get the abilities to work (I think).
I had put all the abilities before the "common_battle_tab_press" and not after like you did.

The variable error is still there, and I found that it is in either the rage ability or the battlecry script.

Btw. Local variables are the ones with the dollar sign ($) right?
 
no, local are ":variable",
and "$variable" are global.

do not worry too much about getting the error about unused variables to go away.
 
sorry to jump in here but I was curious is there any difference between a $g_variable and $variable or was that simply part of an old naming convention?
 
Berserker Pride said:
sorry to jump in here but I was curious is there any difference between a $g_variable and $variable or was that simply part of an old naming convention?

I guess old naming convention.
 
NaglFaar said:
This is good. Now I can look through the files and get some more understanding of thing.

Excellent for a newbie.

-EDIT-

Checked it out and found why I could not get the abilities to work (I think).
I had put all the abilities before the "common_battle_tab_press" and not after like you did.

The variable error is still there, and I found that it is in either the rage ability or the battlecry script.

Btw. Local variables are the ones with the dollar sign ($) right?

ok im having the same problem now, i put the abilites script where he put it in the source, but now what helped you fix it? plz tell me because none of them actualyl work when i start the game and go to battle..
 
Chel, would you mind if I used some of this in my mod, Gangs of Glasgow?  Rage and Focus and Sprint, especially, but probably all of it.  I'd be grateful.  It's brilliant work you've done here. 
 
Flanged said:
Chel, would you mind if I used some of this in my mod, Gangs of Glasgow?  Rage and Focus and Sprint, especially, but probably all of it.  I'd be grateful.  It's brilliant work you've done here.

Absolutely, go ahead!
if I would mind I wouldn't have released the source and posted it here separately :smile:
 
NOW I found the variable that wasn't used.


If anyone has (like me) an urge to fix it just do like I did and comment out the line in red.


#############################################################  
      Battlecry Begin
#############################################################
 
    (0, 0, 60, [(key_clicked, key_u),(store_attribute_level,"$attribute","trp_player",3),(neg|main_hero_fallen),
    (play_sound,"snd_man_warcry"),
    ], [
(get_player_agent_no, ":player_agent"),
(try_begin),
      (agent_get_class ,":blah", ":player_agent"),
      (neq,":blah",grc_cavalry),
        (agent_set_animation, ":player_agent", "anim_cheer"),
      (try_end),
        ]), 
    (0, 2, 60, [(key_clicked, key_u),(store_attribute_level,"$attribute","trp_player",3),(neg|main_hero_fallen),
 
  # (get_player_agent_no, ":player_agent")
    ], [

  (store_skill_level,":leadership","skl_leadership","trp_player"),
    (get_player_agent_no, ":player_agent"),
  (store_sub,":cha_bonus","$attribute",0),
  (val_mul,":leadership",3),
  (try_for_agents,":agent"),
 

        (agent_is_alive,":agent"),
        (agent_is_human,":agent"),
      (agent_is_ally,":agent"),
      (neg|eq,":agent",":player_agent"),
      (store_agent_hit_points,":life",":agent",0),
      (try_begin),
      (agent_get_class ,":blah", ":agent"),
      (neq,":blah",grc_cavalry),
        (agent_set_animation, ":agent", "anim_cheer"),
      (try_end),
     
  (val_add,":life",":cha_bonus"),
  (val_add,":life",":leadership"),
  (agent_set_hit_points,":agent",":life",0),     
  #(agent_get_horse,":horse",":agent"),
  (agent_play_sound, ":agent", "snd_man_victory"),
        #(agent_set_animation, ":agent", "anim_cheer"),
      (try_end),
      (store_add,":recovery",":leadership",":cha_bonus"),
      (assign,reg1,":recovery"),
(display_message,"@You rally your men! (wounded troops recover {reg1} % hitpoints)",0x6495ed),     
  (call_script, "script_rage_exp_penalty"), 
        ]),
##############################################################################################
    Battlecry End
##############################################################################################
 
Help. The compiler says this:
Code:
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "D:\********\Things\New Folder\ModuleSystem\process_operations.py", line
21, in <module>
    from module_mission_templates import *
  File "D:\********\Things\New Folder\ModuleSystem\module_mission_templates.py",
 line 1121
    abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
                      ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .

The syntax error is from the help message. I've modified it a bit that way:
abilities_help_on = (0, 0, 0,[(key_clicked, key_n),
            (tutorial_message, "@Combat abilities ^^H: SPRINT, +7 Athletics, +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 higher Charisma, requires 14 Charisma ^^K: WARCRY, unleash a fearsome cry to terrify weaker oppnents around you ^^L: TAUNT, attract the attention of your enemies, more with higher charisma^^All combat abilites can be used every 60 seconds in battle.^^Press M to view other controls^^Press X to close help."),
], [])       
abilities_help_extra = (0, 0, 0,[(key_clicked, key_m),
            (tutorial_message, "@Other Controls:^^Formations - U: Ranks, I: Lines, V - Call Reinforcements.^^B to brace the spear.^^To use Shield Bashing, press LMB while holding RMB.^^Press N for abilities help^^Press X to close help"),
], [])       
abilities_help_off = (0, 0, 0,[(key_clicked, key_x),
            (tutorial_message, "@ "),
], [])
The red part is the one making errors. Can you tell me how to fix this? I tried with the original help message, but the same Syntax Error appears. What should I do?

Thank you for your time and replies in advance.
 
most likely its not the red part that is causing errors, but you forgot a comma or a bracket somewhere and its misreading the code, getting an error in that place because it expects something else there. Try re-adding that part of the code to a clean mission_templates file ( and re-compile after adding each bit so you know last one which causes error)

NaglFaar said:
NOW I found the variable that wasn't used.

nice job :smile:
 
Help I implemented your "Warcry" script and am  getting these errors

ERROR: Illegal Identifier:itm_charm_b
Error: Unable to find object:script_fear
ERROR: Illegal Identifier:script_fear
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_healer_run_ally
ERROR: Illegal Identifier:script_healer_run_ally
Error: Unable to find object:script_healer_heal_ally
ERROR: Illegal Identifier:script_healer_heal_ally
Error: Unable to find object:script_healer_run_enemy
ERROR: Illegal Identifier:script_healer_run_enemy
Error: Unable to find object:script_healer_heal_enemy
ERROR: Illegal Identifier:script_healer_heal_enemy
Error: Unable to find object:script_squads_enemy
ERROR: Illegal Identifier:script_squads_enemy
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_squads_ally
ERROR: Illegal Identifier:script_squads_ally
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_dmod_cycle_forwards
ERROR: Illegal Identifier:script_dmod_cycle_forwards
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_hero_exp_penalty
ERROR: Illegal Identifier:script_hero_exp_penalty
Error: Unable to find object:script_herofallen
ERROR: Illegal Identifier:script_herofallen
Error: Unable to find object:itm_charm_a
ERROR: Illegal Identifier:itm_charm_a
Error: Unable to find object:itm_charm_b
ERROR: Illegal Identifier:itm_charm_b
Error: Unable to find object:script_fear
ERROR: Illegal Identifier:script_fear
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_healer_run_ally
ERROR: Illegal Identifier:script_healer_run_ally
Error: Unable to find object:script_healer_heal_ally
ERROR: Illegal Identifier:script_healer_heal_ally
Error: Unable to find object:script_healer_run_enemy
ERROR: Illegal Identifier:script_healer_run_enemy
Error: Unable to find object:script_healer_heal_enemy
ERROR: Illegal Identifier:script_healer_heal_enemy
Error: Unable to find object:script_squads_enemy
ERROR: Illegal Identifier:script_squads_enemy
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_squads_ally
ERROR: Illegal Identifier:script_squads_ally
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_dmod_cycle_forwards
ERROR: Illegal Identifier:script_dmod_cycle_forwards
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_hero_exp_penalty
ERROR: Illegal Identifier:script_hero_exp_penalty
Error: Unable to find object:script_herofallen
ERROR: Illegal Identifier:script_herofallen
Error: Unable to find object:itm_charm_a
ERROR: Illegal Identifier:itm_charm_a
Error: Unable to find object:itm_charm_b
ERROR: Illegal Identifier:itm_charm_b
Error: Unable to find object:script_fear
ERROR: Illegal Identifier:script_fear
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_healer_run_ally
ERROR: Illegal Identifier:script_healer_run_ally
Error: Unable to find object:script_healer_heal_ally
ERROR: Illegal Identifier:script_healer_heal_ally
Error: Unable to find object:script_healer_run_enemy
ERROR: Illegal Identifier:script_healer_run_enemy
Error: Unable to find object:script_healer_heal_enemy
ERROR: Illegal Identifier:script_healer_heal_enemy
Error: Unable to find object:script_squads_enemy
ERROR: Illegal Identifier:script_squads_enemy
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_squads_ally
ERROR: Illegal Identifier:script_squads_ally
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_dmod_cycle_forwards
ERROR: Illegal Identifier:script_dmod_cycle_forwards
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_hero_exp_penalty
ERROR: Illegal Identifier:script_hero_exp_penalty
Error: Unable to find object:script_herofallen
ERROR: Illegal Identifier:script_herofallen
Error: Unable to find object:itm_charm_a
ERROR: Illegal Identifier:itm_charm_a
Error: Unable to find object:itm_charm_b
ERROR: Illegal Identifier:itm_charm_b
Error: Unable to find object:script_fear
ERROR: Illegal Identifier:script_fear
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_healer_run_ally
ERROR: Illegal Identifier:script_healer_run_ally
Error: Unable to find object:script_healer_heal_ally
ERROR: Illegal Identifier:script_healer_heal_ally
Error: Unable to find object:script_healer_run_enemy
ERROR: Illegal Identifier:script_healer_run_enemy
Error: Unable to find object:script_healer_heal_enemy
ERROR: Illegal Identifier:script_healer_heal_enemy
Error: Unable to find object:script_squads_enemy
ERROR: Illegal Identifier:script_squads_enemy
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_squads_ally
ERROR: Illegal Identifier:script_squads_ally
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_dmod_cycle_forwards
ERROR: Illegal Identifier:script_dmod_cycle_forwards
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_hero_exp_penalty
ERROR: Illegal Identifier:script_hero_exp_penalty
Error: Unable to find object:script_herofallen
ERROR: Illegal Identifier:script_herofallen
Error: Unable to find object:itm_charm_a
ERROR: Illegal Identifier:itm_charm_a
Error: Unable to find object:itm_charm_b
ERROR: Illegal Identifier:itm_charm_b
Error: Unable to find object:script_fear
ERROR: Illegal Identifier:script_fear
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_healer_run_ally
ERROR: Illegal Identifier:script_healer_run_ally
Error: Unable to find object:script_healer_heal_ally
ERROR: Illegal Identifier:script_healer_heal_ally
Error: Unable to find object:script_healer_run_enemy
ERROR: Illegal Identifier:script_healer_run_enemy
Error: Unable to find object:script_healer_heal_enemy
ERROR: Illegal Identifier:script_healer_heal_enemy
Error: Unable to find object:script_squads_enemy
ERROR: Illegal Identifier:script_squads_enemy
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_squads_ally
ERROR: Illegal Identifier:script_squads_ally
Error: Unable to find object:script_squads_clear
ERROR: Illegal Identifier:script_squads_clear
Error: Unable to find object:script_dmod_cycle_forwards
ERROR: Illegal Identifier:script_dmod_cycle_forwards
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_sprint_exp_penalty
ERROR: Illegal Identifier:script_sprint_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Error: Unable to find object:script_focus_exp_penalty
ERROR: Illegal Identifier:script_focus_exp_penalty
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: new_kills

______________________________

Script processing has ended.
Press any key to exit. . .

What does it mean?
 
well means you did something wrong :smile:

did you take the code from here or from the EGIII 0.94 source? because I see you have errors about healers there, which are not included in this thread, and may complicate things.
 
Sorry mistake with the above errors. Should be

Initializing...
Compiling all global variables...
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 item 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...
Exporting mission_template data...
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
WARNING: Local variable never used: player_agent
Error: Unable to find object:script_rage_exp_penalty
ERROR: Illegal Identifier:script_rage_exp_penalty
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...

______________________________

Script processing has ended.
Press any key to exit. . .


Took the code straight from the beginning of this thread.

It  goes like this:

# battlecry

    (0, 0, 60, [(key_clicked, key_u),(store_attribute_level,"$attribute","trp_player",3),(neg|main_hero_fallen),
    (play_sound,"snd_man_warcry"),
    ], [
(get_player_agent_no, ":player_agent"),
(try_begin),
      (agent_get_class ,":blah", ":player_agent"),
      (neq,":blah",grc_cavalry),
        (agent_set_animation, ":player_agent", "anim_cheer"),
      (try_end),
        ]), 
    (0, 2, 60, [(key_clicked, key_u),(store_attribute_level,"$attribute","trp_player",3),(neg|main_hero_fallen),
 
    (get_player_agent_no, ":player_agent")
    ], [

  (store_skill_level,":leadership","skl_leadership","trp_player"),
    (get_player_agent_no, ":player_agent"),
  (store_sub,":cha_bonus","$attribute",0),
  (val_mul,":leadership",3),
  (try_for_agents,":agent"),
 

        (agent_is_alive,":agent"),
        (agent_is_human,":agent"),
      (agent_is_ally,":agent"),
      (neg|eq,":agent",":player_agent"),
      (store_agent_hit_points,":life",":agent",0),
      (try_begin),
      (agent_get_class ,":blah", ":agent"),
      (neq,":blah",grc_cavalry),
        (agent_set_animation, ":agent", "anim_cheer"),
      (try_end),
     
  (val_add,":life",":cha_bonus"),
  (val_add,":life",":leadership"),
  (agent_set_hit_points,":agent",":life",0),     
  #(agent_get_horse,":horse",":agent"),
  (agent_play_sound, ":agent", "snd_man_victory"),
        #(agent_set_animation, ":agent", "anim_cheer"),
      (try_end),
      (store_add,":recovery",":leadership",":cha_bonus"),
      (assign,reg1,":recovery"),
(display_message,"@You rally your men! (wounded troops recover {reg1} % hitpoints)",0x6495ed),     
  (call_script, "script_rage_exp_penalty"), 
        ]),

Seems to be looking for "script_rage_exp_penalty"

What did I do wrong?
 
Back
Top Bottom