Logic Parser / Scripting

I'm not familiar with what E:WoM exposes to modders; but I'd very much like to see a scripting engine for E:FE akin to the WarCraft 3 world editor.

Basic functionality is enough (meaning access to units and their attributes, ways to do logic parsing, like while-loop and if-statement). This would throw the doors way wide open for custom spells and cool new in-game mechanics.

2,827 views 3 replies
Reply #1 Top

How would you use while loops in a TBS mod?

Reply #2 Top

How would you use while loops in a TBS mod?

Example:

Spell: Fall of Leaders

Description: All enemy heroes take 10 damage.

Script:

List = GetUnitsInArea(WholeMap);
i = 0;
while i < List.Count do
begin
  Unit = List[i];
  if IsEnemy(Unit) and IsHero(Unit) then
  begin
    DamageUnit(Unit, 10);
  end;
  i = i + 1;
end;

 

Reply #3 Top

Don't worry about modders finding use for programming constructs