Scripting:TWTriggerAIEcologyFireShadow

Building pieces of another world.
Revision as of 20:51, 22 June 2020 by gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) (Created page with "TWTriggerAIEcologyFireShadow implements an approximation of the old FireShadow behaviour where, when slain, the AI does not immediately die - instead it attempts to flee and i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

TWTriggerAIEcologyFireShadow implements an approximation of the old FireShadow behaviour where, when slain, the AI does not immediately die - instead it attempts to flee and increases speed rapidly.

This script also makes the AI drop items (fire crystals typically) and it handles despawning the AI and updating the AIEcology when the AI is removed.

Design Note Parameters

This script supports all the following arguments in the Editor -> Design Note in addition to the arguments given in the TWBaseScript and TWBaseTrigger documentation.

TWTriggerAIEcologyFireShadowRate
Type: time
Default: 1s
Once the AI has been slain, a timer is started with this rate which increases the speed of the AI every time it fires.
TWTriggerAIEcologyFireShadowSpeedup
Type: float
Default: 0.8125
The amount to multiply the AI's TimeWarp attribute by every time the timer fires. The smaller this is, the faster the speedup happens.
TWTriggerAIEcologyFireShadowMinTimewarp
Type: float
Default: 0.03
The minimum timewarp the AI can have as a result of repeated speedups.

See also


Authors

  • gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+]