For my Forestry mod, I want to display a notification message, just like the one that appears when a forest grows naturally.
Trip suggested this was possible by using the CyInterface.addMessage() function.
However, this function takes a TON of parameters. I tried adding all those, but I made some mistake I can't pinpoint.
Can anybody tell me what obvious error I made?
CyInterface().addMessage(pPlot.getOwner(),false,20,'A Tree Nursery has turned into a Forest',gc.getGoodyInfo(0).getSound(),0,gc.getFeatureInfo(4).getIcon(),CvGame().getReplayMessageColor(0),pPlot.getX(),pPlot.getY(),true,true)
_____
rezaf
Trip suggested this was possible by using the CyInterface.addMessage() function.
However, this function takes a TON of parameters. I tried adding all those, but I made some mistake I can't pinpoint.

Can anybody tell me what obvious error I made?
CyInterface().addMessage(pPlot.getOwner(),false,20,'A Tree Nursery has turned into a Forest',gc.getGoodyInfo(0).getSound(),0,gc.getFeatureInfo(4).getIcon(),CvGame().getReplayMessageColor(0),pPlot.getX(),pPlot.getY(),true,true)
_____
rezaf