| 01-30-2004, 01:44 AM | #1 |
Ok, I have a spell that increases the heros range, attack damage, and attack speed. I based the spell off of Evasion, and gave it all the info... I want it so when the hero ability is learned, the trigger researches the upgrade that adds all that stuff... How would i do this? Ive done this Code:
Events- Unit - x learns a skill Condition- (Learned hero skill) equal to Gamut Device Action- Set the max research level of Gamut Device to 1 for (owner of triggering unit) and ya... |
| 01-30-2004, 03:54 AM | #2 |
I would expect that someone who has earned as many points as you have should know better than to post questions in the Trigger and Utility Repository. All questions should be posted in map development. |
| 01-30-2004, 04:08 AM | #3 |
really... never asked about a trigger before, so i dont know :D |
| 01-30-2004, 04:53 AM | #4 |
Well i know it can do it automaticly when u leanr the skill by adding this event Order Unit to reserch defend Replace Unit and defend This is how i do it. And if you dont want them to see their building and select and all cover it with mask so they cant see your upgrade buildings thats if you have any room. Can you post maybe a little more info of how you want it with or without building?emote_sweat |
| 01-30-2004, 08:52 PM | #5 |
OMG this is so simple Just use Unit - Level of ability for unit and set the current research level of the upgrade to it. |
| 01-30-2004, 09:14 PM | #6 | |
Quote:
lol as grater already posted, this is one of the simplest triggers ever. heres what i use for all my spells (note my triggers are set up to display to allies what skill a teammate learns) heres the trigger: Blood Elemental Events Unit - A unit Learns a skill Conditions (Learned Hero Skill) Equal to Blood Elemental (Avatar of Blood) Actions Set learned_ability_name = Blood Elemental Game - Display to (All allies of (Owner of (Learning Hero))) the text: ((|c00800000 + (Name of (Owner of (Learning Hero)))) + ((( Has just advanced + learned_ability_name) + to level ) + ((String((Learned skill level))) + .|r))) Player - Set the current research level of Blood Elemental to (Learned skill level) for (Owner of (Learning Hero)) |
| 01-31-2004, 12:27 AM | #7 |
i did set max level instead of current level. |
| 01-31-2004, 05:49 AM | #8 |
Well i just use the hard way XD in my own little world. |
