多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
> 由于skillapi在读取没有兼容的标签时,会清除该标签内容,所以使用单独插件`PxRpgFromSkillAPI`兼容以确保skillapi不会清空pxrpg组件标签内容 添加可查看 [Buff(4.1.1新增)](Buff.md) 或[下载,密码:gx8y](https://wwjt.lanzouw.com/b02ka8a3e)已兼容的编辑器 <br> ## 恢复血量 ``` PXRPGHEAL: { name: 'PxRpgHeal', container: false, construct: MechanicPxRpgHeal }, ``` ``` extend('MechanicPxRpgHeal', 'Component'); function MechanicPxRpgHeal() { this.super('PxRpgHeal', Type.MECHANIC, false); this.description = '给选中的实体通过pr公式恢复生命值'; this.data.push(new StringValue('标签','Classifier', "default") .setTooltip('通过pr的战斗公式恢复血量 | 节点为 skillapi-heal.技能名.标签') ); } ``` <br> ## 恢复蓝量 ``` PXRPGMANA: { name: 'PxRpgMana', container: false, construct: MechanicPxRpgMana }, ``` ``` extend('MechanicPxRpgMana', 'Component'); function MechanicPxRpgMana() { this.super('PxRpgMana', Type.MECHANIC, false); this.description = '给选中的实体通过pr公式恢复蓝量'; this.data.push(new StringValue('标签', 'Classifier', "default") .setTooltip('通过pr的战斗公式恢复蓝量 | 节点为 skillapi-mana.技能名.标签') ); } ``` 加入后打开编辑器 ![](https://img.kancloud.cn/14/23/14230ab228eea87e500b3d844b3eeafa_255x77.png) ![](https://img.kancloud.cn/10/3f/103f099cc161c9278fd29696af5e82e4_1641x263.png) ![](https://img.kancloud.cn/7d/ea/7dea53ad415367a592bda440c5efaa82_720x410.png)