Mathematics in the trigger editor

Discussion in 'World Editor Help' started by draist, Apr 30, 2017.

  1. draist

    draist Active Member

    Ratings:
    +1 / 0 / -0
    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: Apr 30, 2017
  2. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    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.
     
  3. draist

    draist Active Member

    Ratings:
    +1 / 0 / -0

    Thank you!
     
  4. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    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
     

Share This Page