Posted: Sat May 03, 2008 12:47 pm Post subject: How to pass a parameter to a ControlScript?
Hi.
I wrote a script for an item which, when used by a character, creates another item. This created item has a ControlScript and I need to pass the character who used the previous script to that ControlScript. I've tried SetObjProperty(item, "Creator", who); in the first script, and creator := GetObjProperty(item, "Creator"); in the ControlScript, but, when I want to create another item (through the ControlScript) using CreateItemInContainer(creator.backpack, [hex-type], [amount]); it doesn't seem to work :/ I think the method in itself is OK and who isn't correct. I've tried who.serial, but it doesn't seem to work either :/
Any suggestions?