King.Sky_Gem
New Member
- Reaction score
- 2
This is only supposed to work for one person, thank you both for more feedback
i think your brackets are wrong..
what you said is the level of the ability x10.
---
i presume u want this then:
(Random real number between 1.00 and 100.00) Greater than or equal to ((Real((Level of Critical Strike for (Attacked unit) x 5.00) + 5.00))
---
also sentrywiz's method would only work for one player..
Ahh I found one problem:
There are 3 different wand of illusions (each one is stronger than the other one). One for each level of the ability.
You really should read the thread with the triggers a little more. If you had looked at King's earlier trigger you would have noticed that he is giving three different abilities to the dummies for each level.Now your telling me? -.-
You really should read the thread with the triggers a little more. If you had looked at King's earlier trigger you would have noticed that he is giving three different abilities to the dummies for each level.
There is still a way to use an easy for loop though. Just assign the abilities to an ability array.
OK, sorry I didn't say before, I'm a little tired.
My mistake, I meant 3 different items.Yeah, I should have. Though, he clearly said using wand of illusion, not abilities.
this isnt that much harder then..
just make 3 IF/THEN/ELSE statements and then show the different abilities/items.
or am i missing something?
Level 1: 10%
Level 2: 15%
Level 3: 20%
Order (Last created unit) to cast (Last created item) on (Attacking unit).
i dont know if this will work, iv never tried it.
I would like it if the wands deal a little extra damage
TABLE OF CONTENTS - What needs to be changed
- Priest is the dummy unit. He is also responsible for the whole thing with the items. He has locust and inventory (hero) while model is bugger so it cannot be seen. Modify those if you want it changed
- Mountain King is just the hero for testing. Bash is the ability I chose to test on. Modify those with your hero and your ability.
- Removing the following line will give you a new possibility, Illusions have the same chance as the hero and can possibly be replicated. Remove it if you want illusions to have 10/15/20% chance of creating an illusion of the illusion. If you don't want that, just leave it as it is.
Trigger:
- ((Attacked unit) is an illusion) Equal to False
- The following lines are just for testing. You can remove them all. Timer Window displays the time before the trigger can be used again. The first game message displays the chance of the current level of the ability and the second displays the item the Priest has before it is destroyed and before it casts the item on the Mountain King.
Trigger:
- Countdown Timer - Create a timer window for (Last started timer) with title Ability Off For
Trigger:
- Game - Display to (All players) for 5.00 seconds the text: (Illusion Proc Chance: + (String((((Level of Bash for (Attacked unit)) x 5) + 5))))
Trigger:
- Game - Display to (All players) for 2.00 seconds the text: (Priest has item: + (Name of (Last created item)))
- Three items for Wand of Illusion were created, two custom and the original ones. I've also edited the ability "Item Illusions" you can find in Special>Items in the ability section. The following line checks the level of the Bash ability for Mountain King and therefor creates one of the items in the array. Modify this if you wish, be careful to not remove the items or add them a different value.
Trigger:
- Set ItemArray[1] = Wand of Illusion
- Set ItemArray[2] = Wand of Illusion#2
- Set ItemArray[3] = Wand of Illusion#3
- If you want to edit the chance for the ability, tinker with the formula, create your own or ask around the forum to help you out:
Trigger:
- (Random real number between 1.00 and 100.00) Less than or equal to (Real((((Level of Bash for (Attacked unit)) x 5) + 5)))
- You will find all of the items in the item section. One is the original and two other are under custom. Same for their abilities, one is original and the two other are in custom.
Trigger:
- Hero - Create ItemArray[(Level of Bash for (Attacked unit))] and give it to (Last created unit)
I've tried this before, it hasn't ever worked for me.