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

[JASS] Intense Cold...

Status
Not open for further replies.
EDIT:

Ok this is a spell I made inspired by Huskar's Burning Spear ability of DotA...

JASS:
 Code Removed

What do I need?
1. How to handle "unittype" properly?...NOT SOLVED
JASS:
local unittype asd = ???????????

2. Is there a function for attack speed or its just the same as SetUnitMoveSpeed?...SOLVED

3. if udg_IC_Counter2==5 then is giving an error but if udg_IC_Counter2 < 6 then has no error, why and how to fix this?...SOLVED

4. Are there any leaks?...MAYBE SOLVED
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,099
1. http://jass.sourceforge.net/doc/api/common_j-types-unittype.shtml

2. There is no native. You can build a function with ability 'Item: Attack Speed Bonus' (AIsx). Such functions were also made in some importable libraries like BonusMod.

3. I do not really get what you want. 5 < 6, so you are saying when == 5 you get an error and no error simultaneously. It does not even enter the first selection when < 6, where and which error do you get? What are the starting parameters/what do you do ingame? Why are you not able to debug it yourself with the help of debug messages?

4. In INT_ACTIONS you create two timers and a texttag even when you do decide to not use them then. You do not clean up the table. At least discard the data attached to the timers, as you probably won't obtain the same timers on the next run the way you have done it.
 
This has error, it says "comparing two variables of different primitive types(except real and integer) is no allowed."
JASS:
if udg_IC_Counter2 == 5 then

While this has none...
JASS:
if udg_IC_Counter2 < 6 then

Even this has no error
JASS:
if udg_IC_Counter2 <= 5 then

the two timers is there for a reason, the "t" is for looping everything,
and I've decided to create the "tt" (a non-repeating one) for the counter recycling...anyway Im gonna put conditions for the "tt" latter...

and Maker thanks for the tip of the 0.405
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
So, it's a syntax error.

5 is not even a variable. I copied your code, declared udg_IC_Counter2 as integer variable and do not have said problem. Which compiler do you use? Maybe the problem is not in the signalized line but in the next. Try to extract it to a separate place like a test map and check things there to ensure it's not the surroundings.
 
Status
Not open for further replies.
Top