Update time everyone! Hope this isn't too much of a thread bump, but this is the help topic for my mod. Progress has been good, but I still haven't quite found a way around the Soul-Meter problem.
However, there has been a little bit of work going on in that department. The latest update of the Tyranids mod has brought in their own new resource based on scar-code, Influence. So, in an attempt to make my own, I played around a bit with the files so I could learn how to properly code a scar file of the type. The lines that's got me scratching my head are the following:
Code:
function Influence_StartingRes()
Player_SetResource( World_GetPlayerAt(Tut_GetLocalPlayerIndex()), RT_Faith, 20 )
power = Player_GetResource( World_GetPlayerAt(Tut_GetLocalPlayerIndex()), RT_Faith )
InfCap = 20+16*CurSPs
if ( InfCap > 100 ) then
InfCap = 100
end
if ( power > InfCap ) then
Player_SetResource( World_GetPlayerAt(Tut_GetLocalPlayerIndex()), RT_Faith, InfCap )
end
Obviously that's using the Sisters of Battle's Faith resource as the base for their influence. Influence starts at 20, the cap for it is based on how many Captured strategics you have and Spore Towers slowly add to Influence like Sisters posts add to theirs. But if RT_Faith = Faith resource RT_Souls must be the Souls resource right? Well it doesn't quite work like that... I changed the values and added the soul harvesting unit from my mod the Gatherer. (Backing up my tyranids mod files so I could restore them when I was done first, of course.)
Unfortunately when he did harvest souls the meter didn't move at all, despite being set to it in code. I don't quite understand how it can access the Faith but not the Souls, they're both new resources to Soulstorm. Unless my name for the souls is incorrect and it isn't called "RT_Souls" which may be because the name value of the Soul Resource isn't listed or talked about anywhere in the game's files that I can find. Which just leaves me to wonder how the Dark Eldar have it show up for them. There must be some sort of code which tells it "Dark Eldar, the souls and soul abilities should show up."
Or maybe I could alter the Gatherer's Cannibalize_Ext so that it produces Faith from its collected Souls instead. Or perhaps I could start using the Ork Pop as a base and somehow edit that, I hear Tyranid Mod did that at a point. I tried ScreenEditor_Alpha and while it did allow me to look at the files, a huge help, all the flashy buttons on the top of the screen do nothing even when ran as Admin, so all I could do was change Text Values and even that screwed up to points. All I was able to gather was that the Soul Essence Resource Meter was there along with the Faith and Orks. So what is it exactly that makes it appear...