News:

SMFNew Installed

+-+-

User+-

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Site Stats+-

Members
Total Members: 728
Latest: Cho
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 10932
Total Topics: 795
Most Online Today: 389
Most Online Ever: 854
(September 18, 2024, 07:49:37 am)
Users Online
Members: 0
Guests: 282
Total: 282

Author Topic: Weather skill that rains down random particles  (Read 2479 times)

0 Members and 133 Guests are viewing this topic.

Weather skill that rains down random particles
« on: »
I'm trying to create a weather spell for my druid (hail storm) and would like it to actually behave like a storm. The goal is to have randomly falling hailstones around the character that can hit enemies.

It seems that damage shapes will not be of any use as they are at specific locations. I thought about having an invisible pet to cast spells, but then the hail stones would always target units, but I want it to be random.

I tried to do it via missiles, and was somewhat close. By using gravity and almost a 0 velocity and a high position, I could get the particles to look good. Then I used a unit spawner with a great radius to randomly create the missiles. The problem I had was that the missile goes a certain distance and then dies. I could not get it to destruct upon hitting the ground. In the EVENT_MISSILEDIE I tried casting another spell that did a damage shape (like the embermage firebomb), but I found the particles did not line up with the damage. By turning on debug damage shapes, I saw that the damage shapes were all over the place, some oriented vertically, not on the ground!

Doing some debugging I think it is because the missile wants to travel a certain 2D distance and then die. I tried loading the MEDIA/MISSILES/MONSTERS/BOSS_STURM/BOSS_SHOT_FORWARD.LAYOUT (the only core missile I could fine with gravity) and found that if the max distance was increased, the "DIE" particle was rendered way beyond where the missile hit the ground. My conclusion was that the DIE event is not in the correct location when gravity causes the missile to collide with the ground.

I may just give up on this idea as it is my only spell that acts this way (I want to do a thunderstorm spell, but that would be easy since the lightning can target units and not miss). I'm curious though if anyone knows how I may get this to work so that the missile "detonates" when it hits the ground just by falling?

Thanks for any tips or suggestions.

Share on Bluesky Share on Facebook


Re: Weather skill that rains down random particles
« Reply #1 on: »
Okay, of course right after I posted this I got it to work (although not perfect). I just made the missile have no graphics and have it have a 0 max distance. Basically make it die right away. Then in the EVENT_MISSILEDIE event, spawn a skill. In that skill, have a layout with a sound, particle, damage shape and timeline. I activated the particle at time 0. I activated the shap and the sound at 0.45 seconds. Then I got a particle starting at 20 meters (y axis) and a velocity of -50. With a bit of playing around I found that it hit the ground at around 0.45 seconds. So I added other particles on the ground to start (delay setting) at 0.45. It then looks like the particle hit the ground. The not perfect part is that since it is based on time to hit the ground at time 0 and y axis 0, not all the terrain will be at 0. Some will higher or lower and thus the hit graphic will be off.

I'll have to play with some real terrain to see if it looks too bad to use in a skill.

At least it is working though.

Re: Weather skill that rains down random particles
« Reply #2 on: »
That sounds SO COOL Andrew! Any chance to see a video of it in action? ;)


Re: Weather skill that rains down random particles
« Reply #3 on: »
The not perfect part is that since it is based on time to hit the ground at time 0 and y axis 0, not all the terrain will be at 0. Some will higher or lower and thus the hit graphic will be off.

Try modeling your secondary skill after the vanilla meteor strike skill.

Re: Weather skill that rains down random particles
« Reply #4 on: »
I thought there was a missile property called 'Collide with World' or something like that which would make the falling missiles die when they hit the ground.  Not that you want to produce 2 different versions of the skill... but I believe the first option you tried out should be doable.

Good luck!  This sounds nice.

Re: Weather skill that rains down random particles
« Reply #5 on: »
I thought there was a missile property called 'Collide with World' or something like that which would make the falling missiles die when they hit the ground.  Not that you want to produce 2 different versions of the skill... but I believe the first option you tried out should be doable.

Good luck!  This sounds nice.

 If you look at meteor as an example, the vanilla skills fake the falling missile with a particle effect. They throw a particle straight down through the ground, which gets hidden from vision once it's below ground level. Then there's  a second "impact" particle that's got all its emitters down low to the ground. The only thing holding them together is a timeline. So, in fact, the timing of the impact is slightly wrong if the terrain height isn't 0, but no one seems to notice.

You certainly could stick the unit spawner up in the air and throw missiles down and collide them with the ground, but I wouldn't go through all that effort unless the timing came out noticeably wrong doing it the vanilla Runic way .


Re: Weather skill that rains down random particles
« Reply #6 on: »
oh hay guys :D, long time no see
anyway.

i feel like i gotta chime in here, since ive made a skill in the past that i think does exactly what you want.
take a look and see if it fits your description
you should take cthons advice and model the particles based on meteor, (falling component + the delayed explosion), 

for the delayed explosion you'll have to set the particles to "orient and spawn on ground"
this causes the particles to always appear on the highest terrain.
Heres my skill to preview

now, a sub skill should be set up to cast on each event missile die, and you have particles which will play on its events, one thing to note is that the falling part of the particles has to be set to go off after you spawn a 0 duration invisible dummy unit (using its death or spawn events to create the particles), why? the falling particles behave oddly if you implement them manually, they will sort of stick to the terrain and fall from different angles,
example
i just recently found this out and fixed it while i was making the gifs for this post lol
this part is just being pendantic and you dont have to do it, but it makes the skill look nicer when you use it on uneven terrain or near walls
hope this helps and good luck with your modding.
« Last Edit: March 14, 2016, 09:46:29 am by TwinkleToes »

Re: Weather skill that rains down random particles
« Reply #7 on: »
First of all welcome back Twinkle! It is really good hearing from you ;D!

Im sorry i cant really contribute technically to this discussion, but i just HAVE to say, Twinkle, THAT IS A FREAKISHLY AWESOME LOOKING SKILL  ??? :D !!!


Re: Weather skill that rains down random particles
« Reply #8 on: »
Im really looking forward to seeing how this turns out as I am making my own version of a ranger class and druid and ranger spells are traditionally similar. Weather magic etc!

There are so many great ideas and incredible talent here.
“Change is not always growth, but growth is often rooted in change."

Re: Weather skill that rains down random particles
« Reply #9 on: »
thanks phan :D

thats from my oldest class the plaguelord

 

Recent Topics+-