[...]
> obj1 = read_object(3104, VIRTUAL);
> obj2 = read_object(7090, VIRTUAL);
> obj3 = read_object(3042, VIRTUAL);
> obj4 = read_object(7202, VIRTUAL);
> obj5 = read_object(3032, VIRTUAL);
You could do this:
int give_obj[] = { 3104, 7090, 3042, 7202, 3032, -1 };
int i;
for(i = 0; give_obj[i] != -1; i++) {
obj = read_object(give_obj[i], VIRTUAL);
obj_to_char(obj, victim);
}
Then you can add other items before the -1 in the list.
-Jeff
This archive was generated by hypermail 2b30 : 12/07/00 PST