Hey, ambitions don't want to cooperate. This ambition does not appear under ambitions selection. I commented out a bit of script because I figured that I might have confused triggers and commands somewhere. All of the non-out-commented code is identical to an ambition in HIP, which should work in HIP. The same code does not work in my mod.
Code:
# Become sage ambition
obj_become_sage = {
type = character
potential = {
ai = no
}
allow = {
#religion = pagan
#has_focus = focus_theology
#NOT = { trait = sage }
NOT = { trait = incapable }
prisoner = no
}
chance = {
factor = 0
}
success = {
ai = no
#trait = sage
}
#creation_effect = {
# add_trait = aspiring_sage
#}
abort = {
OR = {
trait = incapable
ai = yes
prisoner = yes
}
}
abort_effect = {
#remove_trait = aspiring_sage
#prestige = -50
#piety = -50
}
effect = {
prestige = 50
piety = 50
give_nickname = nick_the_sage
#remove_trait = aspiring_sage
}
}
Also, additional info about this ambition:
- The ambition code is in "common/objectives/sage_ambition.txt".
- There is localization for "obj_become_sage_title" and " and "obj_become_sage_desc".
- I copied one of the vanilla ambition icons into my "gfx/ambitions" folder and renamed it into "obj_become_sage.dds".
- I made a spriteType entry into my .gfx file in interface.
code in my gfx file:
Code:
spriteTypes = {
spriteType = {
name = "GFX_trait_sage"
texturefile = "gfx/traits/pagan_sage.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_aspiring_sage"
texturefile = "gfx/traits/pagan_aspiring_sage.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_obj_become_sage"
texturefile = "gfx/ambitions/pagan_become_sage.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
}
How do I make it work?