I need help with create a CYOB feature for my mod. Think you could give me the code?
Offline
hmmm. I don't have Panther on this computer yet BUT I might be able to generate some code for CYOB. Its really simple, really. I did it once, (i didn't steal from Panther or BYOB) but I forgot to save the image for the end user, and I never tried again.
I do know that CYOB works by having two arrays. One dialog box comes up and you type the blockspec. That answer is stored in an array. Another dialog box comes up and it asks you for the code. With that said, when the first array(with the blockspecs) is called, in the pallete the blockspec is
('the blockspec of the array' #typeOfBlockPredefinedInAnotherArray #theNumberOfPlacemantInBlockspecArray)Ill explain it better.
1) the text in the array gets put in the ' ' s for the text in the array.
2) the kind of block is in another array (sorry, forgot to tell you earlier) and put n the blockspec selector space
3) the broadcast to the code is the number in the array, sort of like the (number (1) of list ^) block for lists
Thats the blockspec. Now for the code part.
When the code is created, it goes into a fileinner (sortof like Scratch patches) that generates the code, making the block work.
I'll try to give you the coe for it all, but I have to figure out what the code is first. I can't remember. All that is just to give youu an idea on how it works.
Offline