Help with GUI Spells

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Help with GUI Spells

Post by Julian5 »

Yes, it's very useful. ^_^

However, about the stat dmg spell tut, how do you like...do an AOE spell like that? Cause I'm not sure... :/ And also, how would you do one of those spells you see in like anime fight in which the hero rushes at the enemy, dealing dmg to w/e is in the way.

Sry if this is the wrong topic for dat...maybe I should have made a new one... =O If so, sry. :P
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Help with jass Spells

Post by weirdone2 »

Ya kinda bad to be asking in a link topic for new peeps. :P Neway I moved it for you and for aoe just group units in area of w/e your doing like if its a target spell group units in say area of 300 of target of caster and then dmg them or whatever you want to do.

For rushing at enemy's just do something like move unit to where you target to rush or you can also move the unit by intervals till he gets to the point to make it look more like running instead of warping, and then after he's done moving group the units in the area he's at and dmg them and maybe even knock them back.
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: Help with jass Spells

Post by Julian5 »

Intresting....but this would be in the GUI, not JASS, as I don't know JASS........yet. =P


But I made a spell in the GUI for an AOE spell a while ago....but it like...doesn't work. :/ It deals stat dmg in an AOE that triggers 4 time, each time getting bigger.. I did a pick enemy unit group in a box from point spanning AOE by AOE...but they don't always take dmg. Sometimes they do, sometimes they don't, and I don't think it triggers the fourth time at all. :/ Any idea as to how to go about this?

Code: Select all

Let the Light Shine
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Let the Light Shine 
    Actions
        Unit - Pause (Triggering unit)
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards (50.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (200.00, 200.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine  for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
        Wait 1.00 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 350.00 towards (100.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (350.00, 350.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine  for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
        Wait 1.00 seconds
        For each (Integer A) from 1 to 20, do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 500.00 towards (150.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (500.00, 500.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine  for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
        Wait 1.00 seconds
        For each (Integer A) from 1 to 25, do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 650.00 towards (200.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (650.00, 650.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine  for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
        Unit - Unpause (Triggering unit)
It's more of less the same code each time, but will a couple values changed. =P
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Help with jass Spells

Post by weirdone2 »

Hmm my bad I'll throw it in gui for ya then. ;)
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: Help with GUI Spells

Post by Julian5 »

Thx. :P But can you help me? I can't use the dmg in AOE of caster, cause that hits both allies and enemy....AND my hero. :lol: It was sorta funny when I tested it the first time and it killed my guy...hehe...
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Help with GUI Spells

Post by weirdone2 »

When your grouping just put checks on you, and allies.
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: Help with GUI Spells

Post by Julian5 »

Huh? I'm not thinking too well right now... :P

Could you write the trigger out? =O
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image