| 11-02-2003, 09:03 PM | #1 |
I set up this trigger: Leadership Events Unit - A unit Gains a level Conditions ((Triggering unit) is A Hero) Equal to True Actions Player - Set (Owner of (Triggering unit)) Food max to ((Hero level of (Triggering unit)) + 1) It's supposed to increase a player's food limit, relating to their hero's Level... but it doesn't seem to work. Is there a 'maintain trigger' setting I have to use, or is there a gap in my trigger? |
| 11-02-2003, 09:06 PM | #2 |
Instead of "Triggering Unit" try "Leveling Hero" and see if it works then... Using "Triggering Unit" is a bad idea unless there is no other option. And besides that I think you want to set "Food Cap" (CAPacity) not Food max... Food max is how high farms can raise the food cap... |
| 11-02-2003, 09:13 PM | #3 |
I don't know if it's max or cap you want. I think max has something to do with how high you can get the food cap up to but not possitive. Try changing that to cap. Also are you going to have more than one hero? If so your trigger will always reset food level to just the levle of the hero that has last leveled up... try adding one to food cap as the hero levels instead. edit:looks like I took to long someone beat me to it |
| 11-03-2003, 12:03 AM | #4 |
It's for a 'gang warfare' style map... every unit will be a Hero, so the unit class will be changed to something unique (for the major hero, and not the henchmen heroes). I'll try these suggestions. |
| 11-03-2003, 02:10 AM | #5 |
Yah food cap is like */60, but food max is the 100 limit. Believe me, i set up a custom food system. Triggering unit should only be used when it is mensioned by the event. |
| 11-03-2003, 10:45 AM | #6 |
I got something working... but it doesn't work without specifics, such as player 1 instead of 'owning player'. |
| 11-03-2003, 10:49 AM | #7 |
Then just add an for loop with an if statement to check the player for each integer A from 1 to [max players] do if(player[A] == owning player) do set player[A] foor cap to hero level * whatever I hope you understand what I mean by this =P |
| 11-03-2003, 10:58 AM | #8 |
The original trigger works fine for me... altough I suspect you want food cap rather than food max. If it really is food food max you want, then it seems that the available food is only updated when a farm is built/destroyed. |
| 11-03-2003, 12:21 PM | #9 |
I've studied Advanced Maths and Programming, I understand a loop. I'll, of couse, be taking a knife to this trigger and drawing blood until it submits the desired responce. |
| 11-14-2003, 07:41 PM | #10 | |
Quote:
i'm 13 and i understand it but I'm also a very smart 13 year old :) my IQ is like 140 or something |
