Warcraft III resources & community, 2003–2006 · archived

multi problems

12 posts
#1

multi problems

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.
#2
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?
#3

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:
#4
because you have to create a life timer for 30 seconds, not remove it right away
#5
for what unit or variable ? how do i do that .... :?:
#6
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!
#7
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.
#8
Pretty cool... I usually use random as well but never tried such smart %. I usually used for 25% a number between 1 and 4 and choose if the number is equal with, and I was choosing any number, like 3 for example. But this technique is better.
#9
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. :(
#10
You should create a variable and give then do action "Set Rand_Var = Random Integer number between 1 and 100". After that you check if Rand_Var is Lower or Equal to x, where x is the chance percent. Still, I'm not sure how to do this. Never tried a Critical Strike like.
#11
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
#12
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: