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

multi problems

Status
Not open for further replies.
Level 2
Joined
Sep 3, 2004
Messages
12
HI
i am trying to make a cripple strike for my hero .I want it that every time that he hit critical strike on target he cast a cripple too but i dont know what trigger do i have to use.
i cant use unit -unit starts the effect of ability
becouse critical is not a casting ability.

AND

do you ppl know any map that is not protected and it has a good heroes and triggers so i can see how it is done.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
I know only how to make a cripple strike without stacking with Critical Strike. Just use the Orb of Lightning (or Orb of Slow) skill but change the chance of succees and the ability (instead of hte purge/slow stuff put Cripple). This should do it! Stacking with Critical Strike... Dunno! Does anyone know how to do THIS?
 
Level 2
Joined
Sep 3, 2004
Messages
12
knives armor

well i have another problem i maked knives armor and i wanted it to cast a fan of knives every 2 sec for 30 sec i have made this code :
Events:
unit - a unit starts the effect of an ability
Conditions:
- (ability being cast) Equal to knive armor
""based on frost armor""
Actions :
- For each (integer A) from 1 to 15,do (actions)
loop-actions:
unit -create warden for (triggering player) a(target point of ability being cast) facing default...
unit-add fan of knives to (last created unit)
unit-order (last created unit)to night elf warden-fan of knives
unit -remove (last created unit) from game
wait 2.00 seconds

well it doesnt work dont know why it only comes once .I tried to make my own variable but it still dont work :cry:


plz anwser my other questions too"!" :wink:
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
First of all Warden is not the best. Do a Dummy unit with 0.01 or something collision and size (as small as possible - ASAP :lol:) and give it neutral Fan of Knives. Create it at position of unit and Unit - Hide (last created unit). Order the unit to cast Fan of Knives but DO NOT remove it immediately. Wait 1.00 seconds and THEN remove it. Then wait another 1.00 seconds and repeat the trigger. It should work!
 
Level 3
Joined
Jul 17, 2004
Messages
57
i know who to do the criticle strike: when then hero attax, the trigger calculates a random number between 1 and 100 if its =< 15, the trigger creates a dummycaster to caster cripple and then the trigger damages the target unit again by the the damage the unit did before, and creates a floting text msg with #dmg+! maybe the castersystem is useful for sth. like this.
 
Level 2
Joined
Sep 3, 2004
Messages
12
thanks guys now my knive armor is working . Can someone tell me how do i do this random thing . well i am a noob so i dont get it ,what trigger do i have to use ,conditions and actions. plz write some short code .


well i am a noob so i dont know this things yet. :(
 
Level 3
Joined
Jul 17, 2004
Messages
57
u could make a JASS fuction for chance and call it with a # for %

function chance takes integer x returns boolean
if GetRandomInt(1,100)<=x then
return true
else
return false
endif
enfunction

how to call this function with (customscripts in your trigger):
if chance(#) then
if the fuction returns true (%cance) the then action are executed
as event unit attacks, ofcours
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Hmm... I know NO Jass so I cannot help you with this but I kinda know Triggers (and even there I lack some stuff... :p) and I trust them a lot, though they can sometimes lag and you cannot control as much as you can control with JASS. I wish I knew Jass, but since I don't know and I'm too lazy to learn, I don't mind not really knowing it... Got something, right? :roll:
 
Status
Not open for further replies.
Top