View Issue Details

IDProjectCategoryLast Update
0021720AI War 2Gameplay IdeaOct 2, 2019 6:17 pm
ReporterChris_McElligottPark Assigned ToBadgerBadger  
Status resolvedResolutionfixed 
Product Version0.895 Major Progress On Tutorials Framework 
Fixed in Version0.895 Major Progress On Tutorials Framework 
Summary0021720: Ability to have a tutorial step halt all waves until another tutorial step turns them back on.
DescriptionBadger, I'm assigning this to you not because I want you to implement the tutorial hook, but I'd definitely appreciate help with basically some methods I could call in order to turn these off and on.
TagsNo tags attached.

Relationships

child of 0021702 resolvedChris_McElligottPark Tutorial framework requests parent (any other short-term ideas?) 

Activities

BadgerBadger

Oct 2, 2019 5:31 pm

manager   ~0053408

How does one query whether a tutorial step is set? Is this some global flag the code could see?

Chris_McElligottPark

Oct 2, 2019 5:50 pm

administrator   ~0053411

Well... we could do it in that direction, if you wanted to. Let me hook in some data that will be easy to read.

BadgerBadger

Oct 2, 2019 5:53 pm

manager   ~0053412

Well, the DoPerSecond AI code right now says "Every X seconds, send a wave". So the most logical mechanism is to say "If we are in NoWavesTutorialMode, skip this bit of the code"

Chris_McElligottPark

Oct 2, 2019 5:55 pm

administrator   ~0053414

Actually, looking about implementing that... I'd rather not do it in that direction. What I'd like to do, if possible, is have some sort of external data that you control that says "don't do waves" and there's a method that my tutorial steps can call to trigger that on or off. So the tutorial steps are the callers, and yours just keeps track of the state and actually listens to it.

Does that seem feasible from your end? I think that's going to be the most consistent pattern for thing, having the waves be the active callers and other parts of the code be the passive consumers, since this also affects waves and such.

But I could also make them set data centrally if need be, that your code could be a consumer of.

Chris_McElligottPark

Oct 2, 2019 5:56 pm

administrator   ~0053416

Sure, that makes sense -- my last response was before seeing your last response. I think that basically the "WavesAreOff" flag would be something external data that you tell me how to trigger. And tutorials or anything else could trigger and un-trigger that mode, essentially.

BadgerBadger

Oct 2, 2019 5:59 pm

manager   ~0053418

Yeah, I can have a "WavesTemporarilyDisabled" flag in externaldata and check that.

BadgerBadger

Oct 2, 2019 6:17 pm

manager   ~0053419

Done; there's a WavesTemporarilyDisabled in the AIFactionExternal now.

Untested but I think it should work

BadgerBadger

Oct 2, 2019 6:17 pm

manager   ~0053420

Fixed

Issue History

Date Modified Username Field Change
Oct 2, 2019 5:12 pm Chris_McElligottPark New Issue
Oct 2, 2019 5:12 pm Chris_McElligottPark Status new => assigned
Oct 2, 2019 5:12 pm Chris_McElligottPark Assigned To => BadgerBadger
Oct 2, 2019 5:12 pm Chris_McElligottPark Relationship added child of 0021702
Oct 2, 2019 5:31 pm BadgerBadger Note Added: 0053408
Oct 2, 2019 5:50 pm Chris_McElligottPark Note Added: 0053411
Oct 2, 2019 5:53 pm BadgerBadger Note Added: 0053412
Oct 2, 2019 5:55 pm Chris_McElligottPark Note Added: 0053414
Oct 2, 2019 5:56 pm Chris_McElligottPark Note Added: 0053416
Oct 2, 2019 5:59 pm BadgerBadger Note Added: 0053418
Oct 2, 2019 6:17 pm BadgerBadger Note Added: 0053419
Oct 2, 2019 6:17 pm BadgerBadger Status assigned => resolved
Oct 2, 2019 6:17 pm BadgerBadger Resolution open => fixed
Oct 2, 2019 6:17 pm BadgerBadger Fixed in Version => 0.895 Major Progress On Tutorials Framework
Oct 2, 2019 6:17 pm BadgerBadger Note Added: 0053420