• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Evaluated] [Assignment] Week 1

Status
Not open for further replies.

Chaosy

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