Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
If you want to test for X of outfit Y, and X is the maximum amount you can have of Y, then my solution is the simplest and will work. Give the player, either as default outfits or as the result of a silent mission, X amount of outfit Z, which is a hidden outfit. Then, when the player buys a Y, do D(Z), and when the player sells a Y do G(Z). To test for X amount of Y, just test for 0 of Z, i.e. !O(Z).
------------------ Get (url="http://"http://www.aznt.com/EVN/EVNEW")EVNEW(/url) - the free, open-source EVN plugin Editor for Windows!
Quote
Originally posted by Aprosenf: **If you want to test for X of outfit Y, and X is the maximum amount you can have of Y, then my solution is the simplest and will work. Give the player, either as default outfits or as the result of a silent mission, X amount of outfit Z, which is a hidden outfit. Then, when the player buys a Y, do D(Z), and when the player sells a Y do G(Z). To test for X amount of Y, just test for 0 of Z, i.e. !O(Z).
**
Clever! This isnt perfect unless X= the maximum you are allowed to have, but in that situation, its a very clean way to do this. -Az
------------------ It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url) Stuffit is a piece of .sit.
Originally posted by Azratax2: **Clever! Good thinking Aprosenf. This isnt perfect unless X= the maximum you are allowed to have, but in that situation, its a very clean way to do this. -Az, who is stunned that he didnt see this.
Originally posted by Azratax2 **Clever! This isnt perfect unless X= the maximum you are allowed to have, but in that situation, its a very clean way to do this. -Az
Hrm... Well, you could also set multiple default items in this way, using up to 8 different outfits. Initially grant one of outfit 1, two of outfit 2, etc. In each outfit, have not only 'd(z)', but have 'd(z1) d(z2)' etc. Then, for your mission, check for different outfits for different amounts (this is assuming the engine does not go below negative outfit quantities). To check for specific numbers of outfits, do the following:
To check for exactly two outfits: test: {Oz2 & !Oz3}
To check for greater than or equal to two: test: {Oz2}
To check for less than four: test: {!Oz4}
To check for less than or equal to four: test: {Oz4 & ! Oz5}
To check for greater than 2 and less than 4: test: {!Oz4 & Oz2}
etc.
The only flaw is that you can only have either one check for up to 8 of 1 particular outfit for 1 particular ship, or 2 different checks for up to 4 of any two outfits per ship, etc.
Yet, while thinking on this, I thought of a major potential problem:
What if the player option clicks in the outfitter, and buys multiple outfits at once? Will the Engine evaluate the outfit's fields only one time, or will it check for every outfit? Anyone want to check on this?
~ SpacePirate
------------------ Eat blazing electric death!
Originally posted by SpacePirate: ** What if the player option clicks in the outfitter, and buys multiple outfits at once? Will the Engine evaluate the outfit's fields only one time, or will it check for every outfit? Anyone want to check on this?
Oh god. If it doesnt check for every outfit, that kinda shoots SS and a whole lotta other stuff in the foot. Knowing how Masa like token outfits, i cant imagine this would be at all good for SS. -Az
It evaluates it for every outfit. Don't worry. This has been tested and confirmed.
------------------ ~Charlie Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)
Originally posted by Masamune: **It evaluates it for every outfit. Don't worry. This has been tested and confirmed.
Thank Burch. (I was about to say "Thank god" but then remembered i dont belive in one, so i put in the closest equivilent for Nova) -Az
Even I you buy with the option key? I dunno, I'm just paranoid it might be not the case.
------------------ The (url="http://"https://secure.ambrosiasw.com/cgi-bin/store/hazel.cgi?action=serve&item;=breakdown.html&BREAKDOWN;_SKUID=1480")Ambrosia Mac CD(/url) with other registrations - 5$. Paying for (url="http://"http://www.ambrosiasw.com/games/evn/")EV Nova(/url) as it's such a great game - 30$. The (url="http://"http://www.ambrosiasw.com/games/evn/tshirts.html")1337 EV Nova T-shirt(/url) - 22$. The (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) by wOOtWare to tinker with your Nova - FREE! The feeling you're a Nova geek - priceless. There are things you can't buy or that are free, for everything else, there's indeed Eurocard Mastercard.
Originally posted by Zacha Pedro: Even I you buy with the option key? I dunno, I'm just paranoid it might be not the case.
That's what he was referring to...there's nothing to test if they click it a bunch of times. Obviously, it would evaluate every time.
------------------ The programmer's code of entomology: there's always another bug. Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url) (url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url)
While it is a scary idea that it might not be so, I often buy fuel using option-purchase, and I know it works.
Honestly, I can't think of any reason why it wouldn't be the case- that behaviour would just be stupid. Already, OnSell isn't done when you sell your ship, making using actual bits in the onPurchase a risky thing to do. This behavior noted above would only be acceptable if all you were using was bits. So, it would make outfits OnAnything pretty darn useless. I like to think MCB is a little smarter 'n that.
phew! Thank the Maker! (MCB, in this case. ;))