As the title states, can a global variable ever be used in two instantaneous triggers at the same time?
For example, I often use a global variable 'tempUnit' and set it to the caster of a certain spell and use 'tempUnit' in another function that checks if a unit is an enemy or not in a...
...if that struct is returned, will the value be null?
For example, I'm trying to do something like this:
local BoneRend spell
if GetTriggerEventId() == EVENT_UNIT_SPELL_EFFECT then
set spell = GetCSData(GetSpellTargetUnit())
else
set spell = GetCSData(GetTriggerUnit())...
After much time spent debugging this code, I've figured out that the problem is that GetCSData(GetTriggeringTrigger()) isn't actually getting the struct that I attached.
Does anyone see the problem with my code? (It uses Vexorian's Caster System.)
scope Envision
private struct Envision...
Hi, thanks for reading my problem.
The problem is, some of my spells require sliding units as a spell effect, but the units can collide with cliffs if shot right along the cliff. Currently my only solution is making the units Flying, however, I do not like the graphical affect this has on the...
Hi, I'm having trouble recreate Arctic Blast from DotA's Shiva's Guard item ability. I have a working version of the spell that already imitates it, but there is just one problem. It doesn't stack with other Arctic Blasts until the unit does not have the buff for it anymore. I know I triggered...
Hello, I have a bit of a problem with this code right here. I'm not sure what's wrong with it but it's completely freezing my WC game (like an infinite loop?). Can anyone help spot the problem?
What the Spell Does: The spell increases the caster's attack speed to max for one attack. Then, the...
Thanks for reading my problem!
What The Spell Does:
The dummy spell (Slow) activates this trigger. As long as the spell target unit is in sight, the caster deals progressive bonus damage to the target. Every second increases the caster's damage on the target by 1.75/2.5/3.25/4 to a maximum...
Hi, thanks for reading my problem!
I just have a slight problem. The dummies that I create for hero spells does not give the player gold when they kill units. How do I fix that so that when a dummy kills a unit, it gives the owning player gold?
* Problem Solved; Thanks Anyways! *
First off, thanks for reading my problem!
Secondly, here's what the spell does: the caster targets an area with a spell (Channel-based) with an AOE of 750/1000/1250; all enemy units within that area is slowed by 20% AND heroes within that radius have the...
This code is not complete, but I was wondering why it isn't looping properly. The timer on my function doesn't seem to work, and I can't figure it out. The function "Demon_Flight_Effects" doesn't seem to run even once. Sorry for the shoddy coding, I just started picking up vJASS.
struct...
I never find the need to use them, but I feel that they could enhance my code. The problem is, I can never find where to fit them in because I code what I need without structs.
Basically, when should I consider using a struct instead of regular coding?
Spell Problem: Mountain Strike (Chain Spell) *FIXED*
Hey, I have a slight problem with my chain spell. Its purpose is to damage only the last target of the chain, and damage increases per bounce.
Here's what I have so far:
A00Q - Dummy spell on my hero.
A00T - Same dummy spell on my dummy...
I'm currently having issues making a customized Searing Arrow ability simply because I can't find a way to accurately stop the trigger from firing during the ability's cooldown.
I have these to turn the trigger on and off depending on the Autocast...
Avid Blade Turn On
Events...
Hi, I've been stuck on this ability for awhile, and I've gone through all the possible ideas I could think of.
This is what the ability does: The ability morphs the target hero into another hero for so and so seconds. The morphed hero has no abilities (doesn't matter if his old skills are...