Hi.
I have a custom entity with tag "wrecks". I have a set of rules that 'should' run whenever a player is interacting with an entity with "wrecks" tag. Everything looks ok so far, right? In game I can click on an entity, so it is possible to interact with it. But there is no dialog pop up or anything - my fleet just floats over the entity.
If I set the entity tag to those that are used by stations or relays - everything works fine.
The question is simple - do I need to overwrite some interactionDialogue files and if yes - which ones and most importantly - HOW?
Entity settings:
Spoiler
"rsf_wrecks":{
"defaultName":"Station Wrecks", # used if name=null in addCustomEntity()
"defaultRadius":50, # used if radius<0 in addCustomEntity()
"customDescriptionId":"orbital_station_default",
"interactionImage":"graphics/illustrations/space_wreckage.jpg",
"icon":"graphics/icons/station0.png",
"iconWidth":24,
"iconHeight":24,
"sprite":"graphics/stations/station-rsf-wreck-1.png",
"spriteWidth":128,
"spriteHeight":128,
"renderShadow":true,
"useLightColor":false,
"showInCampaign":true,
"showIconOnMap":false,
"showNameOnMap":false,
"scaleNameWithZoom":false,
"tags":["wrecks"],
"layers":[STATIONS], # what layer(s) to render in. See CampaignEngineLayers.java for possible values
},
Rules for interaction dialogue:
Spoiler
# swrecks interactions,,,,,,
swrecksOpen,OpenInteractionDialog,$tag:wrecks,"ShowDefaultVisual
FireBest InitSWrecksDialog",,,
swrecksInit,InitSWrecksDialog,$tag:wrecks,"$menuState = main 0
#SetTextHighlightColors buttonText ""255,0,0,255""
#SetTextHighlights $shipOrFleet
FireAll PopulateOptions",Your $shipOrFleet approaches the massive field of debris. Apparently it once was an orbital station that was destroyed by someone or something. You can`t do anything with it in current version.,,
swrecksOptionLeave,PopulateOptions,$tag:wrecks,"SetShortcut crLeave ""ESCAPE""",,100:crLeave:Leave the wrecks alone,
swrecksLeave,DialogOptionSelected,$tag:wrecks,DismissDialog,,,