Building & Scripting > Scripting Board
How Do I???
Diandra:
If the basket and plates are made as containers, try adding the following to the working script you already have.
Though depending on the scripttype there's a chance it won't load where it should be, so I'm not sure this is what you're looking for.
* load container
%load% obj vnum-basket
* saves the reference of the container in 'cont'
set cont %loaded%
* load each item in the container
%load% obj vnum-bread %cont.name%
%load% obj vnum-bread %cont.name%
%load% obj vnum-bread %cont.name%
%load% obj vnum-bread %cont.name%
* the above will have loaded 4 breads in the basket
* load a new container
%load% obj vnum-plate
* store the reference from the new container in 'cont' (or use something else)
set cont %loaded%
%load% obj vnum-cheese %cont.name%
%load% obj vnum-cheese %cont.name%
%load% obj vnum-cheese %cont.name%
%load% obj vnum-cheese %cont.name%
* the above will have loaded 4 cheeses on the plate
Anyway hope this can help you out.
Kvetch:
It works! Thanks, D. :)
Kvetchy
Navigation
[0] Message Index
[*] Previous page
Go to full version