Jump to content
Sign in to follow this  
genpatton043

Need Help With a Unique Script/ Possible Addon

Recommended Posts

Hey folks,

i was hoping maybe some of you out there could give me an idea on how to create a specific script or if I might even need to create a more specific add-on in order to do it.

Here's what I am looking for and trying to do.

For sometime I have been creating a campaign which is based off of an old Role Playing game from the 1980's and 90's called Twilight 2000. Its a post-apocalyptic campaign centered around a group of US soldiers, ( any nationality really) who are trying to survive different scenarios in order to make their eventual way back hom to the US.

http://en.wikipedia.org/wiki/Twilight_2000

The campaign is going good, I currently have a map of Poland that I am using which is where the initial campaign is set.

The basics premise of the campaign is that the players unit/squad is caught behind enemy lines and because the major cities of the world are destroyed, supplies like ammo and more specifically fuel and food are tough to find.

My questions are that I'd really like to have to two scripts if anyone could think of a way to create them. one would be for foraging for food, but since foods not really a part of Armas game itself, I'm not sure that its one that there are even any benefits or is worth the time trying to create.

BUT, the one script I'd like to try and have would be a "Distilling" fuel" ability. Normal gas and diesel is tough to find in this world and in the RPG version of the game players have to scour for crops and use stills to make their own fuel for their vehicles to run.

So, lets say I were to place a certain crop in various locations throughout the map, the player could scour the area and locate the crop, cut it and bring it back to his "Camp" to be distilled and turned into fuel for their Humvee or whatever.

My first thought was that once the fuel is "Distilled" it could be turned into a "Fuel chit", almost like a currency. You could then go to a vehicle, use it and say it each chit would add 10% more fuel to that vehicle OR you could use it as an actual form of currency because I do plan to incorporate the ability of purchasing weapons, supplies and ammo, through black marketeers for example, in the missions themselves and when most of the world is destroyed, what better form of currency could there be other than fuel?

So, I a wondering if anyone out there might have an idea as to seeing IF something like this could be done and IF so, how might I go about it?

Much appreciated for any help anyone could give,

Chris

Share this post


Link to post
Share on other sites
This would make a good crop to make fuel from :-

http://www.armaholic.com/page.php?id=4272&highlight=HEMP

:)

Believe it or not, I HAD actually thought of that at some point. =P Its the scripting of cutting and moving/using that has me befuddled.

Such as,

Player is on patrol, comes across "useable" material, he know he will need that for fuel so he has to cut it an bring it back to camp where the distillery is.

From there, the distillery produces thee fuel itself, but in what form? A gallon container of gas? Or like a chit that could be added as some form of currency?

Share this post


Link to post
Share on other sites

The good news is - it can be done (I believe). But you'd have to dive into some more scripting.

1. Why not use the Fuel Can object for fuel? Editor -> Empty -> Objects -> Fuel Can. Create that object class out of your hemp booze :)

2. Employ drag&drop scripts (like used in my VFladder addon) using sin&cos (_obj setposASL sinx, cosx, 1 or the like) to simulate carrying objects.

3. Try the command cursorTarget to link the can to the car.

Make cans appear and disappear as required and set up a score system of global vars or object variables (example: setVariable to manage inventory.

It's a challenge for sure; but that's the deal with this hobby :)

My 2 cents,

VictorFarbau

Share this post


Link to post
Share on other sites
The good news is - it can be done (I believe). But you'd have to dive into some more scripting.

1. Why not use the Fuel Can object for fuel? Editor -> Empty -> Objects -> Fuel Can. Create that object class out of your hemp booze :)

2. Employ drag&drop scripts (like used in my VFladder addon) using sin&cos (_obj setposASL sinx, cosx, 1 or the like) to simulate carrying objects.

3. Try the command cursorTarget to link the can to the car.

Make cans appear and disappear as required and set up a score system of global vars or object variables (example: setVariable to manage inventory.

It's a challenge for sure; but that's the deal with this hobby :)

My 2 cents,

VictorFarbau

Twirley and Vic,

Thanks for the response guys, I appreciate it, sorry I haven't had a chance to respond until now.

Just using the hemp plant alone gave me some extra ideas as far as actual side or full scale missions, so thanks Twirley.

Vic, I think I follow you the only thing I am totally not sure on is how to incorporate it into using it as a form of payment for say ammo or weapon at a black market dealer. I guess I have to go back and look at some of the old scripts that revolved around buying weapons or objects themselves.

Thanks again

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×