• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Evaluated] [Assignment] Week 1

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,198
sup, I did the assinment but yeah I didn't like your script I hope you dont mind so I created my own little function and it works just as it should.


JASS:
globals
    integer a = 1
    integer b = 2
    integer c = 3
    integer d = 4
    integer e = 5   
    integer f = 6
    integer SomeOddMath
endglobals

function IHateMath takes nothing returns nothing
    set SomeOddMath =  f / e * d / c * b - a
    call BJDebugMsg(I2S(SomeOddMath))
    call BJDebugMsg(I2S(a))
    call BJDebugMsg(I2S(b))
    call BJDebugMsg(I2S(c))
    call BJDebugMsg(I2S(d))
    call BJDebugMsg(I2S(e))
    call BJDebugMsg(I2S(f))
endfunction
 

Attachments

  • Map 1.w3x
    16.6 KB · Views: 8

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,198
what?

"What's 6 / 5 * 4 / 3 * 2 - 1?" that's exactly what I did

edit: also is ok that I remake the triggers since my new gen is bugging and I can't test the map then
edit 2: nvm fixed but id prefer to work with functions insted of textmacros if that's ok afterall that's how I will work after the class if I make it that far
 
Last edited:
Status
Not open for further replies.
Top