The caster Jumps In the air by using his MIND power with a distance of 129/465/1024 and when the unit lands it deals strengh of unit x level of ability for unit damage.
Features:
-mui
-leak free
-balanced
-hopefully easy to modify
-documentation in actual triggering
16:43, 14th Jun 2009
hvo-busterkomo: A decent jump spell, although there's definitely room for improvement.
First of all, you can't aim where the jump lands, and have to rely on yourself eye-balling a proper angle. Second, you can just use '0' as...
16:43, 14th Jun 2009
hvo-busterkomo: A decent jump spell, although there's definitely room for improvement.
First of all, you can't aim where the jump lands, and have to rely on yourself eye-balling a proper angle. Second, you can just use '0' as an instant height rate rather than 10^9.
this is the first time i do anything with height of a unit so don't kill me over the idea ^^'
(practice, so if u want to blame anyone for the idea blame Rmx lol)
Don't know what to think of this. Didn't look through triggering but by the way it jumps in a traingle and not a half circle you didn't use a formula. And you can't decide where to land other than you fly that distance. Meh, maybe a 3/5 dunno really.
Don't know what to think of this. Didn't look through triggering but by the way it jumps in a traingle and not a half circle you didn't use a formula. And you can't decide where to land other than you fly that distance. Meh, maybe a 3/5 dunno really.
you do realize that jumps that go forward in real life don't go in a circle but more like a triangle ^^, but it does jump in a circular way. but i didn't use the formula because im trying to find another way but until now each level will increase distance. but like i said dont judge me on idea
Well real life jump certainly doesn't go like this:
---------------------x
------------------x----x
---------------x--------x
------------x------------x
---------x----------------x
X marks the caster.
Still it works fine for what it should do and it's not a bad spell.
Well real life jump certainly doesn't go like this:
---------------------x
------------------x----x
---------------x--------x
------------x------------x
---------x----------------x
X marks the caster.
Still it works fine for what it should do and it's not a bad spell.
Well to make formulas on that you need some good parabolic knowledge... but yes it is possible
EDIT:
Brief Review:
Unit - Add Crow Form to Caster[CD]
Animation - Change Caster[CD] flying height to formula[CD] at 1000000000.00
Unit - Remove Crow Form from Caster[CD]
Well as I've never worked with heights before I might be wrong, but I think Crow Form could be added only once in the main trigger and then removed, and the the height could be manipulated in the loop trigger without having to add it and remove it every 0.03. However, I'm not sure...
It damages your ally units...
Jump is nice, but something just doesn't seem right with it :S
As already commented, you might want to adjust it so that the unit point where he wants to jump to and not where he wants to jump from.
Set Group[CD] = (Units within 300.00 of Point_1[CD])
Unit Group - Remove Caster[CD] from Group[CD]
Well instead of this, use this:
Set Group[CD] = (Units within 300.00 of Point[CD] matching (((Matching unit) belongs to an enemy of (Owner of Caster[CD])) Equal to True))
This solves the caster and his allies problem...
But, you still need to add some conditions such as "Matching unit is a structure/false" "... is a flying unit/false" etc...
It's leakless and MUI, yes.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-------- this is the clean up function ( this prepares for next cast) --------
Unit - Turn collision for Caster[CD] On
Well I think you need to turn the collision on before this If/Then/Else, otherwise if another instance of the spell is running than the collision would stay off, and I don't think we want that...
That's all for now
Good job aaron!
And the thing I like about your trigger, simple to read, neither overcrowded with comments nor lacking comments
But I just noticed there's no documentation on how to import... provide some
LOL. Ummm basic physics. when you jump in a direction your horizontal speed does not change (It actually does, though is negligable because the only force reducing your horizontal speed is wind resistance) and your vertical speed is constantly reducing due to gravitational force. Thus when your vertical speed reaches 0 (The top of your arc, jump) you begin moving downward. And then your speed Increases as you move downward, completing the arc.
Unit - Add Crow Form to Caster[CD]
Animation - Change Caster[CD] flying height to formula[CD] at 1000000000.00
Unit - Remove Crow Form from Caster[CD]
Yes the crow form can be added and removed initally, all it does is adds that line of code into the units Overall code so that this aspect of the unit can be changed.
Also, something Septimus actually taught me, Change that FH rate from 10000000000000000 to 0, Works better and LOOKS better.
But as far as the spell... If its supposed to be an ability from his MIND power, why is the Smash Damage based off of strength?? :O
I know its an easy fix, but it bugged me so i thought i would say something.
Spell itself is good, but I'll point a few things out:
The jump distance is constant, maybe make it random, or fix it to the point where it was casted.
Casting it is difficult, since you must click in front of the caster(if you like it that way, use "no target required" for a baser spell and then work with the unit's facing (e.g. Taunt, Fan of Knives)).
Tooltip has a little problem
Make unlimited visibility across the map ^^
For now 3/5 (but note Jump spell would hardly obtain 5/5 because there are many jump like spells)
Well real life jump certainly doesn't go like this:
---------------------x
------------------x----x
---------------x--------x
------------x------------x
---------x----------------x
X marks the caster.
Still it works fine for what it should do and it's not a bad spell.
Wow Guishiu, hehe man you're getting goood with triggering and apparently your good with physics too...
Yeah let me emphasize on the arc issue, taking horizontal speed constant, you'd like to be decreasing vertical speed by a constant value on the way up, and then increase it by a constant value on the way down (acceleration is zero mid-air).
Well now maybe someone would say: what about air resistance!?
What I said usually applies theoretical, but the air-resistance applied on a "standing" body is merely anything to mention.
aaron I'm sure you have the math to do what me and Guishiu are explaining.
If not, well then you can PM me and I'll send you like 2 formulas which would let you do the whole thing
@ Yearight:
well, that's how a jump occurs in the Looney Tunes world
I dunno if you're being sarcastic? Emotional context is lost through written communication...
Ummm would you happen to know the constant? I forgot it. Acceleration due to gravity.... .98m/second (squared) or something like that.
*Nevermind I just looked it up. I LOVE the Interweb it's 9.8meters/second (squared)
Been 3 years since i had physics... Not too far off =D
And yes the value of gravitational acceleration is around 9.8m/s2 depending on altitude, but that won't do any good for the triggers for we're not using realistic units in triggers... so it's more of common sense & trial-&-error
h - max height
cd - current distance
d - max distance
zl - location offset
That way it makes perfect parabola even on strange terrain
I had a good example of it but i lost all WE stuff when i reinstalled the system...
Adding Z of a location is good for colision checking...
Adding gravity as a factor can be good also
EDIT:
Not MUI as said before.
The "code" is pretty mesy i couldn't figure out what is what the first time i looked at it...
The more i look at the code the more i want to return to jass coding...
also stop with the "your spells are never MUI stuff" lol your really pissing me off -_-
but thanks for the comments, remember this is my first height spell and i tested the spell and the sad thing is it is mui . but somtimes it can spam effects at a random chance so i will fix that.
and my spell doesnt damage the caster if you use both casters they CAN damage each other but not themselves
@kingz and Rmx ---------> here is your screen shot proof of both casters in the air when the spell was cast at the same time ^^
Well, i have a jump trigger, with parabola, u can choose to where jump, depending on the level, and MUI.U can use this and add the things u want, will be cool =)
Are you holding down subdued anger from the Yearight vs Dimitri231 battle? (That Spider spellpack thread) ;D I don't see you talking like that very much^^
Are you holding down subdued anger from the Yearight vs Dimitri231 battle? (That Spider spellpack thread) ;D I don't see you talking like that very much^^
You're asking me? I wasn't angry first place, I don't get angry easily...
And I didn't even remember what the problem was before you just mentioned it now
Nice spell idea, but since this is practice I hope you appreciate if I give you some hints:
-The spell seems to bug a bit, but I can't really figure why at the moment
So here are two pictures:
-In this pictures you can also see, that the spell damages everyone except the caster. You use:
Set Group[CD] = (Units within 300.00 of Point_1[CD])
Unit Group - Remove Caster[CD] from Group[CD]
Unit Group - Pick every unit in Group[CD] and do (Actions)
Loop - Actions
Unit - Cause Caster[CD] to damage (Picked unit), dealing (Real(Damage[CD])) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of (Picked unit) using Objects\Spawnmodels\Human\SmallFlameSpawn\SmallFlameSpawn.mdl
Special Effect - Destroy (Last created special effect)
You could use:
Set Group[CD] = (Units within 300.00 of Point_1[CD] matching (((Matching unit) belongs to an enemy of (Owner of Caster[CD])) equals True))
Unit Group - Pick every unit in Group[CD] and do (Actions)
Loop - Actions
Unit - Cause Caster[CD] to damage (Picked unit), dealing (Real(Damage[CD])) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of (Picked unit) using Objects\Spawnmodels\Human\SmallFlameSpawn\SmallFlameSpawn.mdl
Special Effect - Destroy (Last created special effect)
instead and add some conditions like unit is a building = false and so on...
-You set half jumps as a real, which should be an integer:
Set Half_jumps[CD_array] = ((Real(Jumps[CD_array])) / 2.00)
Jumps[CD] less than or equal to (Integer(Half_jumps[CD]))
-There is one thing which leaks I think:
Unit - Move Caster[CD] instantly to (Point_1[CD] offset by (Real(Jumps[CD])) towards angle[CD] degrees)
Simply set a location with the offset and move the unit there.
-Well about the half jumps you could easily use:
Jumps[CD] less than or equal to (Jumps[CD]/2)
However just a suggestion
-I think it damages the targets more than one time something like 2-3 times which i find weird.
Ok that's everything so far which really should be changed.
Now for some neutral comments: You can add Crow Form one time and you can always adjust a unit's flying height like mentionend before.
You can turn off collision in the init trigger and turn it off if CD_end equals 0.
I think in general this is a nice spell, I don't really think it's that bad, that the jump describes a triangle since we play a fantasy game and talk about mind powers, not an ordinary physical jump. And in the comments it reads: "this will help the caster know when he should let gravity pull him down " So obviously he just inverses gravity and moves
Well ok Special effects don't really look "mindy", neither does the caster^^ but anyway it's a fantasy game.... The thing about the target location: I think it's not much of a big deal. Simply go into Object Editor change spell to one targetting nothing, and modify the angle variable. So all in all good job.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.