- 积分
- 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-5-12 16:06:47
|
显示全部楼层
是一样的,但是仍然无效
********************************************************************************
Buy All Creatures Button 城内一键购买按钮
********************************************************************************
Functions: FU10920-FU10931
Temporary Variables: v600-v633, v640-v646, z1-z3
Temporary Flags: 2-4
[Left or right-click on castle icon beneath town name (CM:I#159)] 159是主城图标
[Mouse click in Town Screen is Trigger]
!?CM1&999;
!!UN:P180/?y-1; [Check if script is enabled: y-1] 选项开启检查
!!FU&y-1<>1:E; [Exit if script isn't enabled]
!!CM:A?y-1/?y-2; [Get x/y coordinates of screen clicked: y-1/y-2] 光标绝对位置
!!FU|y-1<122/y-1>159/y-2<413/y-2>450:E; [Exit if castle icon isn't clicked]不是城堡图标就结束
!!CA-1:U?y-3 O?y-9; [Town number: y-3, Town owner: y-9]
!!OW:C?y-10; [Current player: y-10]
!!VRy-4:S0; ["Buy All" called from Town Screen: y-4=0] 购买所有部队
!!FU10920&y-9=y-10:P; [Call main Buy All function if current player owns town (e.g., not an allied town)]
!!IF&y-9<>y-10:M1/z125084; [Display message if clicking in a town you don't own] 你只能招募自己城镇里的部队。
!!CM:R0; [Disable standard mouse click function]
-------------------------------------------------------------------------------
[Hint Text trigger: Display new hint text for Buy All Button]
!?MM1&999;
!!UN:P180/?y-1; [Check if script is enabled: y-1]
!!FU&y-1<>1:E; [Exit if script isn't enabled]
!!CM:I?y-1; [Mouse location: y-1 (159=castle icon)]
!!VRz-1:Sz125007;
!!CM&y-1=159:Mz-1; [Display hint text] 招募所有部队
-------------------------------------------------------------------------------
[Adventure Map: Control-Left-click is Trigger] 冒险界面一键购买
!?CM5&999;
!!UN:P180/?y-1; [Check if script is enabled: y-1]
!!FU&y-1<>1:E; [Exit if script isn't enabled]
!!CM:I?y-1 F?y-5; [Location clicked: y-1, Flags: y-5 (Ctrl=4)]
!!FU|y-1<32/y-1>36/y-5<>4:E; [Exit if town list not ctrl-left-clicked]
!!VRy-2:Sy-1 -32; [Town list number (0-4): y-2]
!!OW:N-1/y-2/?y-3; [Town number: y-3]
!!VRz1:S^^;
!!CA0/y-3&y-3>=0:N?z1; [Name of town right-clicked: z1]
[Call Main "Buy All" Function]
!!VRy-4:S1; ["Buy All" called from Adventure Map: y-4=1]
!!FU10920:P; [y-3 holds town number]
!!CM:R0; [Disable standard right-click function] |
|