8127651@qq.com 发表于 2020-2-1 09:50:25

啊手动阀手动阀撒旦飞洒地方

fangshengking 发表于 2020-2-2 13:27:33

在这里能看到详细的changelog真不错

琭琭有彧 发表于 2020-2-2 22:01:40

本帖最后由 琭琭有彧 于 2020-2-2 23:07 编辑

Version 2.9.7


[+] Added possibility to query function arguments count for functions, called via FU:P, FU:D, DO:P.
    New command !!FU:A?$ returns number of x-arguments (not including x16 for DO:P), received by function.
    This mechanism allows to write functions with optional parameters (parameters with default values) and
    functions with variadic arguments number.

    Example 1:
    !?FU(KillHero);
    ; Kills specified hero. Demonstration of optional parameters.
    ; - hero ID. Optional. -1 by default
    !!FU:A?k; get number of function arguments
    !!VRx1&k=0:S-1; set x1 to -1, if no arguments passed
    !!HEx1:K; killed hero

    !?CM0;
    !!FU(KillHero):P; kill current hero
    !!FU(KillHero):P155; kill Xeron

    Example 2:
    !?FU(sum);
    ; Calculates sum of all passed arguments.
    ; x1..x - arguments to sum
    ; x - result
    !!FU:A?k; count function arguments
    !!VRxk:S0; set result to 0

    !!VRi:S0;
    [:for]
    !!SN&i>=k:G; repeat k times
    !!VRxk:+xi; add next argument value to result
    !!VRi:+1;
    !!SN:G;
    [:end-for]

    !?CM0;
    !!FU(sum):P100/200/300/400/?s; get 100 + 200 + 300 + 400 into "s" quickvar
    !!IF:M^%Vs^; displays "1000"

[+] VR:C now supports v, y, x and w-variables.
[+] Improved MR:N and OnBattleRegeneratePhase:x1. Now stack ID is returned more accuratly. Thanks to Heromant.
[+] Small improvements of ERM Editor. Better 'for'-loop snippet, syntax fixes, 'iff' for !!IF, etc.~Map resources, like ERM or Lua scripts were previously located in Maps/ directories. In order   to support HD-mod maps groupinginto folders, the location was changed to Maps/Resources/.
[-] Fixed wrong/unstable round, used by WoG for creatureautosummoning via creature experience system.
[-] Fixed bug: w-variables in SN/MP/RD were always related to current hero.
[-] VR:R will no more crash on invalid value

DownLoad








qq597791273 发表于 2020-2-4 15:40:13


我去看看插件支持情况说说

klinsi2001 发表于 2020-2-4 17:22:51

era还是搞不清楚,攒个先

琭琭有彧 发表于 2020-2-5 23:16:17

本帖最后由 琭琭有彧 于 2020-2-5 23:19 编辑

Version 2.9.8
------------------------
[+] Introduced high-level fastest loops in ERM via new receivers: !!re, !!br, !!co.
   
    !!re $1[/#2/#3/#4].
      ...
    !!en:;

    $1 - loop counter var like 'i' or 'y6'.
    #2 - counter start value. Optional. Default: initial value of loop counter var.
    #3 - counter stop value.Optional. Default: initial value of loop counter var.
    #4 - step.                Optional. Default: 1, if stop value is set, 0 otherwise.
   
    Repeats block of code. Only the first argument is obligatory.
    At first loop counter variable is initialized.
    Counter stop and step values are remembered for the whole loop and won't be evaluated on each iteration.
    Step determines, what value must be added to counter variable after each iteration. It also determines type of iteration stop condition.
    Positive step checks if counter > stop value. Negative step checks if counter < stop value.
   
    On !!re it's checked, if counter reached stop-value or exceeds it. If true, execution is passed to corresponding !!en block.
    On !!en counter is increased by step and if stop condition is not met, next receiver after closest !!re will be executed.
    If stop condition is not met, execution goes to the next receiver after closest !!re.

    !!br (BREAK) with optional condition immediately jumps after loop !!en receiver.
    !!co (CONTINUE) with optional condition immediately jumps to loop !!en receiver, which will be executed as usual.

    Examples:

    ; Endless loop of annoying messages:
    !!re i:;
      !!IF:M^Donate, please!^;
    !!en:;

    ; Clear current hero army
    !!re i/0/6:;
      !!HE-1:C0/i/-1/0;
    !!en:;

    ; Display 10, 8, 6, 4, 2 (1 will not be displayed, same as 0)
    !!re i/10/1/-2:;
      !!IF:M^%Vi^;
    !!en:;

    ; Display number of the first hero empty slot, if it's found
    !!re i/0/6:;
      !!HE-1:C0/i/?t/?k;
      
      !!if|t=-1/k=0:;
      !!IF:M^Free slot number is %Vi^;
      !!br:;
      !!en:;
    !!en:;

    !!IF&i>6:M^No free slot was found^;

[+] Added possibility to query syntax, that was used for particular function parameter.
    !!FU:S#1/?$2;
    #1- argument index
    ?$2 - syntax type (0 - get, 1 - set, 2 - add)
    Add syntax is applied via 'd' prefix like FU:Pd200.

    Using this receiver scriptmakers can write functions which act the same as normal ERM commands.
    For instance, one function to get/set/add dwelling population amount.

[+] Rewritten ZvsCheckFlags routine. Now e-variables can be compared to integer variables and constants.
    All logical operations are supported for strings. Variable indexes were not checked at all, but are
    checked now.

[+] Adapted wonderful PA and QU receivers by gamecreator with Pandora and Seer Hut Quests API.
    From now these receivers are officially part of Era. See Help\Erm Help directory for details.
    Be sure to delete "pandora's api.era", "receiver pa.era", "receiver qu.era" from old mod packages.

[+] WoG scripts were extractd to a separate mod "WoG Scripts". Some fixes by igrik/Algor were applied.
[+] Included updated TxtEdit and MMArchive by GrayFace. Replaced 'for' snippet in ERM editor with 're' snippet, other syntax file corrections. Maximum 16 nested IF/RE blocks are allowed.
[-] Fixed crash caused by invalid RD:M second parameter handling.

DOWNLOAD

robinsky88 发表于 2020-2-6 08:21:28

谢谢楼主分享,

asqwe9865 发表于 2020-2-6 17:19:45

很好很强大!找到了强大的组织啊

ducs 发表于 2020-2-6 22:01:28

我看官网的2.99已经发布了

琭琭有彧 发表于 2020-2-7 09:41:24

本帖最后由 琭琭有彧 于 2020-2-7 09:46 编辑

Version 2.9.9
------------------------
[+] Added support for loop level in !!br (BREAK) and !!co (CONTINUE) loop controlling receivers.
    !!br 1:; is the same as !!br:; and means break current (innermost) loop.
    !!br 2:; will break outer level loop, !!br 3:; even higher level.

    Example:
    !!re i/0/6:; loop level 2
      !!re j/0/4:; loop level 1
      !!IF:M^%Vi %Vj^;

      !!if&i=3:; The last shown message will be "3 0"
          !!br 2:; break loop level 2
      !!en;
      !!en:;
    !!en:;

[!] XX:Z command is no more a special command. Disabling ERM receivers is not supported.
    57 - freelancers guild.erm will not work propertly.

[-] Fixed wrong ERM interpreter handling of spaces as commands. Example: !!VRy1:Sj +100 used to treat
    space as command and silently consume '+100'. Now spaces between subcommands are fully supported.
    !!VRy1:Sj +100 *4 -7;

[-] Fixed occasional savegames data corruption.
DwonLoad

琭琭有彧 发表于 2020-2-7 10:16:03

本帖最后由 琭琭有彧 于 2020-2-7 10:39 编辑

设置生物声音代码Set creature sounds
!!SN:K4/?z2/y3/1;    SN:K   This code is invalid



ZVSE
**临时使用的变量(可以同时用作别的脚本的临时使用变量):z1-z9, z22-z44,
**设置生物声音 set monster sounds

!?FU(sounds-change) ;x1=monster type, z2=first 4 letters of sound files
!!UN:C4697553/4/?y1; y1 - MonInfo Table
!!VRy2:S116*x1+y1+8; y2 - address of sound pointer
!!UN:Cy2/4/?y3;
!!SN:K4/?z2/y3/1;-----------------------------------

!#VRz2:S^c175^; //声音文件开头
!#FU(sounds-change):P175 P184; //175号和184号生物的声音改成FDFL这一套
!#VRz2:S^c176^; //声音文件开头
!#FU(sounds-change):P176 P185;
!#VRz2:S^c177^; //声音文件开头
!#FU(sounds-change):P177 P186;
!#VRz2:S^c178^; //声音文件开头
!#FU(sounds-change):P178 P187;
!#VRz2:S^c179^; //声音文件开头
!#FU(sounds-change):P179 P188;
!#VRz2:S^c182^; //声音文件开头
!#FU(sounds-change):P182 P191;


**加载游戏的时候也要
!?GM0; on loading
!!VRz2:S^c175^;
!!FU(sounds-change):P175 P184;
!!VRz2:S^c176^; //声音文件开头
!!FU(sounds-change):P176 P185;
!!VRz2:S^c177^; //声音文件开头
!!FU(sounds-change):P177 P186;
!!VRz2:S^c178^; //声音文件开头
!!FU(sounds-change):P178 P187;
!!VRz2:S^c179^; //声音文件开头
!!FU(sounds-change):P179 P188;
!!VRz2:S^c182^; //声音文件开头
!!FU(sounds-change):P182 P191;
@Berserker





琭琭有彧 发表于 2020-2-7 10:29:25

本帖最后由 琭琭有彧 于 2020-2-7 10:34 编辑

Berserker 发表于 2019-12-15 00:15
It's ok. I have just not so much time for testing ))
There is a known and not yet fixed bug: at lea ...
Hi,Bersy.
This is a bug? can you see it?

Set creature sounds
!!SN:K4/?z2/y3/1;   
SN:K   This code is invalid


fhx 发表于 2020-2-7 11:23:12

我的突然无法创建地图了,原来可以

琭琭有彧 发表于 2020-2-7 12:25:46

fhx 发表于 2020-2-7 11:23
我的突然无法创建地图了,原来可以

兄弟,我测试了一下,无法创建地图是因为有些模板的的错误,换个随机地图模板就可以了。

叶子去哪儿 发表于 2020-3-4 16:02:30

封魔新版BATTLESPEED缺失,先战略马克一下看看

XEricSin 发表于 2020-3-4 19:36:55

本帖最后由 XEricSin 于 2020-3-4 19:56 编辑

琭琭有彧 发表于 2020-2-7 10:29
Hi,Bersy.
This is a bug? can you see it?


应该是字符串复制在2.99被禁止了
我猜你现在已经发现了

琭琭有彧 发表于 2020-3-5 00:23:42

本帖最后由 琭琭有彧 于 2020-3-5 23:09 编辑

XEricSin 发表于 2020-3-4 19:36
应该是字符串复制在2.99被禁止了
我猜你现在已经发现了
嗯,2.9.11SN:K可以用了
Reallowed SN:K#1/#2/#3/#4 to work with strings.

但是改正过后的改变生物音效代码还是无效


阿尔萨椛 发表于 2020-3-5 08:16:26

厉害,厉害,支持楼主~

yhcfsr 发表于 2020-11-5 18:19:24

战场移速Mod太值了,解决了大问题。

ashyang 发表于 2020-11-5 23:57:17

我的ERA还是四五年前的,更新一下,感谢发布
页: 1 2 3 4 [5]
查看完整版本: [ERA2.99] Era最新版及战斗速度可调mod下载,不定期更新内容。

捐赠