| 05-13-2005, 11:03 PM | #1 |
I want to make it so your current hero has to be a certain lv in order to upgrade any further. How would I do this? I tried setting the upgrade to the hero, then under interger i put a number, but that number I am assuming is counting the number of that hero the player has on the map? I was just wondering how I can put requirements on upgrades. Need some help plz :\ |
| 05-13-2005, 11:10 PM | #2 |
Guest | Ok there is probably a much simpler way to do this but right now (off the top of my head) try this. Code:
Event - Unit gains a level Actions - Create one <farm> in <region> for player of leveling hero now another trigger: Code:
Event - Hero gains a level Conditions - Units in <region> equal to <# level that you want> Actions - Make <upgrade> available Umm I'll try finding the exact trigger/better one but for know that's all I got Piece, Destruction |
| 05-14-2005, 01:16 AM | #3 |
You only need a single trigger: Code:
Event - Hero gains a level Conditions - (hero level of (leveling hero)) greater than or equal to (# of level that you want) Actions - Make <upgrade> available |
| 05-14-2005, 04:53 AM | #4 | |
Quote:
Ok, that is fine, but what about a upgrade that has 5 levels? Would this still work or would it allow all the levels to be active after first one? |
| 05-14-2005, 05:18 AM | #5 | |
Quote:
Yes just as long as it has a different expectancyrating each time. |
| 05-14-2005, 05:42 AM | #6 |
Is Make Upgrade Available a trigger? |
| 05-14-2005, 05:57 AM | #7 | |
Guest | Quote:
You should never (as far as i no) use this as a means of storing data. Use a variable or the units custom value instead This dosent need it anyway as already stated, but for other times. |
| 05-14-2005, 09:53 AM | #8 |
Ok, I have gone threw all of the actions.. Where is "Actions - Make <upgrade> available" located at? I failed to find it :( |
| 05-14-2005, 10:13 AM | #9 |
It may not actually be an action, that trigger was written in only pseudo-code. One way to actually do this (don't know if it's the only one) is to make the upgrade require a building under it's requirements (like the "long rifles" upgrade requires a workshop), and then create that building for the player when he reaches a certain level. The building should be just a dummy unit, something invisible with locust maybe and it's name should be something like "Level 16 Hero", so then the upgrade would say "Requires: Level 16 Hero." untill you got the building. |
| 05-14-2005, 10:39 AM | #10 |
Hmmmm. Ok, I will try this. Thx :) |
| 05-15-2005, 01:59 AM | #11 |
Ok this is really starting to piss me off. Anitarf, I did what you suggested and it worked fine, the only thing now is, the events ""unit - begins/stats/finishes an upgrade" DO NOTHING. I even set up a dummy trigger to test it, like unit - finishes an upgrades - then display text. THEY will not fire. Does anyone else have a problem with this? |
| 05-15-2005, 09:52 AM | #12 |
Umm, wait, what kind of upgrade do you have in mind? Unholy armor, long rifles, pulverize, that sort of thing, or do you mean like Ziggurat -> Spirit Tower kind of upgrade? If it's the first kind, you need to use the "finishes research" event, not "finishes upgrade". |
| 05-15-2005, 10:11 AM | #13 |
Oh, what about for modify an ability? Like use the upgrade to increase the level of a spell on a unit. Also, what about just for no effects at all, or does it HAVE to have something? |
| 05-15-2005, 10:56 AM | #14 | |
Quote:
|
| 05-15-2005, 05:21 PM | #15 |
Ok, I will messes around with this, thx :) |
