• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell Help

Status
Not open for further replies.
Level 2
Joined
Mar 12, 2006
Messages
19
I need some advice on the creation of a couple skills/spells. (not using jass)

First, how could I approach a strafe (a skill where you shoot arrows at multiple enemies- this was used in diablo duels)? Basically, depending on how many enemies are near, you shoot multiple arrows at once in different directions. I should be able to set a maximum targets though. And be able to turn it on/off, like freezing arrows.

Second, also thinking of diablo here, how could I approach a "blaze," a fire sorc. skill where the sorceress leaves a trail of fire? I would like to base this off burning oil if at all possible, as this would allow me to easily change the duration and damage of the fire. However, triggers if I must. Just note that I don't want fire to stack... that is, I want an even trail of fire. I don't just want a trigger where fire is generated wherever she is standing, cuz if she is standing still obviously you get a really thick, stacked fire. I want her to leave a nice trail. Any idea how this could be done? (again, basing off burning oil is good, because I don't think there's a way of placing natural fire via triggers, I think you'd have to use a unit with a fire model). Would be nice to turn on/off, such as in freezing arrows.

Next, is there a way of adding features "data" to an existing spell? For example lets say I have inner fire but want it to give me extra armour. Is there a way of adding a data line that would let me tweak that, instead of finding a new base spell? (note: that example was random, that would obviously be quite easy)

Lastly, does anyone know somewhere where the codes for spell descriptions are listed? For example, if I want to say in my description of "strafe," Lvl 1: X dmg; Lvl 2: X dmg, Lvl 3: X dmg... the codes that would let me link the description with the data/stats

Thanks in advance for assistance on any of this
Kevin
 
Last edited:
Level 2
Joined
Mar 12, 2006
Messages
19
@squiggy and restor, that seemed to solve the strafe. I'll use the spellbook for the active/passive switch (never knew it cud invisibly work).

However, is there any way I can have only two arrows shoot out, instead of 3+? I would have liked to start the spell off with 2.

As for the blaze, here's the description Blizzard gives:

"Using this spell, the Sorceress ignites the very ground she walks upon, leaving behind a blazing wall of flame"

this can be a bit confusing so

This is what I don't want:

"every X seconds put flames at position of unit that cast blaze"

This would be better:

"when unit that cast blaze moves, it produces flames in its wake"

now that i think of it, it's probably quite doable, mind you im not very good with the directions and distances needed to produce the flames. Plus, I don't know how to produce natural flames, as opposed to units (or at least I haven't seen the trigger yet)

Kevin

EDIT: @ squiggy, do you use jass for ur spells? some very nice stuff
 
Last edited:
Level 6
Joined
Jun 14, 2008
Messages
176
If you don't want to do Strafe using triggers, base it off of something like "Robogoblin" or Metamorphosis(with 0 duration, so that it lasts forever).

Also, if you are using something other than "Robogoblin", make sure you allow a player to disable the transformation in the gameplay constants. So if you used Metamorphosis, make sure you can disable it through gameplay constants.

Now, simply just copy and paste the hero you want to give Strafe too.

For example, if you had a hero named "Archer", just copy and paste Archer so there's 2 Archer. You want to give the copied Archer the Strafe(barrage) ability.

Add a text to the "Text - Editor Suffix", named "Strafe level 1" or something.

Add the modified Barrage ability to the copied unit(in this case, Archer (Strafe Level 1)).

Now, put the "Alternative form" unit as "Archer (Strafe Level 1)" for the "Robo Goblin"(Or whatever transformation you want to use). Put the regular "Archer" as normal unit.

Set so that the duration is 0, and you're done.

You can add more levels by making more copies of your hero(then setting them to the alternative forms at higher levels).


BTW,I think the min amount of extra shots you can have for Barrage is +2 extra shots. So if you want to have only +1, you can't do it seems.

Second, also thinking of diablo here, how could I approach a "blaze," a fire sorc. skill where the sorceress leaves a trail of fire? I would like to base this off burning oil if at all possible, as this would allow me to easily change the duration and damage of the fire. However, triggers if I must. Just note that I don't want fire to stack... that is, I want an even trail of fire. I don't just want a trigger where fire is generated wherever she is standing, cuz if she is standing still obviously you get a really thick, stacked fire. I want her to leave a nice trail. Any idea how this could be done? (again, basing off burning oil is good, because I don't think there's a way of placing natural fire via triggers, I think you'd have to use a unit with a fire model). Would be nice to turn on/off, such as in freezing arrows.

Well, I think I can think of something by using "Flamestrike" as a base ability.

Add "Flamestrike" to an item. Make Flamestirke have zero casting time(also zero cooldown).

Edit the Flamestrike so it looks like burning oil.

Make a trigger something like this

  • FlameTrail
    • Events
      • Unit - Hero Starts the effect of an ability
    • Conditions
      • (Ability being cast) Flame Trail
    • Actions
  • (Edit the FlameCounter variable to how many seconds you want it to last)
    • Set FlameCounter = 5
    • Turn on Trigger FlameTrail 2

  • FlameTrail 2
    • Events
      • Time - Every 1 seconds of game time
    • Conditions
      • Flamecounter = Greater than 0
    • Actions
      • Set FlameCounter = (FlameCounter -1)
      • Hero - Create Flamestrike(Item) and give it to (Hero)
      • Hero - Order Hero to use (Last created item) on Position of Hero
Of course, this means that the flame will work even when the hero is standing, but I can try to fix that later(when I write the trigger using World Editor).

I just wrote the trigger quick(as you see, I didn't use the exact name for some of the functions).

If you don't get what I did with the trigger(and you don't know how to do it yourself), I can try to make the actual spell with actual triggers(instead of just writing them out).

Next, is there a way of adding features "data" to an existing spell? For example lets say I have inner fire but want it to give me extra armour. Is there a way of adding a data line that would let me tweak that, instead of finding a new base spell? (note: that example was random, that would obviously be quite easy)
I don't think so. You have to do it by triggers, using extra abilities.

So if you wanted Inner Fire to give your own hero a passive +armor bonus when he/she learns it, you'll have to do it by triggers.

Lastly, does anyone know somewhere where the codes for spell descriptions are listed? For example, if I want to say in my description of "strafe," Lvl 1: X dmg; Lvl 2: X dmg, Lvl 3: X dmg... the codes that would let me link the description with the data/stats
Problem is, some of the lines don't work correctly.

For example, some spells like Spike Armor(from Nerub Hero) for example, after level 3, it simply just says "Give + 0 armor, and deflects 0% damage).

Some of them are bugged, I think it's just easiest and do it the "lazy" way and just say "For levels 1-5, allows you to shoot 3/4/5/6/7 arrows per attack" and paste that to every field.
 
Last edited:
Status
Not open for further replies.
Top