• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Evaluated] [Assignment] Week 1

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
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: 9

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
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