I Need Some Help on an RPG With this..
Ok So i Know how to Make Gas as Mana but i Dont Know how to Make it Recharge and Stop at a Current Point, Then When you level up In the RPG Make the Mana Level go Higher, How do you do This??
Start with a switch... Set a switch when you enter a certain location that will make the mana recharge and then when you get to a certain point then just clear the switch.
There's many ways you can do this. If you are using hypertriggers, you can use a kill counter as a timer to increase your gas every xx seconds. You can also use a player score to hold the maximum number of mana that a player can gain. Then add a condition to the mana gain trigger so that that gas cannot go over that amount.
You will need 1 trigger for each mana Regrowth speed, and 1 trigger for every level your mana max will grow and you need to multiply them to get # of trigs, so...
3 Speeds x 99 Level Ups = 297 Trigger per player
QUOTE(WoodenFire @ Jan 5 2006, 05:37 PM)
You will need 1 trigger for each mana Regrowth speed, and 1 trigger for every level your mana max will grow and you need to multiply them to get # of trigs, so...
3 Speeds x 99 Level Ups = 297 Trigger per player
[right][snapback]399181[/snapback][/right]
The RPG has 20 Levels Max Wooden..lol
QUOTE(Nils @ Jan 5 2006, 05:07 PM)
The RPG has 20 Levels Max Wooden..lol
[right][snapback]399206[/snapback][/right]
Then it would be 3x20= .... I will have to get my calculator...
ok really all he wants is in that link and thats what i'm explaining and thnx to urmom for the death counter version (i got lazy so didn't put it in just mention it)

Try these triggers:
| Trigger |
| Description: |
| Gas as mana |
|
| Players: |
| ¤ Players with mana |
| Conditions: |
| ¤ Accumulate x Gas. |
| Actions: |
¤ Give player X gas.
|
¤ Wait x milliseconds.
|
| ¤ Preserve trigger. |
| Trigger |
| Description: |
| Topping off the recharge. |
|
| Players: |
| ¤ Players with mana. |
| Conditions: |
| ¤ Player accumulates x (maximum mana) Gas. |
| Actions: |
| ¤ Modify resoureces: Set Gas to x (maximum mana). |
| Trigger |
| Description: |
| Using mana |
|
| Players: |
| ¤ Players with mana |
| Conditions: |
| ¤ Player brings x 'Spell trigger unit' to location 'Spell trigger.' |
| Actions: |
¤ Modify resources: Subtract x (mana cost) gas.
|
¤ Move 'Spell trigger unit' to location 'Spell trigger unit spawn.'
|
| ¤ Preserve trigger. |
Unless I screwed up somewhere, that should work.
ignore them,
im making a rpg myself

the simplest way:
have a trigger to always recover mana right? i bet you already have it:P
now for example the limit right now is 20 gas or 20 mana
+make this trigger to go like player(x) accumulates at least 21 ( 20 + 1 ) Gas or mana
+condition of the limit (most likely a switch)
-Substract 1 Gas
-Preserve trigger
ok

that's it say thx corbo

QUOTE
at least 21 ( 20 + 1 )
man im so good at math

Yeah, that should work FatalException, however I would recommend using a death count wait instead of just wait, or else wait blocks will probably happen at some point.
That is a really nice method... I was thinking more of a switch for when it got under the limit then the switch would turn on and when it got to the limit then the switch would turn off... Great idea.