SCRMaps
/
Sign in

Reading three shipped examples

The difference between Trigger, RawTrigger and DoActions, and when each is right.

5 min read

euddraft comes with a few examples, and they are worth reading because there are three ways to do the same thing and they explain the difference.

Which of the three
DoActionsRuns actions with no condition. The lightest.
RawTriggerMakes a trigger with conditions and actions, as it is.
TriggerWhat you need when a condition holds a variable: the code that feeds the value in is generated with it.

Why a condition holding a variable needs Trigger is in an earlier lesson: a variable is a number field in an action, and moving that value over into a condition takes a few more triggers to do.

One of the examples writes into a table of equal-width values, like the supply costs. Instead of naming each address it adds index times stride to a base - and once you have seen that shape, every dat table looks like it.

The eudplib trigger reference
Sign in to track your progress