[Spell] Recognizing a Locust-type unit for a Fireball spell

Status
Not open for further replies.
Level 3
Joined
Sep 15, 2011
Messages
56
Hello. I've got an issue with GUI triggering I hope you fine fellows can help me out with.

See, I'm trying to create an explosive Fireball spell using a dummy unit, with said dummy being Locust-type (so it is not selectable or targetable ingame), and then have it so this unit "moves to the point of casting" when "Fireball" is cast. Thing is, I got that far, but now... nothing. No trigger I make seems to stick with this; I tried using a "kill unit" trigger to make the Fireball 'explode', but it didn't properly pick the dummy unit. Tried "Kaboom!" from the Goblin Sapper, and even though it 'killed' the Fireball, further triggers did not recognize that the Kaboom! ability was used or that the Fireball was dead. Tried having it build a structure and then killing the structure it builds, and not even that worked.

What am I doing wrong, here? Is this because the Fireball is a Locust-type unit? What do I need to do to make sure it 'dies' at the end of its movement order, or does something that I can link to further triggers? How would you create such a spell?

I'll answer any questions you guys may have. Please help. Thanks.
 
Level 6
Joined
Sep 13, 2013
Messages
155
I recommend you to use a damage detection system instead if your spell targets units directly.
and posting triggers would make it easier for us to help you :)
 
Level 3
Joined
Sep 15, 2011
Messages
56
Can you post the triggers instead? So we can see if you make any mistake.
It has nothing to do with the Fireball dummy being a Locust-Type unit as far as I know.
Right, sorry about that. Here's the one that deals with trying to order the Fireball to move and then die. It moved fine, but when it came time to dying, it just didn't do it, which prevented the second trigger path from working, but I put it up anyway.
zNDG5Fk.jpg

QYSJrGu.jpg
 

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
Judging from your trigger, it is both inefficient and leaking.

As some posts above said, I also suggest that you should use DDS or missile system. They are far more efficient and leakless.
They can also help you to achieve your goal though it might be a bit complicated.

I have previously made a spell that works similar to what you're trying to make. Not sure if it is the same as you wanted but here it goes.
 
Level 3
Joined
Sep 15, 2011
Messages
56
Judging from your trigger, it is both inefficient and leaking.

As some posts above said, I also suggest that you should use DDS or missile system. They are far more efficient and leakless.
They can also help you to achieve your goal though it might be a bit complicated.

I have previously made a spell that works similar to what you're trying to make. Not sure if it is the same as you wanted but here it goes.
Thanks, but, um... I don't know how to properly use or view in detail an imported trigger in World Editor. What do?

And how exactly is my trigger 'inefficient and leaking'? What can I improve? Do you see what I'm doing wrong that might stop this from working properly?

Also, what kind of 'missile system'? The only one I've found used vJASS. Is that the one you meant?
 
Last edited:

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
Thanks, but, um... I don't know how to properly use or view in detail an imported trigger in World Editor. What do?
Open the map you've downloaded with world editor then press Ctrl + F9 button to test it in-game.
Look at the trigger editor to view in detail the triggers it has. Copy the folder and paste it into your map (Make sure the "Automatically Create Unknown Variables" is checked). Learn from the imported trigger.

And how exactly is my trigger 'inefficient and leaking'? What can I improve? Do you see what I'm doing wrong that might stop this from working properly?
You are leaking locations "Position of Blabla"
it should be stored into a variable first then use it then destroy it later so it won't leak.
UnitGroup - Pick every unit [...] is also leaking. It should also be stored into a variable and destroyed later.
You're using wait, wait isn't accurate. It isn't that noticeable, though.

Also, what kind of 'missile system'? The only one I've found used vJASS. Is that the one you meant?
Try to look for one in the spell submission section, BPower's missile system is a pretty good one.
 
Level 3
Joined
Sep 15, 2011
Messages
56
Thanks, Rheiko! Your Magic Bolt spell is working perfectly. ^^ I just need to tweak some variables to make it scale with ability level, but that framework was already in place, so it's no biggie.
 
Status
Not open for further replies.
Top