• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Help with setting a variable

Status
Not open for further replies.
Level 4
Joined
Jan 14, 2017
Messages
75
I'm trying to create a line nova spell (I'm using Spells - Making Nova Spells to help me), but one of the Actions says this:

l.JPG



Since I'm new to the trigger editor, how do I set variable 'Real' to (Real + (360.00 / 8.00))? I know it has to do with the Arithmetic function, but I'm still not sure.


Thank you!
 
For the variable.
  1. Make a New Action.
  2. Choose Set Variable.
  3. Choose the Real variable and click OK.
For the value.
  1. First choose Arithmetic under functions.
  2. Click on the first 1.00 and set the variable named Real to it and click OK.
  3. Leave the + since that's correct.
  4. This part may get confusing. Click the second 1.00. Choose Arithmetic from functions here too. Set the first 1.00 to 360.00. Change the + to /. Then change the other 1.00 to 8.00.
  5. Then click OK for all the menus and it should look like that code you posted.
Lastly, make sure the variable named Real is a Real type by the way else you won't be able to access it under Real value variable inputs.

Hope this helps.
 
Last edited:
Status
Not open for further replies.
Back
Top