- 积分
- 7488
- 威望
- 0
- 魅力
- 0
- 经验
- 7133
- 热心度
- 0
- 注册时间
- 2013-4-1
- 最后登录
- 2024-3-1
- 主题
- 4
- 回帖
- 102
- 精华
- 0
- 阅读权限
- 50
TA的每日心情 | 无聊 2023-2-28 10:41 |
---|
签到天数: 589 天 连续签到: 32 天 [LV.9]龙巫妖

5级 Honorable Hero
 
- 积分
- 7488
|

楼主 |
发表于 2013-4-3 12:27:00
|
显示全部楼层
LZ我回来啦! 经过两天的摸索,总算是有头绪了,也写出了自己的第一个erm脚本:
AI英雄战斗、访问祭坛、潘多拉盒子、智慧石、宝箱、智慧树会获得500%经验。
单人游戏使用。
潘多拉之盒如果有守卫,访问的英雄会获得极多的经验(貌似25倍),
幸好随机地图的潘多拉盒子是没有守卫的。
标准变量使用了v9900-9904,标志、z变量、FU命令没有使用。
ZVSE
_WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except ERM_S for making any kind of changes!
ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
ERMS_ScriptDate=3.4(April).2013
** WoG AI hero experiences expander by Jack
** Script78.erm
** Last Updated April 3,2013
** Previously Updated: April 2, 2013
** Variables Used: v9900-v9904
** Flags: None
** z variaables: None
** Functions: None
** Heroes controlled by AI can get 500% experieces.
** ONE human only.
** DO NOT set guards for Pandora's Box.
!#OW:I0/?y1;
!#VRv9900&y1=0:S0;
!#OW:I1/?y1;
!#VRv9900&y1=0:S1;
!#OW:I2/?y1;
!#VRv9900&y1=0:S2;
!#OW:I3/?y1;
!#VRv9900&y1=0:S3;
!#OW:I4/?y1;
!#VRv9900&y1=0:S4;
!#OW:I5/?y1;
!#VRv9900&y1=0:S5;
!#OW:I6/?y1;
!#VRv9900&y1=0:S6;
!#OW:I7/?y1;
!#VRv9900&y1=0:S7; [find which player is human]
!?BA52; [any battles start]
!!BA:H0/?v9901; [get the attacking hero number]
!!BA:H1/?v9902; [get the defending hero number]
!!HEv9901:E?v9903; [get the attacking hero exp.]
!!HEv9902&v9902>-1:E?v9904; [get the defending hero exp.]
!?BA53; [any battles end]
!!HEv9901:E?y1 O?y3; [get the attacking hero exp. & his player]
!!HEv9902&v9902>-1:E?y2 O?y4; [get the defending hero exp. & his player]
!!VRy1:-v9903; [calculate change of att. hero exp.]
!!VRy2:-v9904; [calculate change of def. hero exp.]
!!VRy1:*4; [multiplied by 4]
!!VRy2:*4; [multiplied by 4]
!!HEv9901&y3<>v9900:Edy1; [amplify the att. hero exp. to 500% if not human]
!!HEv9902&v9902>-1/y4<>v9900:Edy2; [amplify the def. hero exp. to 500% if not human]
!?OB2; [any heroes visit sacrificial altar]
!!HE-1:E?v9903; [get hero exp.]
!$OB2; [any heroes have visited sacrificial altar]
!!HE-1:E?y1 O?y3; [get hero exp. & his player]
!!VRy1:-v9903; [calculate the change]
!!VRy1:*4; [multiplied by 4]
!!HE-1&y3<>v9900:Edy1; [amplify to 500% if not human]
!?OB6; [any heroes pick Pandora's Box]
!!HE-1:E?v9903; [get hero exp.]
!$OB6; [any heroes have picked Pandora's Box]
!!HE-1:E?y1 O?y3; [get hero exp. & his player]
!!VRy1:-v9903; [calculate the change]
!!VRy1:*4; [multiplied by 4]
!!HE-1&y3<>v9900:Edy1; [amplify to 500% if not human]
!?OB100; [any heroes visit a stone]
!!HE-1:E?v9903; [get hero exp.]
!$OB100; [any heroes have visited a stone]
!!HE-1:E?y1 O?y3; [get hero exp. & his player]
!!VRy1:-v9903; [calculate the change]
!!VRy1:*4; [multiplied by 4]
!!HE-1&y3<>v9900:Edy1; [amplify to 500% if not human]
!?OB101; [any heroes pick a chest]
!!HE-1:E?v9903; [get hero exp.]
!$OB101; [any heroes have picked a chest]
!!HE-1:E?y1 O?y3; [get hero exp. & his player]
!!VRy1:-v9903; [calculate the change]
!!VRy1:*4; [multiplied by 4]
!!HE-1&y3<>v9900:Edy1; [amplify to 500% if not human]
!?OB102; [any heroes visit a tree]
!!HE-1:E?v9903; [get hero exp.]
!$OB102; [any heroes have visited a tree]
!!HE-1:E?y1 O?y3; [get hero exp. & his player]
!!VRy1:-v9903; [calculate the change]
!!VRy1:*4; [multiplied by 4]
!!HE-1&y3<>v9900:Edy1; [amplify to 500% if not human]
[ 本帖最后由 去日苦多 于 2013-4-3 18:30 编辑 ] |
|