Page MenuHomeWildfire Games

Limited abilities for Introductory Tutorial
Needs RevisionPublic

Authored by azayrahmad on Jul 20 2021, 4:44 AM.



This patch creates custom templates for units and structures used in Introductory Tutorial. The custom units can only build structures required by the tutorial, and the custom structures can also only trains units and research technologies required in the tutorial.

There are some exceptions, for example Storehouse can still research first wood lumbering tech and Temples can train Healer which are not required by the tutorial but could be some kind of sneak peek for curious new players.

The purpose for this patch is to ease new players going into Introductory Tutorial by preventing them to be overwhelmed by the game UI and possibly unintentionally hinder them from finishing/enjoying the tutorial.

Example of Forge that can only research tech with sword icon (the tech name in the instruction is incorrect, but that's for another patch)

Test Plan
  • Play Introductory Tutorial from start to finish.
  • Confirm that units/structure/techs for the faction have been reduced to essentials only.
  • Confirm that the tutorial can be finished.

Diff Detail

rP 0 A.D. Public Repository
Lint Skipped
Unit Tests Skipped

Event Timeline

azayrahmad requested review of this revision.Jul 20 2021, 4:44 AM
azayrahmad created this revision.

I think it is cleaner to disable stuff using triggers.

I think it is cleaner to disable stuff using triggers.

Would you like to provide an example? I thought it would be best to use triggers for something like highlighting UI elements, but it seems that it's not possible yet.

azayrahmad added a subscriber: Restricted Owners Package.Jul 20 2021, 10:54 AM
wraitii requested changes to this revision.Aug 3 2021, 12:20 PM

Freagarach means using token modifiers to change the templates, instead of adding new templates. You can look at the tests I think for some examples.

This revision now requires changes to proceed.Aug 3 2021, 12:20 PM