| 07-11-2005, 04:55 PM | #1 |
I got complicated with a trigger i tried to make which can certainly work. The spell is supposed to be channeling, and when you channel every 0.5 seconds your damage will increase by 1, until you stop channeling. when you stop it will go down every 0.5 sec until 0 bonus damage. I tried to do it, using the ability of item damage bonus and it worked, but it has some really annoying bugs, like, when you stop channeling it wont go down, or when it goes down, it wont go up again, etc. i already tried a unit stops casting an ability and a unit finishes casting an ability, still it gave me really annoying bugs.. anyone knows any similar trigger that does this, so i can learn it without bugs? *gets a headache from it*.. i deleted the damned trigger so i cant even post it here. basically its two triggers. one is begins channling an ability on event, and the other is finishes casting in ability/stops casting an ability. the actions of the trigger are as simple as it can get, using an integer from 1 to 50 and a 50 level damage bonus ability added to the caster, increasing evey 0.50 seconds.. |
| 07-11-2005, 07:55 PM | #2 |
Guest | Hmm nice idea about the spell but... i wouldent use the way you are using to give bonus attack, is and ability it can build up using pools, maybe, or it can build up just by default and not break down, like you could give +1 +1 +1 +1 +1 and -1 -1 -1 -1 -1 and in reaity it will be +4, kinda a bug, but You will always get this when giving a unit 2 of the same abilities. I would use a different method of giving a unit damage, 2 Ways i can think of doing this, -1- (Recommended) (Takes up lots of space) Make abilities like the 1s you spoke of, item, but lots like +1 +2 +3 +4 +5 etc etc And use te triggers but with varibles (or maybe set the custom value of the unit to the +damage you want it to have ) then make it have the ability of the custom value of the unit. Make a varible called PlusAbilities -Array set to what ever your max damage is- and type is ability Set the varible arrays to the equivelant array to the +damage Code:
Event: What ever event u want Condition: None Actions: Set custom value of (this is simple your event response... if your event was a unit casts ability then this would be casting unit) to custom value of (same again) + 1 Unit - Remove PlusAbilities[Custom value of casting unit - 1] from casting unit Unit - Add PlusAbilities[Custom value of casting unit] to casting unit If it works plz tell me cause i just made it up, i doubt it wont work nice type of system but maybe cause lag so i will show you another way -2- (Not recommended) (Small amount of space) Use your system but instead of building them all up together i would do it all at the same time , dont know if this will work but might aswell try it. So... Use your system but instead of doing it at separated times i would delete the old 1s (Remove ability etc etc on that unit the amount of times he has got it [maybe custom value of unit again] and add it again +1 Hope you get my drift, may be not worth your time but i like to try and help people ;) Anyways hope it worked C Ya ![]() |
| 07-12-2005, 08:34 AM | #3 |
you could use a binary system - check the bonus mod that weaaddar did. it would only use 7 abilities to make any bonus up to 127... so you could just store the current value of damage of the hero in an integer (make sure theres only 1 hero that can cast the spell, or make an array for each player), and if it is casting, add +1, and if its not, -1 till you get to 0 |
| 07-12-2005, 06:02 PM | #4 |
The Simple but Complex Way! Copy the Item Damage Ability. (remember to add this is all affected units) Add like how many levels you want, use autofill(right click) to +1 damage each level. Name it Damage Up for thsi anyway Create a Unit Group and name it channelers(for this anyways) thats in variables. Remember I wrote these, they are not exact, it should be obvious Code:
Casting Start Event A Unit begins channeling a ability Conditions Ability= Damage Up Actions Add Casting Unit to Unit Group(Channelers) Code:
Casting Up Event Every 0.5 Seconds Conditions (none) Actions Pick Every Unit in Units in Channelers=True and do Increase level of Damage Up for Picked Unit. Code:
Casting Down Event Every 0.5 Seconds Conditions (none) Actions Pick Every Unit in Units in Channelers=False and do Decreases Level of Damage up for Picked Unit. Code:
Casting End Event A Unit Finishes Channeling a Ability Conditions Ability= Damage Up Actions Remove Casting Unit from Channelers Ok, if this actually works you have been blessed, If there is no remove unit from unit group action just make a unit group that you won't use to add it to. |
| 07-13-2005, 06:25 PM | #5 |
so why wont i just use a caster variable instead of a unit group and adding the caster to that group? .. i did like mrapples said when i first tried it.. hmm... maybe i should make it again and then you'll tell me what's wrong. |
| 07-19-2005, 04:50 AM | #6 | |
Guest | Quote:
The level of Damage Up cannot work.Some item spell level cannot change,I am not sure about that. ![]() |
| 07-19-2005, 06:43 AM | #7 | |
Quote:
are you sure? couldn't you change it in object editor - spells, give it multiple levels(hint :cap it with like 10 leves, so you'll have 5 secs of channeling)? sorry i'm unable to access WE so... |
| 07-19-2005, 10:15 AM | #8 |
Guest | Change the level in object editor ,I can do that. But the diffrent lev spell effect are same ,just the lev 1 effect. I changed the ability <+ intelligence> to 5 levels. Autofilled the 5 leve data,lev1 +2,lev2 +4,lev3 +6,... I wrote this: add ability <+ intelligence> to Hero1. set the level of ability <+ intelligence> for Hero1 to 3. but in fact the Hero1 only add 2 point intelligence. What's wrong ? |
| 07-19-2005, 02:51 PM | #9 |
Guest | Make a new thread, don't go asking questions on other people's posts. |
