I try to create a global goal, I start with API documentation http://nogo.openttd.org/api/1.4.0/class ... 0645b67467
Code: Select all
GSGoal.New(company, goal, type, destination)
I can read that I must use GSCompany::COMPANY_INVALID as company, ok.
I'm not sure which GoalType I must use for "global goal", I pick GT_NONE.
but what is destination ? it's not clearly explained. I guess destination is a town when GoalType is GT_TOWN (same with industry) but other case ? I guess I must leave it zero... it's not explained.
Here is what I tried :
Code: Select all
GSGoal.New(GSCompany.COMPANY_INVALID,GSText.STR_GOAL1,GSGoal.GT_NONE, 0);
it does not gives any error, but I cannot see any goal.
I tried also this one :
Code: Select all
GSGoal.New(GSCompany.COMPANY_INVALID,GSText.STR_GOAL1,GSGoal.GT_COMPANY, 0);
I searched for "GSGoal.New" on wiki and in this forum, without any success... I'm wondering how you create goals ? are API texts enough for you ? please tell me what's wrong ?
Also this sentence makes me troubles :
Global goals can only reference global story pages
I guess story page are a part of story book.
But I don't want to have story book at all,
I played multiplayer games which had global goal without storybook. (I don't know the name of the script btw)
Then I think it's only relevant for GT_STORY_PAGE type, which is not what I want.
sorry, I feel too dummy.
than kyou for your help.