Mathematics in the trigger editor

draist

Active Member
Reaction score
1
Hey, just a quick question; Would it be easier for the engine if i only use * instead of both * and /?

Like so:
(Strength*0.75)+((Strength*0.25)*Level of Ability)

or

(Strength*0.75)+((Strength/4)*Level of Ability)



EDIT: Also, to remove a temporary point you type call RemoveLocation(udg_nameofvariable) but how do i remove a real variable?
call RemoveReal(udg_nameofvariable)?
 
Last edited:

Accname

2D-Graphics enthusiast
Reaction score
1,462
1) It doesnt matter whether you use multiplication or division. The differences are negligible.

2) You do not need to remove reals. Most data types do not leak, just points, regions, player groups, unit groups, special effects, and perhaps a few others. All the "basic" data types like integers, booleans, reals and units do not leak memory and thus do not need to be removed.
 

draist

Active Member
Reaction score
1
1) It doesnt matter whether you use multiplication or division. The differences are negligible.

2) You do not need to remove reals. Most data types do not leak, just points, regions, player groups, unit groups, special effects, and perhaps a few others. All the "basic" data types like integers, booleans, reals and units do not leak memory and thus do not need to be removed.


Thank you!
 

jonas

You can change this now in User CP.
Reaction score
64
2) You do not need to remove reals. Most data types do not leak, just points, regions, player groups, unit groups, special effects, and perhaps a few others. All the "basic" data types like integers, booleans, reals and units do not leak memory and thus do not need to be removed.

Ha... I remember when this question used to come up all the time. I think there used to be some very sarcastic comments about "removing numbers"... Maybe by TheDamien
 
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