- 积分
- 2490
- 威望
- 1
- 魅力
- 1
- 经验
- 1865
- 热心度
- 5
- 注册时间
- 2019-3-12
- 最后登录
- 2024-3-3
- 主题
- 41
- 回帖
- 342
- 精华
- 0
- 阅读权限
- 40
TA的每日心情 | 开心 2021-3-22 22:17 |
---|
签到天数: 14 天 连续签到: 1 天 [LV.3]火元素使者
4级 Famous Hero
- 积分
- 2490
|
本帖最后由 水流行险 于 2021-4-10 02:52 编辑
下面是wog原版的进城复活追随者脚本,很不方便。请版主指教如何在英雄界面增加手动点击复活追随者?
** function to resurrect dead henchman
!?FU7108;
!!IF&x1>-1:Wx1; [enable hero variable]
!!FU7104&w118>-1:Pw118; [get monster level]
!!HEx1:E?y6/?y7/1; [get hero exp, level]
!!IF&x1>-1:Wx1; [enable hero variable]
!!VRy10:Sy7 -1 *10 +w117 +c; [experience points = (hero level -1) x10 +earned xp + current day]
!!VRy3:Sy10 :v7215 +1; [henchman level = experience points / level rate + 1]
!!MA:Cw118/6/?y8; [get base creature cost]
!!VRy4:Sy8 *y3 :5; [resurrection cost = base cost x henchman level / 5]
!!IF:Q2/21/w118/2/z149007;
!!OW:R-1/6/?y5; [get current gold amount]
!!VRy8&2/y5>=y4:Sy5 -y4; [calculate gold transaction]
!!OW&2/y5>=y4:R-1/6/y8; [if yes and player has enough gold,set new gold amount]
!!VRw119&2/y5>=y4:S1; [if yes and player has enough gold, set to alive]
!!IF&2/y5<y4:M1/z149008; [if yes and player does not have enough gold, display message]
** end of function
@canary @XEricSin
|
|