17 public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Token> params, Map<String, MemoryAPI> memoryMap) {
22 String
id = params.get(0).getString(memoryMap);
23 PersonAPI person =
Global.
getSector().getImportantPeople().getPerson(
id);
28 String portrait_key = params.get(1).getString(memoryMap);
31 if (person.getMarket() ==
null)
return false;
32 if (person.getMarket().getCommDirectory() ==
null)
return false;
33 if (person.getMarket().getCommDirectory().getEntryForPerson(person.getId()) ==
null)
return false;