• 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.

8 questions help plz

Status
Not open for further replies.
Level 2
Joined
Oct 27, 2005
Messages
6
well this is my second time writing this so i might have left something out.so more then likely i'll be editing this afew times.well i have afew spell related problems and hopefully you guys can help.hopefully this time my post doesn't mysteriously get erased.


1.i can make a spell such as storm bolt do damage depending on a units stats.
the problem is that when i do it only works half the time can any1 explain why that happens?

2.when i make a spell described in quesiton 1 when i use storm bolt on an enemy unit the enemy unit takes damage before they even get hit by the storm bolt. does any1 know a way to fix this?

3.i tried recreating vexorians hammer spell by creating a dummy unit and having it cast thunderclap at target location.but the problem is that there is no ground smash animation, aslo the same problem as question two the thunderclap would happen before the target gets damaged. how can i fix this?

4.when i make a spell such as thunder clap do damage based on stat... i use unit-damage area it also damages allied units and caster itself, how can i fix it so it only damages enemy units?

5.i want to make an rpg type map and everyone knows that all rpgs have more then 3 stats... so i tried to make my own stats using triggers.. i made a variable for the stat being "hack" whenever you buy a "hack" upgrade the value goes up. for some reason i can't get a spell to do damage based on this stat,unless i upgrade "hack" to like 99999 but it only works once in a while just like question 1.how can i fix this and is this stat system even possible?

6.if i upgrade the stat "hack" like 70 times the game starts to lag really hardcore.like you can't eve move, everything is in slow motion. does any1 know how to fix this?

7.i would also like to create a stat called "dex"."dex" will be the units accuracy.when a unit attacks or casts a spell i woud an equation something like this (attacking unit "dex"- enemy agility = chance to hit) so 100 dex - 50 agility = 50% chance to hit, or maybe something a bit more complex but you get the point. does any1 know how i can do this cause have no clue?

8.also i want to create a stat thats called "magic resistance" this stat increases magic regen,reduces casting time for spells and decreases spell damage taken. i know how to do all of this but is there an easier way to reduce cast time with triggers without having to create like 99999999999999999 of the same spell. also is there a way to get spell damage to decrease by a number instead of %.

well thanks for the help hopefully you guys can help me with this
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
1.i can make a spell such as storm bolt do damage depending on a units stats.
the problem is that when i do it only works half the time can any1 explain why that happens?

No, since you're not telling us the way you did it. The best option would be to show the trigger you have.

2.when i make a spell described in quesiton 1 when i use storm bolt on an enemy unit the enemy unit takes damage before they even get hit by the storm bolt. does any1 know a way to fix this?

You can use the Wait for Condition action.

  • Wait until (((Target unit of ability being cast) has buff Stunned (Pause)) Equal to True), checking every 0.50 seconds
To obtain this condition, use a Boolean Comparison and choose Unit - Unit has Specific Buff. 0.50 runs a bit fast but it should be enough for the storm bolt to get to the target. This could be buggy, for when you use Wind Walk, the Storm Bolt may fail and the trigger will keep running, it sometimes happens in BNet games; when the Storm Bolt is about to hit the Blademaster, bam, he wind walks and it fails.

3.i tried recreating vexorians hammer spell by creating a dummy unit and having it cast thunderclap at target location.but the problem is that there is no ground smash animation, aslo the same problem as question two the thunderclap would happen before the target gets damaged. how can i fix this?

As I said, use Wait for Condition.

4.when i make a spell such as thunder clap do damage based on stat... i use unit-damage area it also damages allied units and caster itself, how can i fix it so it only damages enemy units?

Use the Condition Unit - Unit Belongs to an Enemy of Player.

5.i want to make an rpg type map and everyone knows that all rpgs have more then 3 stats... so i tried to make my own stats using triggers.. i made a variable for the stat being "hack" whenever you buy a "hack" upgrade the value goes up. for some reason i can't get a spell to do damage based on this stat,unless i upgrade "hack" to like 99999 but it only works once in a while just like question 1.how can i fix this and is this stat system even possible?

I didn't understand this quite well. You could use the system based on one stat, and give every hero's primary attribute that stat.

6.if i upgrade the stat "hack" like 70 times the game starts to lag really hardcore.like you can't eve move, everything is in slow motion. does any1 know how to fix this?

The trigger leaks heavily then. You should post the trigger here so we may help you fix the leaks.

7.i would also like to create a stat called "dex"."dex" will be the units accuracy.when a unit attacks or casts a spell i woud an equation something like this (attacking unit "dex"- enemy agility = chance to hit) so 100 dex - 50 agility = 50% chance to hit, or maybe something a bit more complex but you get the point. does any1 know how i can do this cause have no clue?

I think it's possible, but it requires alot of trigger work.

8.also i want to create a stat thats called "magic resistance" this stat increases magic regen,reduces casting time for spells and decreases spell damage taken. i know how to do all of this but is there an easier way to reduce cast time with triggers without having to create like 99999999999999999 of the same spell. also is there a way to get spell damage to decrease by a number instead of %.

Increasing magic regeneration is possible, I think. But Casting time is a bit hard. You could wait until the first seconds are done and use an action to restore ability cooldowns, but this would restore ALL of the abilities' cooldowns so it's not effective. As for resistence against spells, it could be easy if they were triggered.




I know these informations might not help you much, but I don't write JASS nor do I know the triggers from upside down, so I hope I've helped at least a bit.
 
Level 2
Joined
Oct 27, 2005
Messages
6
well about the casting time i think your thinking about the cooldown. i mean i would put the casting time for like 5 secs and "magic resistance" will lower the time.. you know like flame strike it has a casting him before it actually does anything. and the magic damage lower and dex your telling me its possible but your not giving me a thoery to work with,your simply telling me it can be done.about the trigger that leaks... i didn't add it to upgrade yet. but all i did was create a real variable and when i type "h" it would increase the value of "hack" by 1. its so simple so i have no idea how to fix it. about the way i did the storm bolt stat damage was simple

unit beings casting an ability

ability equal to storm bolt

Unit - Order triggering unit to Damage Target and use Conversion - Integar to Real

but yeah your post helped and thanks
 
Status
Not open for further replies.
Top