| 11-27-2003, 11:00 AM | #1 |
I've made a couple of trigger enhanced spells but the problem is that they are all one level. I don't know how to make them have different levels. Its like I have the Exorcism spell that is meant to deal more damage with each level it gains, but since the spell is made with triggers I can't find a way to make change when it gets higher levels. please help. |
| 11-27-2003, 02:59 PM | #2 |
I dont think that is possible by using triggers. |
| 11-27-2003, 03:17 PM | #3 |
sure its possible. All you need to do is have a trigger that runs every time you put a point into a skill, have it set a variable +1. When you run the damage trigger you can either have it use a check for the skill level and deal the damage from predetermined intigers, or have a damage equasion that deals damage with the skil levl variable affecting a part of it. Example damage equasion is (50+(i*50)) i being equal to skill level. At level 1 the spell will deal 100 damage, at level 2 it will dead 150, levle 3 will be 200. Ill try to give better instructions if u need them. |
| 11-27-2003, 04:01 PM | #4 |
I'm sorry Obsidian but I must admit that I have difficulty working out what you said. You see I'm kinda new with triggers so don't expect much. Do you mean that I must redo the spell and change it a bit whit every level? |
| 11-27-2003, 04:24 PM | #5 |
No, he means store the damage the spell does in an equation. So instead of having separate triggers storing the damage for the spell as Level 1: 120 Level 2: 170 Level 3: 220 You have one trigger storing the damage as 120 + (v * 50) So instead of making a new trigger, simply change one variable. (v being the level of the spell). If you want to add additional special effects at say... level 2 and more, simply add an if/else/then statement. If v greater than or equal to 2 Create special effect blahblahblah. |
| 11-27-2003, 04:31 PM | #6 |
What im saying is you can set an intiger to the spell level (this isnt that hard to do, try searching for how to do this, i think i saw it a while ago). Then all you need to do is everytime the spell is cast is do a check for the level of the spell, and have the right effect happen for each level that way. This will require copy and paste but u wont have to redo much. An alternate way to determin damage dealt is crate an intiger array called "damage" and use the Skill level intiger that i mentioned earlier. Set Damage(1) = level 1 damage Set Damage(2) = level 2 damage change the damage trigger so it deals the damage like this (as in the damage number) Set Targeted unit life equal to (life max - (damage(skill level)) I might give better instructions later if you want to know exactly how to do it. |
