[Idea] Dynamic Subscripts
Would be neat if we could have dynamic subscripts, maybe it would work something like:
`P#fs``B(``V"scripts.fullsec"``O,` `B{` `Nsector``O:` `V"FORM_ALPHA_0"` `B})`
Calling a script with the wrong security level would just return the error we already have for wrong a security level.
Code:
`Wfunction` `B(``Icontext``O,` `Iargs``B)` `B{`
`Yreturn` `P#fs``B(``Iargs``O.``Nscript``B)`
`B}`
CLI:
`A>>``Cswan``A.``Ltest` `A{` `Nscript``A:` `V"``Ftrust``V.``Lme``V"` `A}`
`DFailure`
Security level guarantee failed: subscript `Ftrust`.`Lme` 0 < `Cswan`.`Ltest` required 4
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The only reason I can think of for this not being a thing is a technical reason, that being the game has to dynamicly grab the dependency in the middle of runtime rather than at the start of runtime.
Less script run time is a fine trade off for dynamic subscripts imo.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
this is the standard string-to-scriptor request that's been around forever.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -