| 01-04-2006, 08:33 AM | #1 |
Is it hardcoded for some abilities? I added a requirment of a research in to a custom ability, but when i put it on a hero, he doesn't need that additional requirment to learn other than the hero's LVL. Is there a way to give additional requirments for hero's ability? If there is not, how can i do it with triggers, so that it will show the text like the requirment lvl? EG: - Require level 6 |
| 01-04-2006, 08:41 AM | #2 |
![]() The required level field add that limit automatically, set it to 6 and your hero needs to be level 6 to learn the spell. Also try to look at the Level Skip Requirement field if you want to know about that (click on it to open a dialog that tells you about it and where you can change the value). If you want special requirements, just make dummy upgrades and make the spell require those upgrades, then enable the upgrades in the trigger editor when the spell shall be enabled. |
| 01-04-2006, 08:44 AM | #3 |
In case you need upgrades , units or something as requirement : Add the research to the requirements and Try to set the "Techtree-Requirements-Levels" to 1 or something. worked fine for me. Now by triggers when hero mets level 6 research , by triggers , that requirement and you 're done. ![]() |
| 01-04-2006, 08:46 AM | #4 | |
Quote:
You can't link to images on your hard drive, upload them to www.imageshack.us or something. |
| 01-04-2006, 08:50 AM | #5 |
oh!really??!?!? that was just paste by mistake blade. I dont know why it showed up?! |
| 01-04-2006, 08:58 AM | #6 |
Wow! It works for u... I tried creating a spell, the hero can't learn B spell if A spell isnt level 3 yet. I tried doin it with triggers, but the hero still can learn... Hmm, wait, maybe the hero can learn it... but cant use it.. [edit] Below is the triggers i used. It doesnt work... Code:
A lvl
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Human A
Actions
Set Alvl = (Alvl + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Alvl Equal to 3
Then - Actions
Player - Set the current research level of B_Requirment to 1 for (Owner of (Casting unit))
Else - ActionsI have checked the dummy upgrades, all are fine, nothing is wrong... |
| 01-04-2006, 10:56 AM | #7 |
check this map I made for you. learn holy light, but it wont be usable. get divine shield past level 3 to get it. EDIT: A lvl Events Unit - A unit Learns a skill Conditions (Learned Hero Skill) Equal to Human A Actions Set Alvl = (Alvl + 1) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Alvl Equal to 3 Then - Actions Player - Set the current research level of B_Requirment to 1 for (Owner of (Casting unit)) Else - Actions in your actions you say Player - Set the current research level of B_Requirment to 1 for (Owner of (Casting unit) The Casting Unit has nothing to do with this event. change it to trigger unit. eitherway this trigger is preety much inefficent. check the one on my map. |
| 01-04-2006, 12:35 PM | #8 |
Cool, the map does help. Thanks. Hmm, so there is no way to not let a hero learn a spell when it didnt reach other requirment? |
| 01-04-2006, 12:40 PM | #9 |
I belive there is not. If I find something I will inform you. |
| 01-04-2006, 01:31 PM | #10 | |
Quote:
thanks! Oh, btw. Its "learning hero" wrong.. |
| 01-04-2006, 04:26 PM | #11 |
Triggering Unit will work perfectly and might be even faster than learning hero. |
| 01-05-2006, 01:41 AM | #12 |
Thanks for helping Hmm, my map got a ranking system. I would like the some items to be available only at some rank. But when i put it in a neutral hostile shop, it won't work. I must put it in a shop for each player? |
| 01-05-2006, 01:57 PM | #13 |
Do something like -Event
btw since I dont have that much clue on what are you doing. maybe post your map so I can help you there. |
| 01-05-2006, 03:45 PM | #14 |
I manage to solve the problem, i just need to change the shop to the buying player's team, then all requirments work. Like the human shop that requires tier 3.. =) My map is at my web, http://bocp.leospirit.net Its under closed beta, but if u register, u can dl it. Since beta 2 is xmas edition, although it contain some bugs, but not major. |
