HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Gas System - Is it possible?

11-15-2004, 04:31 PM#1
Albiino-I
I'm working on a project called, Warcraft: Racers!. As the name propably says already, it's about racing with Warcraft characters. Anyways, map is coming along pretty fine and I was thinking for more cool features for it. I tought about somekind of gas system.

- Player starts with 100 gas (it's supposed to be seen in a list on the right corner of the screen).
- Every 5 seconds, player loses.. let's say, 5 gas.
- Player must go trough an Gas Shop to fill his gas-meter.
- If the gas runs out, player loses automaticly.

Is this possible and if it is, then tell me how could I create a system like this.
11-15-2004, 04:49 PM#2
ThE_RiDdLe
Quite Simple...
Create a Multiboard, a Gas Variable (Array, Starting Value 100)

Then do the Triggers for Displaying the Multiboard with the Gas Amount for each player.

After That new trigger:

Every 5 Secs do set gas[1] - gas[12] -5

After That New Trigger

If Gas[1] (That means its the Gasamount of Player1(Red) For Example) becomes equal to 0 then do
Defeat Player (and so on...)


Dont know if this is right made it... without looking at WE so everything was in my mind xD
11-15-2004, 08:21 PM#3
Moose-Head_Man
damn i wanted to answer this and get rep, but you beat me to it, yes that would be about how you do it seeing that i dont have WE up atm either. Rep
11-16-2004, 11:39 AM#4
ThE_RiDdLe
No Problem and Thanks for the Rep ;-)

I might post a map with the system on it if you need, Albino, Pal. :D
11-17-2004, 04:00 AM#5
Albiino-I
Okay.

Thanks RiDdLe. And thanks for you too Moose-Head_Man.
11-17-2004, 09:26 AM#6
Guest
Although this question looks solved, I would like to add a different solution: use mana as the gas, set mana regenaration to negative and give the gas-shopper some mana restore ability to cast on the units. I find it much more simple.

Salutions®
11-19-2004, 02:51 PM#7
Guest
Waack u stoled my idea Mara i could use that rep... Anyway mana is your best choice other ideas:
-Speed boost that drains mana (gas)
-Having items based on mana potion (refuel/extra tanks)
-making a trigger that ONLY drains mana on moving

Im kindashort on time now but i'll be back (some rep would be nice though =P)