Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Script: StoryPageElementType SPET_EVENT #5616

Closed
DorpsGek opened this issue Jun 25, 2013 · 10 comments
Closed

Game Script: StoryPageElementType SPET_EVENT #5616

DorpsGek opened this issue Jun 25, 2013 · 10 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

idioty opened the ticket and wrote:

When someone click on one element in the story book, call new GSEvent with reference ID. Like GSEventGoalQuestionAnswer.

Reported version: Version?
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/5616
@DorpsGek
Copy link
Member Author

Zuu wrote:

I was thinking about adding some type of answer option element that will allow you to ask questions in the Story Book. However I have left it out of the initial Story Book implementation that is now in trunk.

The Story Book wiki contains a section for possible future extensions: https://secure.openttd.org/wiki/Story_book# Possible_future_extensions

I haven't yet figured out how I want to implement this. I don't think that there should be an event for items used to refer to tiles/goals. These elements allow the GS to refer to things without there being a delay between the click of a button and the GS responding.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12348

@DorpsGek
Copy link
Member Author

Zuu wrote:

To allow for some discussion, I can see multiple ways to do this:

- radio + check buttons that submit upon the click of either some submit/ok-button inside the page view or upon click of next
- buttons/elements that send an event when the user clicks on them (like your suggestion)

With radio buttons, can there be multiple radio groups on one page?

To follow TTD style, the radio buttons possible should be implemented as a drop-down or using push buttons.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12349

@DorpsGek
Copy link
Member Author

idioty wrote:

I like both of these solutions.
The drop-down list is more transparent than the radio buttons.
I think you should submit button and also linkable components may be.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12353

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 3, 2013

idioty wrote:

Any news on this?


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12481

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 3, 2013

Zuu wrote:

I haven't started on any implementation yet. There are still things like #5617 to fix. Also I have planned to hide the story/goal buttons in the main menu when no pages/goals exist.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12482

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 3, 2013

idioty wrote:

thanks!


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12484

@DorpsGek
Copy link
Member Author

idioty wrote:

I need to clickable elements also in StoryPage element with GSText:
{TOWN}: show the town,
{COMPANY}: show the companys info window, etc...


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12634

@DorpsGek
Copy link
Member Author

Zuu wrote:

For {TOWN} you can use SPET_LOCATION and feed it with the location of your town.

Yes it would be pretty with a town icon, a station icon etc. but I chosen to only use a generic SPET_LOCATION to simplify things.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12635

@DorpsGek
Copy link
Member Author

idioty wrote:

Thanks, you're right with SPET_LOCATION! :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/5616#comment12639

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Goal/Game script labels Apr 7, 2018
@TrueBrain
Copy link
Member

I fully agree this can be useful, but a list of wishes already exist! So I don't think keeping this issue around is helping; closing!

@frosch123 frosch123 added the component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) label Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

3 participants