login

Author Topic: Sadness! Script param cap.  (Read 2847 times)

Offline Winter

  • I am Tek Jansen!
  • Administrator
  • *****
  • Posts: 476
  • MBX Forum owner
    • View Profile
    • Street of Eyes: The Writing of Ryan A. Span
Sadness! Script param cap.
« on: October 18, 2007, 01:23:04 PM »
There is a hard cap on script parameters -- the maximum number you can have on a single script is 16. Any more and you'll get an assert on gamestart announcing "num params > 16".

 :(

Offline fujiwara

  • Master
  • *****
  • Posts: 858
    • View Profile
Re: Sadness! Script param cap.
« Reply #1 on: October 18, 2007, 08:22:13 PM »
I suppose Armagan had to put a limit somewhere...

Still sad though

The horses tend to get their legs caught in the catapult rather than being properly launched.

Offline Hellequin

  • Journeyman
  • ***
  • Posts: 254
    • View Profile
Re: Sadness! Script param cap.
« Reply #2 on: October 19, 2007, 10:24:38 AM »
Ah, well.  At least it's plenty high.

And, heck, you could always write a standard script which goes something like this:
Code: [Select]
(extend_params,[
  (set_script_param, "$Extended_param_1", 1),
  ...
  (set_script_param, "$Extended_param_16", 16)
  ]),

... if you really want to keep consistency.  Two calls still ain't bad.