.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEV Modders Knowledge Base (http://forum.shrapnelgames.com/forumdisplay.php?f=154)
-   -   Modding SEV Thread Questions (http://forum.shrapnelgames.com/showthread.php?t=30358)

Captain Kwok October 18th, 2006 06:48 PM

Re: Plague extension
 
It's important to note that the amounts of Engines/LS/CQ that the AI will add to a vehicle size is "hard-coded" and they will continue to follow them regardless of how you change the data file. You'll need to edit Script_AI_GlobalSettings.txt file to correct for this and recompile all the AIs.

Fyron October 18th, 2006 08:13 PM

Re: Plague extension
 
I see my answer was missed earlier:

Quote:

Imperator Fyron said:
Adding a max per ship can be done via the vehicle hulls, as in that LCX thread, or you could probably work something into the placement requirements of the component.


President_Elect_Shang October 18th, 2006 11:23 PM

Re: Plague extension
 
No I was just using the battleship as an example; I thought the “Burger King” gave it away (he-he). My dry humor doesn’t work in written word either I see! At least I’m consistent.

The good news is that Fyron’s AI Tag (his example) works as will any actual ability. For example I used sight range and it worked.

The bad news is the ability will not work in the components; it will only work in the vehicles.

On a last note, I have no idea why I want to stick an “a” in digraph. At this point it has become the joke of the class.

President_Elect_Shang October 18th, 2006 11:53 PM

Re: Plague extension
 
Would this be a legal statement and a self terminating seeker at range 40?

Weapon Seeker Tonnage Structure Formula := 10 - iif ([%Range%] >= 40, 0)

Suicide Junkie October 19th, 2006 12:01 AM

Re: Plague extension
 
No, but that's because your iif only has two parts.
iff( <condition>, <do-if-true>, <do-if-false> )

In addition, subtracting zero from 10 equals 10.
There is also the question of what range means to a seeker in flight.

Suicide Junkie October 19th, 2006 12:04 AM

Re: Plague extension
 
Quote:

President_Elect_Shang said:
...
On a last note, I have no idea why I want to stick an “a” in digraph. At this point it has become the joke of the class.

Perhaps because you are thinking of "diagram"?

President_Elect_Shang October 19th, 2006 12:22 AM

Re: Plague extension
 
I keep getting the error: Could not parse formula.

So I will have make a note of how they work, I have a feeling there will be plenty of other errors when I do a first test run. Hard way to learn but I will learn. I don’t have the slightest notion how it would treat range, I needed a way to make the seeker either inflict no damage or what I am truly trying for is to “self destruct” itself (so-to-speak) at a certain cutoff range. How about:

iif ([%Range%] <= 40, 10, 0)

I draw diagrams for some of the more complex digraphs so that could be it. Or maybe because it makes the kids laugh and that has reinforced it to the point of habit. http://forum.shrapnelgames.com/images/smilies/cool.gif

Edit:
Need to correct myself: I already have the seekers doing no damage past a certain range, well I am fairly confident that is what I did.

Phoenix-D October 19th, 2006 12:25 AM

Re: Plague extension
 
The syntax for the forumlas has to be fairly exact.

DON'T put that space between the iif and the (, for example. Just plain iff(

President_Elect_Shang October 19th, 2006 12:37 AM

Re: Plague extension
 
YES!!!!!!!!!!!!!!!!

Ladies and gentlemen the seeker self-destructed at a range of 40! The weapon flew at the other ship and at the correct range there was an explosion and the seeker disappeared even though it was nowhere close to the other ship!

Formula used: iif([%Range%] <= 40, 10, 0)

Suicide Junkie October 19th, 2006 12:45 AM

Re: Plague extension
 
What's the range of the missile tho? They do naturally fizzle when their damage at range hits zero.


All times are GMT -4. The time now is 06:45 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.