• 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.

I need help creating a math function

Status
Not open for further replies.
Level 5
Joined
Apr 8, 2008
Messages
88
I am currently creating a spell with triggers, and i would need a trigger / or help.

The spell i am making, is a missile spell, and i would need a function so the missile get's a smooth "ride" (an example: 3x^2 -5x)
however i need this function to work for every value from 200 to 700. is that possible?

Or else, is it possible to create an integer value in a smart way to fix it?

Here's an image of how would like it to be:

attachment.php


If you can help me so it works, you'll recieve + rep ;)
 

Attachments

  • wc3_Missile.jpg
    wc3_Missile.jpg
    29.9 KB · Views: 146
Level 13
Joined
Jun 1, 2008
Messages
360
I made a map with a spell that uses such a function.
Change the parameters to your wishes.

For example:
If you want the missle to describe a larger "circle" (kind of), use
  • Set Missle_OffsetTransverse = ((300 x Missle_RealIndex) - (50.00 x (Missle_RealIndex x Missle_RealIndex)))
instead of
  • Set Missle_OffsetTransverse = ((200.00 x Missle_RealIndex) - (50.00 x (Missle_RealIndex x Missle_RealIndex)))
etc.
 

Attachments

  • Missle.w3x
    18.9 KB · Views: 49
Status
Not open for further replies.
Top