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

integer

  1. Jamesbones

    [Solved] Changing the data value field of a ability in-game

    I've been trying to change the amount of gold a unit will receive after picking up a coin. The 'Players Gold' is the name of the item ability and 'Igol' (Data - Gold Given) is the data field in the particular ability. Drop coins when a unit dies Events Unit - A unit Dies...
  2. Luashine

    Reforged's luahelper.lua and broken FourCC

    I won't just feed you, I will teach you how to fish 1. How to extract luahelper.lua 2. luahelper.lua ...Then let's print the file starting at these positions (start at byte 37392400 | only readable text | max 50 lines): user$ tail --bytes +37392400 "Warcraft III.exe" | strings -n 1 | head -n 80...
  3. Oriri Ire

    Wrong result after Real to Int Conversion

    Hello everybody, i encountered some strange behavior today. Maybe somone can help me. In a Trigger i simply convert a Real variable to an Int. so for example 2.00 (Real) to 2 (Int). But after 3 the conversion goes wrong? The editor then says that 4.00(Real) is 3(Int). Somone knows what the...
  4. Peach Schnapps

    What are the differences in MUI setups?

    From what I’ve read there’s multiple ways to go about setting up an MUI spell or “system”, using an array, using hash tables, I’m just curious are any of these considered the optimal method? Are there draw backs to any?
  5. Bubo

    Help Randomize integer.

    Hello! I'm looking for help regarding randomizing integers without it repeating the same number. So the goal is to set where people will spawn each round. So far i've set up an Integer with an Array thinking it could hold all the different numbers so when the spawn trigger is activated it can...
  6. bruunk

    [Trigger] Integer/Real Variable Size Issues

    I'm faced with an issue I didn't think possible, so I'm not sure why exactly it's occurring but this is what I have so far. My issue is involving a respawn system, where a unit dies, wait X seconds, you get the idea. However, I noticed that when I tested the respawn it worked, but when I tried...
  7. Pikachu

    Noob To Variables - Need Help

    Trying to work on a trigger involving variables which is my weakness, along with custom scripts. Trying to make an item have a random chance of spawning in a choice of 4 different regions. Example: 30 seconds passes, the item spawns in one of those four regions, not knowing which region it will...
  8. Ricola3D

    Editor 1.31 > integer array variable not visible in GUI ?

    Hello, I'm coding in GUI with editor 1.31. I just noticied that when I edit an integer variable, my globals of type integer array are not visible, and thus selectable, so I can't use them. In the example below, I used Easy Item Stack n' Split by Dangerb0y and thus I should see a...
  9. Uncle

    [Solved] Rounding stopped working out of the blue

    I'm a bit confused, everything was working just earlier today and now suddenly my numbers stopped rounding. This still works for whatever reason: Untitled Trigger 001 Events Conditions Actions Set tempReal = (0.50 + ((Real(ShopTotalItems[ShopTracker])) /...
  10. loktar

    [Solved] Weird R2I() behaviour

    Could someone explain this to me? set udg_PatrolSystemState = 1.1 call BJDebugMsg(R2S(udg_PatrolSystemState)) // 1.100 set udg_PatrolSystemState = udg_PatrolSystemState-0.1 call BJDebugMsg(R2S(udg_PatrolSystemState*10)) // 10.000 call...
  11. SoooK

    [Solved] Help me understand loops and actions per unit in group

    I don't understand: For each (Integer INT) from a to b, do (Actions) Unit Group - Pick every unit in GROUP and do (Actions) I think, that every action inside a "For each INT from a to b do (Actions)"-loop, is executed for the current value of INT, then INT gets increased by 1 and repeats all...
  12. BigJeep

    Real/Integer for armor

    I want to create an ability that deals damage based in target's armor, but I can't find anything like a real or integer for armor in gui and I don't know absolutely nothing about jass.
Top