How Does one Square a value?

I am trying to find the distance a unit moved by comparing CurrentX|Y with OldX|Y. There seems to be no direct method to multiplying values.

The Brute force method sets up a loop using Trigger to add the first value to a Result DP a number of times equal to the second value. This is fine (but slow) until one loops more than 49 times (infinite Loop error).

What’s the secret for fast multiplying → A * B ?

Thanks,
Flaney

No easy way except for what you are doing right now. The 3.2 engine does
have math expressions however. It is hoped to be ready soon - still in
testing right now and has a few things being fixed first though

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of Flaney
Sent: Thursday, September 22, 2011 4:29 AM
To: messages@vassalengine.org
Subject: [messages] [Module Design] How Does one Square a value?

I am trying to find the distance a unit moved by comparing CurrentX|Y
with OldX|Y. There seems to be no direct method to multiplying values.

The Brute force method sets up a loop using Trigger to add the first
value to a Result DP a number of times equal to the second value. This
is fine (but slow) until one loops more than 49 times (infinite Loop
error).

What’s the secret for fast multiplying → A * B ?

Thanks,
Flaney


Read this topic online here:
https://forum.vassalengine.org/t/how-does-one-square-a-value/4296/1