Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

MultiAdd (lines 2861-2877)

2861  !  The MultiAdd routine adds object "o" to the multiple-object-list.
2862  !
2863  !  This is only allowed to hold 63 objects at most, at which point it ignores
2864  !  any new entries (and sets a global flag so that a warning may later be
2865  !  printed if need be).
2866  ! ----------------------------------------------------------------------------
2867   
2868  [ MultiAdd o i j;
2869    i=multiple_object-->0;
2870    if (i==63) { toomany_flag=1; rtrue; }
2871    for (j=1:j<=i:j++)
2872        if (o==multiple_object-->j) 
2873            rtrue;
2874    i++;
2875    multiple_object-->i = o;
2876    multiple_object-->0 = i;
2877  ];


Last updated 27 February 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.