| 12-01-2003, 08:44 AM | #1 |
well. im making spells 100% based on triggers to make a 100% new spell.. but how do i add level to the skill?? because.. with trigger i can only make the spell with 1 level, but how may i add levels? any idea??? |
| 12-01-2003, 09:15 AM | #2 |
Events Unit - A unit Learns a skill Conditions Actions Custom script: if ( not ( GetLearnedSkillBJ() == 'A008' ) ) then Custom script: return false Custom script: endif ---insert whatever actions--- Set Omnislash_LvL = (Omnislash_LvL + 1) <--- this is the most commonly used action with this trigger to set spell lvls. Then in a seperate trigger that detects when the spell is casted, use if then else to determine (in this case) omnislash's lvl. The A008 is the 4 letter code for a spell. (also remeber custom scrips are case sensitive) |
| 12-01-2003, 02:03 PM | #3 |
i do it the EZ way. Convert to jass, change the code and boom. Thats the only jass ino... |
| 12-01-2003, 07:25 PM | #4 |
Another way is to use abilities like Summon Water Elemental. You set up the spell so it summons like a dummy unit named lv1unit, lv2unit, and lv3unit on each level. and then just do: Code:
Spell Lv1
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to lv1unit
Actions
Unit - Remove (Summoned unit) from the game
(What you want the spell to do goes here)Then for level 2 of the spell you just change the summoned equal to lv2unit. |
