Sys traps h
The Traps System include file, sys_traps_h, contains trap functions.
Comments state that core_difficulty_h has been included for its damage-scaling functions and sys_autoscale_h for its auto-scaling functions which are used by the summoning traps.
No right bracket on expression error
The current version of sys_traps_h uses the GetCommandObject function which was added to script.ldf by the Dragon Age: Origins v1.02 patch. Trying to compile any script which includes sys_traps_h with an older version of Dragon Age: Origins installed (i.e. v1.00 or v1.01) will generate a No right bracket on expression error. Updating Dragon Age: Origins to v1.02 or later resolves this issue.