[Idea] Dynamic Subscripts
`DPLEASE ARCHIVE THIS`
Would be neat if we could have dynamic subscripts, maybe it would work something like `C#fs.call("scripts.fullsec", { sector: "FORM_ALPHA_0" })`.
Calling a script with the wrong security level would just return the error we already have for wrong a security level.
Code:
`Cfunction (c, a) {`
`C return #fs.call(a.script)`
`C}`
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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -