- 积分
- 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:50 编辑
-------------------------------------------------------------------------------
请问如何把一键购买功能的确认键取消,就是把下面红色的的IF:M改为IF:Q
我将M1/z125010 改为 M4/z125010 就出错!
[Main "Buy All" Function] 一键购买功能函数
!?FU10920;
!!VRz1:S^^; [Initialize z1 (list of troops purchased) to null]
!!VRv633:S0; [Initialize v633 (any troops bought?) to 0]
!!IF:V3/0 V4/0; [Initialize Flag 3 (Any troops available to buy?) and 4 (Any army slots available?) to FALSE]
!!VRv624:C0/0/0/0/0/0/0/0; [Set total resource cost variables v624-v631 to 0]
!!CA0/y-3:H0/?v600; [Check if town has a garrison hero: v600=hero # or -1 if no hero]
!!CA0/y-3:P?y-6/?y-7/?y-8; [Town Location: y-6/y-7/y-8]
!!DO10921/0/6/1:P; [Store troops from garrison/garrison hero in v601-v614]
!!DO10922/0/7/1:P; [Store player's resources in v615-v622]
!!DO10923/0/5/1:P; [Consolodate troops stacks of same type in virtual variable slots]
!!DO10924/0/6/1:P; [Determine troops to be bought: v633>0 if any bought]
!!FU10925&v633>0:P; [Display list of new troops and ask if player wishes to purchase them]
* [If yes, deduct gold and resources, v633>0 if yes]
!!DO10926/0/6/1&v633>0:P; [If bought, add troops to garrison/garrison hero]
[If no troops can be bought, display appropriate explanation message]
!!CA0/y-3:N?z3; [Name of town: z3]
!!IF&-3:M1/z125008; 没有部队可购买
!!IF&3/-4:M1/z125009; 没有空格放置
!!IF&3/4/v633=0:M1/z125010; 没有资源购买
-----------------------------------------------------------
这个和高清版本联系密切。
|
|