8楼. 6.无敌的英雄来了
monitor_event HireMercenaries I_CharacterExists Donald(这位英雄“Donald”,雇佣佣兵时触发。名字可以改)
and AgentType = named character(限制条件,名字一样)
and FactionwideAncillaryExists knight_qizi true(限制条件,旗子。只要是你的势力,谁都可以。最好还是放在英雄身上。因为后面我会写道,怎么才能让英雄永生不死!!!!!)
and RandomPercent < 100 (限制条件:<100的机率,其实就是肯定触发)
replenish_units Donald(效果,战回)
replenish_action_points Donald (效果,回移动力)
end_monitor
当然,英雄回复不止有雇佣兵,还有。
图解释几个语句:
and not WonBattle战败
and WonBattle战胜
console_command create_unit "Donald", "Swiss Guard", 5 7 7 7援军(这就是狮子王的天将雄师代码
(1/2)
下一段 诸葛▫村夫 2019-2-19 回复(1) 9楼. 7.英雄怎么才能永生不死呢?
楼上写了怎么创造英雄,这样英雄会死。
我们看一下最难死的英雄是谁,是狮子。但狮子也会死,被淹死,的病死,老死。。。。
我们来看看,怎么才能永生。
【以下是,刷出英雄的代码,自己改的】
monitor_event FactionTurnEnd FactionIsLocal(回合结束)
and not I_WorldwideAncillaryExists knight_qizi true(你的世界范围内,没有旗子这个随从)
spawn_army (创造单位)
faction milan
character Donald, named character, age 15, x 136, y 112, family, hero_ability Byzantine_Politics
traits Noctophilia 3 , GoodCommander 3 , ContentGeneral 3 , GoodAmbusher 3 , GoodSiegeDefender 3 , BattleDread 5 , Bloodthirsty 2 , Gregarious 3 , GoodBui
(1/2)
下一段 诸葛▫村夫 2019-2-19 回复(1)