Sys_Does_Empire_Have_Ability Function |
Hey Kwok (and other modders)
I'm trying to make it so races with the 'natural merchants' ability dont build space ports. So I used the Sys_Does_Empire_Have_Ability function to check if the empire has the ability
I have tried both the following:
set str := "Natural Merchants"
set natural_merchant := Sys_Does_Empire_Have_Ability(sys_long_Player_ID, str)
set natural_merchant := Sys_Does_Empire_Have_Ability(sys_long_Player_ID, "Natural Merchants")
With no success. It comes back false even though the empire does have this ability.
Script_AI_Construction.txt(1472): Call Sys_Does_Empire_Have_Ability(long[1], string[Natural Merchants])
Script_AI_Construction.txt(1472): Set natural_merchant(boolean[FALSE]) := boolean[FALSE]
Any thoughts? Or any other way to get around this? Thanks
-unnamed




Re: Sys_Does_Empire_Have_Ability Function
It's the ability name itself not Natural Merchants, so use "Points Added To Empire Pool".
-----
Space Empires Depot | SE:V Balance Mod