首先感谢两位大佬。
我自己修改时,感觉文献1的修改有点复杂,且不利于txt修改;而文献2反编译出来的东西实在不想看。
我根据文献1的讲解和文献2提供的思路,自己重写了该script,在此分享出来。
修改时加上 ###(((courage_scores NEW 括起来的行,删掉 ###(((courage_scores OLD 括起来的行即可。
#Hero Agent : if near agent (hero, agent_no) is not running away his positive effect on centered agent (centered_agent_no) fighting at his side is effected by his hit points.
(try_begin),
(neq, ":agent_is_running_away_or_not", 1), #if agent is not running away
#Normal Agent : if near agent (agent_no) is not running away his positive effect on centered agent (centered_agent_no) fighting at his side is effected by his hit points.
(try_begin),
(neq, ":agent_is_running_away_or_not", 1), # if agent is not running away