Staredit Network

Staredit Network -> Concepts -> Ship Fuel System
Report, edit, etc...Posted by wraith_shadow on 2006-02-18 at 04:03:49
I am working on a map, and you have a fighter ship in space ect. Now what I wanted was to make them be more conservative on how much they move around, or how far away they move away from the main ship. So I though up of A SFS (Ship Fuel System).

Now I am sure that this can be used on many other maps, and may be useful to people who have been having the same problem as me. Okay the triggering is fairly simple, but it will use some switches, and the fuel display will have to be either gas, or minerals. I also suggest using hyper triggers, it will make the system work more accurately.



Trigger
Description:
Subtract Fuel
Players:
¤ Player 1
Conditions:
¤ Brings 0 Fighter to location 01
¤ switch red fly is set
Actions:
¤ Subtract 1 gas
¤ center location 01 on Fighter for P1 anywhere
¤ Preserve trigger


That is the basic way to make the fuel run out, so you can have a visual on how much you have left.



Trigger
Description:
Player 1
Conditions:
¤ Accumulates exactly 0 gas
¤ Switch red fly is set
Actions:
¤ Clear red fly
¤ Move all Fighter owned by P1 anywhere to location 01
¤ Preserve trigger


That will not let the ship move, until it is picked up, or a fuel transport is sent.



Trigger
Description:
Base Re-Fuel
Players:
¤ Player 1
Conditions:
¤ Brings atleast 1 fighter to location Re-Fuel
¤ Accumulates AtMost 50 Gas
¤ (*Optional Trigger*)Accumulates AtLeast 1 Mineral
Actions:
¤ Add 1 gas for Player 1
¤ (*Optional Trigger*)Subtract 1 mineral for Player 1
¤ Preserve trigger


The reason it adds only 1 gas at a time is to simulate the fuel acually being poured into the ship, and also so you can fill it. The optional triggers are if you want to charge the players for their gas, which I am sure you would want to.



Trigger
Description:
Re-Fuel Ship
Players:
¤ Player X
Conditions:
¤ Brings atleast 1 re-fuel ship to location 01
¤ Accumulates atleast 1 Gas
Actions:
¤ Add 1 Gas to player 1
¤ Subtract 1 gas from Player X
¤ Preserve trigger


It subracts gas from player X because fuel just dosent come from anywhere. But the re-fuel ship can hold a lot more than the fighters. I would say make it around 200. I'm sure you could add charge the same way I did with the base re-fuel.

That is a very basic fuel system. I don't think I have ever seen one on SEN before, so here it is.
Report, edit, etc...Posted by Moogle on 2006-02-18 at 04:15:26
I've seen this done already in a map by Mini Moose 2707, works pretty well. =/ Could always make a person buy Fuel by 50 or 100 blocks and still make it look like its filling up. But mah, also you dont need switch say ship inflight could just use a death trigger.

0 = Landed
1 = Flying

Simple enough i guess =)

\\Moogle
Report, edit, etc...Posted by wraith_shadow on 2006-02-18 at 04:51:19
Hey what map was it that used something similar like this?

Also thankyou for the kill trigger thing.
Report, edit, etc...Posted by Mini Moose 2707 on 2006-02-18 at 10:04:16
It was one of my lesser known unfinished maps.
http://www.staredit.net/index.php?download=423
Don't blame me if its buggy.... I have no idea what version's in there and its at least a year or two old. tongue.gif
Report, edit, etc...Posted by EcHo on 2006-02-18 at 10:10:50
my friend wizard898 did something similar like this
but it was stamina for walking
Report, edit, etc...Posted by Corbo(MM) on 2006-02-18 at 12:16:06
yeah, delaying the centering time of a location on a unit works for so many different things: fuel system as you said, stamina for walking, you can play sounds for ground units as they are walking in grass,mud ..etc. you can play sounds for air units to make them sound like the engines are making a sweet noise of another plane ..etc..so many things about this
Report, edit, etc...Posted by A_of_s_t on 2006-02-18 at 21:20:52
Sounds good, make delay though on ur centerveiwing and make sure to have hyper trigs wink.gif . O!! About having the unit not be able to extend the reach of a ship, there is a list of triggers, but, the ones i have ARE REALLY COMPLICATED (I mean overly complicated, involving switches and stuff) so I wont say them, but have it so when the units leaves an are, it is returned to the area that it has left.
Report, edit, etc...Posted by wraith_shadow on 2006-02-19 at 21:11:37
I think i know what you are talking about, and it dosent really seem all complicated..

Just make a location around the ship. Then make a location follow the small ship in the location around the ship. If the ship leaves the small location, move it back. since the samll location wont leave the big area, then it will be oput back where it was.

But the fuel thing wouldnt work with it. tongue.gif
Report, edit, etc...Posted by Javaboy on 2006-02-20 at 08:52:05
Sounds like it would work fairly well without any bugs, do you have any plans on what type of map you will be implementing this in? Or do you intend just to put this out there and not use it?
Report, edit, etc...Posted by Hikari256 on 2006-02-23 at 00:49:27
Should be at most 49 not at most 50, unless you want 51 gas points.

Or am i mistaken?
Report, edit, etc...Posted by Moogle on 2006-02-23 at 10:12:06
QUOTE(Hikari256 @ Feb 23 2006, 04:49 PM)
Should be at most 49 not at most 50, unless you want 51 gas points.

Or am i mistaken?
[right][snapback]433060[/snapback][/right]


No your not, triggers seem add 1 more point then should happy.gif;

\\Moogle
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-03-14 at 14:02:48
QUOTE(Moogle @ Feb 23 2006, 11:11 AM)
No your not, triggers seem add 1 more point then should happy.gif;

\\Moogle
[right][snapback]433142[/snapback][/right]


They don't add 1 more than they should, the term AT MOST is including the highest number, so if the trigger says "at most 50" it will include 50 and continue adding until it reaches 51 or more.

Also, here's a concept I got from reading this:

If you had a pair of the same unit (hero and non-hero) such as a zergling or hydralisk, one would go faster than the other. You could make an RPG (or something) in which you could run/walk using different amounts of "stamina points" depending on what you are doing.

In fact, I think I'll do that, and post it here.


ADD: Well, I did it. I made it in a couple hours, so there may be glitches. The only one I could find was the seige tanks attacking. If anyone knows how to stop them form doing this, it would be helpful. Otherwise, check it out.

I left it unprotected so people could look at my triggers. I don't think anyone would steal it anyway.
Report, edit, etc...Posted by uberfoop on 2006-03-16 at 02:19:34
ive long thought of a system just like that, but never acualy had much use to implement it. anyway, yours is uber 1337 with plenty of variety to it. nice refueling system. i like it.
Report, edit, etc...Posted by Relentles_Agony on 2006-04-02 at 06:37:04
Thats funny man i already have it in my map ive been workin on... just funny i saw this!
Next Page (1)