- Joined
- Nov 4, 2006
- Messages
- 266
How to make a real grenade spell
By Kidd|WhiteHeaven|
Contents
Exploding grenade on contact
Exploding grenade after a few seconds
This is pretty much a short tutorial, but this should probably work on making a real grenade spell using GUI. I dont have my WE open right now but i can remember a few things.
Requirements
Grenade Model - Link: http://hiveworkshop.com/resources_new/models/2634/
Exploding Grenade on Contact
Step 1: Making the Spell
Base the spell on Cluster Rockets(my suggestion), and make it deal no damage each level, and no AoE. Make Stun Duration 0.00.(real grenades DONT stun!) Then just add it to the hero.
Step 2: Functioning the damage and area
First, before making the damage and aoe change each level, you must first set its damage and its aoe. In the Initiallization trigger, add Set (variable name) = (number) for 2 things:
1. Radius
2. Damage
So you should have something like this added in your map init trigger.:
This step is pretty much simple. Make another trigger, name it GLvl or whatever you want to name it.
For the events, use the event "Unit - Learns a skill". Then in the conditions, put (Learned Hero Skill) equal to (Grenade).
Last, make 2 Set variable triggers. One for the damage, the other for the radius. Do Set DMGLVL = DMGLVL + (your number of choice) then Set RADILVL = RADILVL + (your number of choice). MAKE SURE YOU HAVE THE DMGLVL AND RADILVL AS A REAL! This is what it should look like, this is my example:
Now, just make another trigger, name it whatever you want. The event should be Unit - Begins Casting an Ability. Conditions should have (Ability being Cast) equal to (Grenade). Action WILL include this function: Unit - Make (Caster Unit) deal damage in a RADILVL of DMGLVL Attack Type Pierce Spell Type Fire. Now, it should look something like this:
Making the Grenade wait a few seconds to explode
Just make another grenade trigger, copy the increase dmg n area trigger, and make a new trigger. Name it w/e u want. The events should have this: Unit - Begins casting an ability. And the conditions should have this: (Ability Being Cast) equal to (Grenade). Actions include this:
Unit - Create 1 Grenade for (Owner of (Casting Unit)) at (Target point of ability being cast) facing (Position of (Triggering Unit))
Wait - Wait 4.00 seconds
Unit - Make (Last Created Unit) to damage a circular area after 0.01 seconds of RADI at (Target point of ability being cast) dealing DMG of attack type Pierce and spell type Fire.
Unit - Explode (Last Created Unit)
And it should look like this:
NOTE: Both grenade spells i put in the demo map are in the same button, so ill fix it later.
By Kidd|WhiteHeaven|
Contents
Exploding grenade on contact
Exploding grenade after a few seconds
This is pretty much a short tutorial, but this should probably work on making a real grenade spell using GUI. I dont have my WE open right now but i can remember a few things.
Requirements
Grenade Model - Link: http://hiveworkshop.com/resources_new/models/2634/
Exploding Grenade on Contact
Step 1: Making the Spell
Base the spell on Cluster Rockets(my suggestion), and make it deal no damage each level, and no AoE. Make Stun Duration 0.00.(real grenades DONT stun!) Then just add it to the hero.
Step 2: Functioning the damage and area
First, before making the damage and aoe change each level, you must first set its damage and its aoe. In the Initiallization trigger, add Set (variable name) = (number) for 2 things:
1. Radius
2. Damage
So you should have something like this added in your map init trigger.:
- Events
- Map Initialization
- Conditions
- Actions
- Set DMGLVL = 100
- Set AoELVL = 500
This step is pretty much simple. Make another trigger, name it GLvl or whatever you want to name it.
For the events, use the event "Unit - Learns a skill". Then in the conditions, put (Learned Hero Skill) equal to (Grenade).
Last, make 2 Set variable triggers. One for the damage, the other for the radius. Do Set DMGLVL = DMGLVL + (your number of choice) then Set RADILVL = RADILVL + (your number of choice). MAKE SURE YOU HAVE THE DMGLVL AND RADILVL AS A REAL! This is what it should look like, this is my example:
- Events
- Unit - Learns a Skill
- Conditions
- (Learned Hero Skill) equal to (Grenade)
- Actions
- Set DMGLVL = DMGLVL + 250
- Set RADILVL = RADILVL + 300
Now, just make another trigger, name it whatever you want. The event should be Unit - Begins Casting an Ability. Conditions should have (Ability being Cast) equal to (Grenade). Action WILL include this function: Unit - Make (Caster Unit) deal damage in a RADILVL of DMGLVL Attack Type Pierce Spell Type Fire. Now, it should look something like this:
- Events
- Unit - Begins to cast a spell
- Conditions
- (Ability Being Cast) equal to (Grenade)
- Actions
- Unit - Make (Casting Unit) deal damage in a RADILVL of DMGLVL Attack Type Pierce Spell Type Fire
Making the Grenade wait a few seconds to explode
Just make another grenade trigger, copy the increase dmg n area trigger, and make a new trigger. Name it w/e u want. The events should have this: Unit - Begins casting an ability. And the conditions should have this: (Ability Being Cast) equal to (Grenade). Actions include this:
Unit - Create 1 Grenade for (Owner of (Casting Unit)) at (Target point of ability being cast) facing (Position of (Triggering Unit))
Wait - Wait 4.00 seconds
Unit - Make (Last Created Unit) to damage a circular area after 0.01 seconds of RADI at (Target point of ability being cast) dealing DMG of attack type Pierce and spell type Fire.
Unit - Explode (Last Created Unit)
And it should look like this:
- Events
- Unit - Beings casting an ability
- Conditions
- (Ability Being Cast) equal to (Grenade)
- Actions
- Unit - Create 1 Grenade for (Owner of (Casting Unit)) at (Target point of ability being cast) facing (Position of (Triggering Unit)
- Wait - Wait 4.00 seconds
- Unit - Make (Last Created Unit) to damage a circular area after 0.01 seconds of RADI at (Target point of ability being cast) dealing DMG of attack type Pierce and spell type Fire.
- Unit - Explode (Last Created Unit)
NOTE: Both grenade spells i put in the demo map are in the same button, so ill fix it later.
Attachments
Last edited: