- 好友
- 1
- 在线时间
- 617 小时
- 最后登录
- 2024-12-20
子爵[版主]
- UID
- 75439
- 第纳尔
- 6907
- 精华
- 0
- 互助
- 6
- 荣誉
- 1
- 贡献
- 190
- 魅力
- 32
- 注册时间
- 2008-5-3
鲜花( 8) 鸡蛋( 0)
|
本帖最后由 easewater 于 2021-1-22 16:00 编辑
代码如下:
(agent_get_troop_id, ":troop_no", ":agent_no"),(is_between, ":troop_no", "trp_custom_troop_1", "trp_xinbing_begin"),#
(troop_get_inventory_capacity, ":inv_size", "trp_custom_horse"),
(try_for_range, ":i_slot", "$hyidg_horse", ":inv_size"),
(troop_get_inventory_slot, ":horse", "trp_custom_horse", ":i_slot"),(gt,":horse",0),(item_get_type,":type_9",":horse"),
(str_store_item_name, s1, ":horse"),
(display_message, "@itemname{s1}",0xFF0000),
(assign, reg1, ":horse"),
(display_message, "@horse{reg1}",0xFF0000),
(assign, reg2, ":type_9"),
(display_message, "@type{reg2}",0xFF0000),
(eq,":type_9",itp_type_horse),
(agent_equip_item,":agent_no",":horse",ek_horse),(assign,":inv_size",0),(assign,"$hyidg_horse",":i_slot"),(val_add,"$hyidg_horse",1),#add horse
(try_end),
在场景中显示
:horse是trp_custom_horse背包里的马,type_9值是1,也即是tp_type_horse标签捕捉正确,但最后一句agent_equip_item还是无法把马装备上去,是否在场景中无法直接装备马给agent,各路大佬能否抽空帮看下问题出在哪,谢谢。
|
|