Interesting mathematical things about warcraft 3 Wrold Editor

Penultimate

New Member
Reaction score
2
While I was playing around with the different Real's I discovered the GUI finction "math-tangent". I was intrigued. I used that function, used the world editor to create a simple trigger to display something interesting. If you use this simple trigger, you might see what I saw.

Trigger:
  • create tangent
    • Events
      • Player - Player 1 (Red) types a chat message containing /tan(90) as An exact match
    • Conditions
    • Actions
      • Set tangent = (Tan(90.00))
      • Game - Display to (All players) the text: (String(tangent))


To note, the variables Tangent are Real's.

Another thing I played aorund with was the use of a function of Arithmetic. I made a simple GUI trigger to display division by zero. Here is the trigger.

Trigger:
  • dividing by zero
    • Events
      • Player - Player 1 (Red) types a chat message containing /divZero as An exact match
    • Conditions
    • Actions
      • Set dividing = (1.00 / 0.00)
      • Game - Display to (All players) the text: (String(dividing))


To note, I found the Editor wont let the user do a Negative Square root, probably protecting the game from freezing since it is impossible to make a square root of a negative.
Anyway, if you find this little thread interesting, do comment. Maybe you could give an example as to what I posted was incorrect, or you could give another example of the World Editor's mathematical restrictions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top