- 积分
- 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-3-10 23:49 编辑
我想把召唤石增加手动触发功能,在英雄界面CTRL+左键点击英雄攻击值46触发,但是总是挑错?请版主指点
[Stone Ring object is trigger]
!?OB63/21;改为
!?CM2&1000;
!!CM:F?y11 I?y12;
!!FU|y11<>4/y12<>46:E; 左键点击英雄攻击值46触发,原为士气116
!!CM:R0;
!!UN:P32/?y-1; [Check if Summoning Stones is enabled in WoGify Options: y-1]
!!FU&y-1<>1:E; [Exit if script isn't enabled]
[Check if "Monster Mutterings" script is active (Flag 57 set to True)]
[If so, set v1211 to 99 and set Flag 57 to False, otherwise set v1211 to 0]
!!VRv1211&57:S99;
!!VRv1211&-57:S0;
!!IF:V57/0;
[Clear flag 2]
!!IF:V2/0;
[Check if ring has already been visited today - store number in v7]
!!PO998:N?v7;
[If already visited, display message and set v4 to 999]
!!IF&1000/v7=1:M1/z132003;
!!VRv4:S999;
[Check current player - store in v1]
!!OW:C?v1;
[Count number of towns - store in v2 - count number owned by player - store in v3]
!!UN:U98/-1/?v2;
!!VRv3:S0;
!!VRv4:S-1; [Initialize v4 to -1 to work with new faster UN:U syntax]
!!DO5219/1/v2/1&v2>0/v7=0:Pv1;
[If no towns owned, display message]
!!IF&1000/v3=0/v7=0:M1/z132004;
[If one or more towns owned, ask this]
!!IF&1000/v3>0/v7=0:Q2/z132005;
[If AI, set Flag 2 to True unless already visited today or no towns]
!!IF&-1000/v3>0/v7=0:V2/1;
[If player doesn't wish to summon troops, set v4 to 999]
!!VRv4&-2:S999;
[If player wishes to summon troops, call Function 5220]
!!FU5220&v3>0/2/v7=0:Pv1/v2/v3;
[Ask if player wants to buy troops or use garrison troops]
[unless v4=999 ("no thanks" option)]
!!VRz1:Sz132006;
!!VRz2:Sz132007;
!!VRz3:Sz132008;
!!VRz4:Sz132009;
!!UN:A116/9/z1; !!UN:A116/10/z2; !!UN:A122/9/z3; !!UN:A122/10/z4;
!!IF&1000/v4<>999:Q2/8/116/8/122/7/z132010;
!!UN:A116/9/0; !!UN:A116/10/0; !!UN:A122/9/0; !!UN:A122/10/0;
|
|