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

need help with a shockwave spell

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2007
Messages
244
you would need to open the map to see what i've done so far

here are my problems
---------------------------------

-the abillity im using to trigger the shockwave does nothing it doesnt even start

-I need the spell to dmg every unit (enemies only) it touches based on the formula on the second trigger

the trigger is not complete and i would appreciate if someone can finish it for me
this is my first sc2 trigger so im really unexperienced

+reps for help

and i would rather not do this in the data editor
 

Attachments

  • test.SC2Map
    46.9 KB · Views: 82
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
and i would rather not do this in the data editor
Sounds foolish, the data editor is extreemly poweful and should be used whenever it is efficient to do so. Next you will be saying it must be GUI only...

Triggers in SC2 are much like simple C scripts (without the pointers).

What I sujest is the data editor to do the actual schockwave part (graphics, movement and even the damage detection). You then use triggers to deal the actual damage (as triggers are more suited for complex formula). Using the mechanics used by effect chains like hellion flame attack you can eailly do some form of shockwave single hit only damage. Using the effect detection event (I believe SC2 has one) you could then get when a unit should take damage from the shockwave. This would be a perfect mix of triggers and data working together in an efficient way.
 
GUI is basic triggering.
DSG talks about vJass (wc3) and Galaxy (I think it's called..?) with SC2.
Galaxy/vJass is essentially an easier way for people who know how to code to get the game to do what they want faster and more efficiently.
Say for example it would take you 5 minutes to make a trigger and you may run into problems.
With vJass it'd take 3 minutes and nearly no problems would arise (if done properly).
Also it's much easier to do physics with vJass/Galaxy (in wc3 you couldnt do physics with GUI)
 
Level 7
Joined
Nov 13, 2007
Messages
244
hmm yeah i know, it seems there was a confusion because he told me next time i will be only using gui when i was using gui.

however since you are here do you think you could open the map and check this problem for me, it wont take more than 1 min but i just cant figure it out.

the abillity im using to trigger the shockwave does nothing it doesnt even start
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
CT.Move is complete bogus. It does nothing at all constructive as you pass it null values and 0s.

A local has the scope of the function that contains it and is unique per thread. How you are using them curently... just will not work.

You also run the trigger at every stage of the ability so it will fire 11 times every cast...

1. Remember that wait in a loop is as good as a perodic trigger in SC2. Unlike WC3 where the TriggerSleepAction function was totally usless, wait in SC2 works 100% accuratly and to the same precision as a timer.
2. Only globals can be passed between threads. Locals can be passed within a thread via parameters but do remember that that is by value and not reference.
 
Status
Not open for further replies.
Top