Variables. The hero that we needed and deserved but we did not get

I’ve come here with a a very simple grief: why didn’t we get an actually working variables in DE? :sob: For example:

  • I have a variable called a
  • I wanna increase all militias attack by 2 * a
  • I’d like to just use the function Change Object attack -> Add -> 2 * a and have the work done but I can’t do it. It’d would be super simple and intuitive.

The actual problem that brang me here is following:

tot_val is a total value of units killed by this player

if (tot_val >= i) {
gold_of_this_player += 250;
i += 1000;

This trigger would have looping set so for the entire game the player would get 250 gold every time he’d pass another 1000 of the killed units’ value. A very simple trigger, you’d say, should be doable in a minute. Well, it’s not, because I can’t compare tot_val with i, I can’t even save total_val to a variable so I could compare the new variable with i.

There’s only one function that includes variables and it’s called “Modify Resource By Variable” which is… odd. Just let us use the function “Modify Resource” with the possibility of writing the whole operation, for example “1000 + Variable0 - b12 * CRISTINE”. Otherwise you’ll have to make like 50 special functions similar to “Modify Resource By Variable”, for example “Modify Object Attack By Variable”, “Modify Object Speed By Variable” etc.