骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 小黑盒加速器
查看: 2120|回复: 3

[求助] 小白刚入门学习请教各位开篇问题属性部分

[复制链接]

4

主题

11

回帖

10

积分

随仆

Rank: 1

UID
3275391
第纳尔
37
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2021-10-1
鲜花(0) 鸡蛋(0)
发表于 2021-10-6 10:43:29 | 显示全部楼层 |阅读模式
开局问题可以更改字母解决,问题和菜单在PY里也只能看懂简单的跳转。修改每个问题答案的属性加成该怎么处理呢?还有怎么添加新一页的问题呢

52

主题

443

回帖

269

积分

贵族[MOD作者]

Rank: 7Rank: 7Rank: 7

UID
2743526
第纳尔
2426
精华
0
互助
18
荣誉
3
贡献
10
魅力
252
注册时间
2016-5-3

霸主正版勋章

鲜花(196) 鸡蛋(0)
发表于 2021-10-6 12:09:48 | 显示全部楼层
1、修改每个问题答案的属性加成,你可以翻翻header operation文件里,关于troop属性点、技能点、熟练度等操作函数,你就知道怎么修改了;大体就是这些:
store_attribute_level                    = 2172  # (store_attribute_level, <destination>, <troop_id>, <attribute_id>),
                                                 # Stores current value of troop attribute. See ca_* constants in header_troops.py for reference.
troop_raise_attribute                    = 1520  # (troop_raise_attribute, <troop_id>, <attribute_id>, <value>),
                                                 # Increases troop attribute by the specified amount. See ca_* constants in header_troops.py for reference. Use negative values to reduce attributes. When used on non-hero troop, will affect all instances of that troop.
store_skill_level                        = 2170  # (store_skill_level, <destination>, <skill_id>, [troop_id]),
                                                 # Stores current value of troop skill. See header_skills.py for reference.
troop_raise_skill                        = 1521  # (troop_raise_skill, <troop_id>, <skill_id>, <value>),
                                                 # Increases troop skill by the specified value. Value can be negative. See header_skills.py for reference. When used on non-hero troop, will affect all instances of that troop.
store_proficiency_level                  = 2176  # (store_proficiency_level, <destination>, <troop_id>, <attribute_id>),
                                                 # Stores current value of troop weapon proficiency. See wpt_* constants in header_troops.py for reference.
troop_raise_proficiency                  = 1522  # (troop_raise_proficiency, <troop_id>, <proficiency_no>, <value>),
                                                 # Increases troop weapon proficiency by the specified value. Value can be negative. Increase is subject to limits defined by Weapon Master skill. When used on non-hero troop, will affect all instances of that troop.
troop_raise_proficiency_linear           = 1523  # (troop_raise_proficiency, <troop_id>, <proficiency_no>, <value>),
                                                 # Same as (troop_raise_proficiency), but does not take Weapon Master skill into account (i.e. can increase proficiencies indefinitely).
troop_add_proficiency_points             = 1525  # (troop_add_proficiency_points, <troop_id>, <value>),                    
                                                 # Adds some proficiency points to a hero troop which can later be distributed by player.

2、怎么添加新一页的问题呢,这个你就用menu吧,有个操作,是jump_to_menu                          = 2060  # (jump_to_menu, <menu_id>),  # Opens the specified game menu. Note this only happens after the current block of code completes execution.

评分

参与人数 1第纳尔 +5 互助 +1 收起 理由
Aomine Daiki + 5 + 1 乐于助人!

查看全部评分

鲜花鸡蛋

tiannvanan  在2021-10-6 19:30  送朵鲜花  并说:我非常同意你的观点,送朵鲜花鼓励一下
Aomine Daiki  在2021-10-6 13:28  送朵鲜花  并说:我非常同意你的观点,送朵鲜花鼓励一下

55

主题

2710

回帖

1755

积分

子爵[版主]

吟游诗人

Rank: 7Rank: 7Rank: 7

UID
3054380
第纳尔
23989
精华
2
互助
57
荣誉
44
贡献
916
魅力
1418
注册时间
2019-1-18

骑砍中文站APP会员勋章原版正版勋章战团正版勋章火与剑正版勋章拿破仑正版勋章维京征服正版勋章霸主正版勋章剧本设计大奖赛骑友真人秀Ⅷ勋章骑友真人秀Ⅶ勋章骑友真人秀Ⅸ勋章

QQ
鲜花(506) 鸡蛋(2)
发表于 2021-10-6 14:35:01 | 显示全部楼层
菜单里有条件模块和触发模块,一般要达到的效果在触发模块里
比如子菜单里的第一个[]是条件模块,第二个[]是触发模块,然后你要是想在这子菜单里跳到另外一页,就在触发模块里加入(jump_to_menu, <menu_id>),  即可做到跳转,多看看战团原有的代码,你就能懂了
珍惜 奉献 不负韶华

4

主题

11

回帖

10

积分

随仆

Rank: 1

UID
3275391
第纳尔
37
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2021-10-1
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2021-10-6 21:50:40 | 显示全部楼层
感谢大佬指导,我研究研究
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2024-4-27 03:59 , Processed in 0.123231 second(s), 27 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表