Marza Dreadnought "Raze Planet" on ships.
I was wondering if it was possible to have the Marza's seige cannons be able to fire upon ships somehow.
Thanks
I was wondering if it was possible to have the Marza's seige cannons be able to fire upon ships somehow.
Thanks
Change the target filter in the ability entity to include Frigates and Corvettes...could include caps and titans if you wanted to...
You'll need to add a new buff that uses DoDamage instead of DoDamageToPlanet, however.
Lol yeah that would also be important....
How exactly would I be able to do that?
Download the reference files from Harpo9999's link and make a mod.
I already have a custom mod that I use from the Reference files. Im just wondering where Im supposed to change the buffs.
Now, that is a Marza I rather not meet....
I dont really understand how, so could someone maybe Send me a modified Razeplanet file?
Why? This is a mod you want. You should learn how to make it.
I would but every time I edit, when I launch the game, it crashes due to a runtime error.
So:
does the un-modded game crash wiht the same runtime error?
if yes, then there is a compatability issue between your computer setup and sins,
if no have you tried running the mod in the dev.exe? it might be able to help you track down exactly where the error is
harpo
Look at an ability like detonate antimatter that does different effects to different target types. That should be a good template. Doesn't seem like any of the pros have the energy right now to tell you in detail, so for now just try your best and ask any specific questions that come up. Either you'll figure it out or someone will respond in detail when they have more time.
Look in the current Raze Planet buff file, and find the entry that has the "doDamageToPlanet". It should look something like this....
Keep in mind I am doing this from memory so it may not all be correct, but should put you in the right direction.
"numOnDelayInstantActions (or something like this) 1
onDelayinstantActionType "DoDamageToPlanet"
delayTime 0.0000000
>doDamage
>>level:0 xxxxx
>>level:1 xxxxx
>>level:2 xxxxx
>>level:3 xxxxx"
You want to change it to something like the following:
"numOnDelayInstantActions (or something like this) 2
onDelayinstantActionType "DoDamageToPlanet"
delayTime 0.0000000
>doDamage
>>level:0 xxxxx
>>level:1 xxxxx
>>level:2 xxxxx
>>level:3 xxxxx
onDelayinstantActionType "DoDamage"
delayTime 0.0000000
>doDamage
>>level:0 xxxxx
>>level:1 xxxxx
>>level:2 xxxxx
>>level:3 xxxxx"
Also, to make it target ships you need to go to the "targetFilter" section of the Raze Planet ability file and make the following changes. like before, I am doing this from memory so it may not be completely accurate, but you should get the idea...
Find the lines in the ability file (will be near the top) that say:
"numTargets 1
>planet
targetFilter
>enemy
numSpaces 0"
And make the changes to the "numTargets" area:
"numTargets 5
>planet
>corvette
>frigate
>capitalShip
>titan
targetFilter
>enemy
numSpaces 0"
Hope this helps!
Which buff file? BuffRazePlanetTarget or BuffRazePlanetLauncher?
You apply the damage changes (1st part of post) to the "buffRazePlanetTarget" file, and the the second part regarding the target info goes into the Ability file. However, the buffrazeplanetlauncher file may also have the target info too. If that is the case then you should put it in both the ability and buff----launcher files.
Does that make sense?
I did what you said but it still gives me a Runtime error
Do you have an entity coded wrong? Like a capitalship that is in the titan slot on the player.entity file?
Alot of stuff can cause a runtime error, the one I ran into was when I tried to put a different ship in for a titan.... Titans are coded differently than capitalships, which caused a runtime error.... You are sure its a runtime error and not a "minidump".... Are you running the game in the developer exe? If not, you need to be so it will give you a starting point on where to go for error troubleshooting.
All the errors seem to come from the BuffRazePlanetTarget file.
I cant see anything wrong with the code. Can you try and clear it up for me? Heres the file
http://www.mediafire.com/download/dd4tyms86pp98ad/BuffRazePlanetTarget.entity
[quote who="Lord_English" reply="19" id="3375160"]
Quoting Makon86, reply 18
.
All the errors seem to come from the BuffRazePlanetTarget file.
I cant see anything wrong with the code. Can you try and clear it up for me? Heres the file
http://www.mediafire.com/download/dd4tyms86pp98ad/BuffRazePlanetTarget.entity[/quote]
Sure I can take a look at it when i get home from work.
Here you go.
This should work... If it still dumps, let me know.
It no longer Minidumps/crashes but ingame, attempting to select the Raze Planet ability, all there is is a blank sign with the words "String not Found"
Thats odd, I edited your file. The ability should still work regardless of wether or not the string is setup correctly.
The string used is in the ability file not the buff so you must have changed something in the ability.
I cant find anything wrong with the Ability file, though Im not accustomed to script changing. If anyone wants to give it a try, heres the ability file
http://www.mediafire.com/download/ots1ku6eu9zct6e/AbilityRazePlanet.entity
Welcome Guest! Please take the time to register with us.