Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Script arguments

2 replies · 1,300 views · Started 27 March 2009

Is it by design that D0-D7 can be interpreted as any type of data in ZScript, or does it just happen to work anyway? It doesn't seem to be fully accounted for. For instance, if an argument read as an FFC is left at 0, it gives you the FFC that would be numbered 1 anywhere else.

I think that's just the bounds checking at work since FFC 0 isn't valid anyway. I'd have to check.

It *should* be by design that d0-d7 can be interpreted in any fashion, though obviously testing to confirm this would be nice.

jman2050 wrote:I think that's just the bounds checking at work since FFC 0 isn't valid anyway. I'd have to check.

Shouldn't be that - setting it to 1 gets you FFC #2.

Anyway, thanks. Good to know.