• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Need help wif 2 Spells (think they need JAZZ)!!

Status
Not open for further replies.
Level 3
Joined
Sep 5, 2004
Messages
32
The first spell delays the time of damage taken. Meaning from time of activation there would be a countdown, of 60 seconds, all dmg taken during the period = 0. Then after timer expires all damage taken during the period will be returned.

Lv 1: 60 sec delay
Lv 2: 70 sec delay
Lv 3: 80 sec delay

The second spell is a random summoning spell. As in there would be 3 candidates to choose from but by the com.That means which one would be summoned if you use the spell would be totally at random.

Lv1: summons bear, hawk or serpent
Lv2: summons bear, hawk or serpent (stronger)
Lv3: summons bear, hawk or serpent (even stronger)
Lv4: summons bear, hawk or serpent (strongest)
 
Level 2
Joined
Sep 10, 2004
Messages
19
Im not sure about the damage delay but the summon can be done with triggers:

event:
unit casts a spell

condition:
spell == Summon

actions:
int variable = random int between 1 and 3
//This will determine what type of animal is created

if spell lvl =1 //spell lvl is the level of the summon spell
{
if variable = 1 create bear (weak)
if variable = 2 create hawk (weak)
if variable = 3 create serpent (weak)
}
if spell lvl = 2
{
if variable = 1 create bear (stronger)
if variable = 2 create hawk (stronger)
if variable = 3 create serpent (stronger)
}
//and so on
 

ctb

ctb

Level 3
Joined
Jul 26, 2004
Messages
21
You don't even need triggers. Just use archimondes "dark portal" ability. Set the spawned units to the units you want to come random. And finally set max and min number of units to 1.
 
Status
Not open for further replies.
Top