- Joined
- Oct 18, 2007
- Messages
- 929
A contest where you can make anything from babie poop to starwars?
Im in!
Im in!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dg2

Events


Event - A unit dies

Conditions


(Unit-type of (Triggering unit)) equal to dummy1

Actions


For each (Integer A) from 1 to 20, do (Actions)



Loop - Actions




Set temppoint2 = (temppoint1 offset by 100.00 towards (x + 18.00) degrees)




Unit - Create 1 dummy2 for (Owner of (Dying Unit)) at temppoint2 facing (x + 18.00) degrees




Custom script: call RemoveLocation(udg_temppoint2)




Unit - Add a 2.00 second Standard expiration timer to (Last created unit)




-------- Now we give the created unit the level of the ability which is stored in the 'carrier'-ability --------




Einheit - Set level of dummyab for (Last created unit) to (Level of (Dying unit))




Set x = (x + (1.00 + 18.00))



Set x = 0.00
Dg2

Events


Event - A unit dies

Conditions


(Unit-type of (Triggering unit)) equal to dummy1

Actions


For each (Integer A) from 1 to 20, do (Actions)



Loop - Actions




Set temppoint2 = (temppoint1 offset by 100.00 towards ((Real((Integer A))) x 18.00) degrees)




Unit - Create 1 dummy2 for (Owner of (Triggering unit)) at temppoint2 facing ((Real((Integer A))) x 18.00) degrees




Custom script: call RemoveLocation(udg_temppoint2)




Unit - Add a 2.00 second Standard expiration timer to (Last created unit)




-------- Now we give the created unit the level of the ability which is stored in the 'carrier'-ability --------




Einheit - Set level of dummyab for (Last created unit) to (Level of (Triggering unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

'IF'-Conditions


(Level of dummyab for (Last created unit)) equal to 1

'THEN'-Actions


Set x = 500.00

'ELSE'-Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Conditions




(Level of dummyab for (Last created unit)) equal to 2



'THEN'-Actions




Set x = 600.00



'ELSE'-Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





'IF'-Conditions






(Level of dummyab for (Last created unit)) equal to 3





'THEN'-Actions






Set x = 700.00





'ELSE'-Actions
Set x = (400.00 + (100.00 x (Real((Level of dummyab for (Last created unit))))))
I don't know about submitting a spell(never was I good with themed ideas), but each contest makes me produce a couple of systems
Like the ones in this test map.
... and that is the start. Now go and create a fine-looking surprise spell sir!![]()
Black Arrow

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to Black Arrow

Actions


Set Unit[1] = (Triggering unit)


Set Unit[2] = (Target unit of ability being cast)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Life of Unit[1]) Less than or equal to (75.00 x (Real((Level of Black Arrow for Unit[1]))))



Then - Actions




Game - Display to (Player group((Owner of Unit[1]))) for 2.00 seconds the text: ...




Unit - Order Unit[1] to Stop



Else - Actions




Unit - Set life of Unit[1] to ((Life of Unit[1]) - (75.00 x (Real((Level of Black Arrow for Unit[1])))))




Wait until ((Unit[2] has buff Black Arrow(custom) ) Equal to True), checking every 0.10 seconds




Unit - Cause Unit[1] to damage Unit[2], dealing (75.00 x (Real((Level of Black Arrow for Unit[1])))) damage of attack type Spells and damage type Normal




Special Effect - Create a special effect attached to the origin of Unit[2] using Abilities\Weapons\AvengerMissile\AvengerMissile.mdl




Special Effect - Destroy (Last created special effect)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Life of Unit[2]) Less than 5.00





Then - Actions






Set Point[1] = (Position of Unit[2])






Unit - Cause Unit[1] to damage Unit[2], dealing 500.00 damage of attack type Spells and damage type Normal






Unit - Set life of Unit[1] to ((Life of Unit[1]) + (90.00 x (Real((Level of Black Arrow for Unit[1])))))






Unit - Create 1 Dummy for (Owner of Unit[1]) at Point[1] facing Default building facing degrees






Unit - Add a 1.50 second Generic expiration timer to (Last created unit)






Unit - Add Black Arrow(dummy) to (Last created unit)






Unit - Set level of Black Arrow(dummy) for (Last created unit) to (Level of Black Arrow for Unit[1])






Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror






Special Effect - Create a special effect attached to the origin of Unit[1] using Abilities\Spells\Undead\DeathPact\DeathPactTarget.mdl






Special Effect - Destroy (Last created special effect)






Special Effect - Create a special effect at Point[1] using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl






Special Effect - Destroy (Last created special effect)






Custom script: call RemoveLocation(udg_Point[1])






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Random integer number between 1 and 100) Less than or equal to 75








(Unit[2] is A Hero) Equal to True







Then - Actions








Unit - Set life of Unit[1] to 100.00%








Special Effect - Create a special effect attached to the origin of Unit[1] using Abilities\Spells\Items\AIil\AIilTarget.mdl








Special Effect - Destroy (Last created special effect)







Else - Actions





Else - Actions
Edit:
only ~5 people joined?
Meh, i won't even bother making this Jass...
here is the code:This is zuper pwnzor zpell! -Jk
Black Arrow
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Black Arrow
Actions
Set Unit[1] = (Triggering unit)
Set Unit[2] = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of Unit[1]) Less than or equal to (75.00 x (Real((Level of Black Arrow for Unit[1]))))
Then - Actions
Game - Display to (Player group((Owner of Unit[1]))) for 2.00 seconds the text: ...
Unit - Order Unit[1] to Stop
Else - Actions
Unit - Set life of Unit[1] to ((Life of Unit[1]) - (75.00 x (Real((Level of Black Arrow for Unit[1])))))
Wait until ((Unit[2] has buff Black Arrow(custom) ) Equal to True), checking every 0.10 seconds
Unit - Cause Unit[1] to damage Unit[2], dealing (75.00 x (Real((Level of Black Arrow for Unit[1])))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the origin of Unit[2] using Abilities\Weapons\AvengerMissile\AvengerMissile.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of Unit[2]) Less than 5.00
Then - Actions
Set Point[1] = (Position of Unit[2])
Unit - Cause Unit[1] to damage Unit[2], dealing 500.00 damage of attack type Spells and damage type Normal
Unit - Set life of Unit[1] to ((Life of Unit[1]) + (90.00 x (Real((Level of Black Arrow for Unit[1])))))
Unit - Create 1 Dummy for (Owner of Unit[1]) at Point[1] facing Default building facing degrees
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Unit - Add Black Arrow(dummy) to (Last created unit)
Unit - Set level of Black Arrow(dummy) for (Last created unit) to (Level of Black Arrow for Unit[1])
Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
Special Effect - Create a special effect attached to the origin of Unit[1] using Abilities\Spells\Undead\DeathPact\DeathPactTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at Point[1] using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Point[1])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 75
(Unit[2] is A Hero) Equal to True
Then - Actions
Unit - Set life of Unit[1] to 100.00%
Special Effect - Create a special effect attached to the origin of Unit[1] using Abilities\Spells\Items\AIil\AIilTarget.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Else - Actions
It causes caster to suffer some damage when casting this, also damages the target for same amount as life loss.
Target will get a few second armor reduction.
If the targeted unit dies by black arrow, caster gains more life back than the spell costed
Also if unit dies, here is a dummy to cast howl of terror, that only reduces armor of nearby units
If unit HERO dies by arrow there is 75% that the caster will regain full life
Also you can't cast this spell if your life is to low
Its a tricky spell
I hope i didn't forgot to point something out :S
I don't have that much time that i had a few months ago D:
Now i need a tooltip and its done..
Edit:
only ~5 people joined?
Dont use begin casting an ability... Use Starts the effect of an ability, otherwise your spell could fail occasionally. Thats the first I can think of![]()
(Life of Unit[1]) Greater or equal to (75.00 x (Real((Level of Black Arrow for Unit[1]))))
I will pwn 'em xD
Everyone will pwn me, i all ready know that D:
with this attitude for sure ;P some good motivation is always best!
lol, I started with my ability today and I nearly finished it ... that means it is not surprising enough! ARGH, more, more, more features!!!!!!!!!!!!
What you making?
Oh noez, don't wanna spoil
Edit: But be sure it will be a lightning spell ^^
hm, if i had a good idea i was in, eh
but have none yet, i look @ this later ^^
then you have to hurry6 days left, that is not much for thinking of an idea, triggering it, fixing all bugs and be 100% sure it works!! ^^

Im done with scipt, but need to fully document 326 lines of Jass![]()
