Staredit Network

Staredit Network -> UMS Assistance -> Gas as Mana and Recharging
Report, edit, etc...Posted by Lyon on 2006-01-05 at 15:32:46
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??
Report, edit, etc...Posted by Joshgt2 on 2006-01-05 at 15:44:02
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.
Report, edit, etc...Posted by DryYJ on 2006-01-05 at 15:47:30
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.


Report, edit, etc...Posted by WoodenFire on 2006-01-05 at 16:37:28
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
Report, edit, etc...Posted by Lyon on 2006-01-05 at 17:07:47
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
Report, edit, etc...Posted by Urmom(U) on 2006-01-05 at 17:36:23
Look at this thread. I'm sure you can figure out how to add on to it.

http://www.staredit.net/index.php?showtopic=24085
Report, edit, etc...Posted by Joshgt2 on 2006-01-05 at 18:11:34
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... biggrin.gif
Report, edit, etc...Posted by KABOOM on 2006-01-05 at 18:15:55
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) biggrin.gif
Report, edit, etc...Posted by FatalException on 2006-01-05 at 20:25:16
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.
Report, edit, etc...Posted by Corbo(MM) on 2006-01-05 at 21:30:44
ignore them,
im making a rpg myself biggrin.gif
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 biggrin.gif that's it say thx corbo tongue.gif
QUOTE
at least 21 ( 20 + 1 )

man im so good at math tongue.gif
Report, edit, etc...Posted by Kumano on 2006-01-05 at 21:31:23
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.
Report, edit, etc...Posted by Joshgt2 on 2006-01-05 at 21:39:12
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.
Next Page (1)