(side note: is the second "dark magic" link the equivalent of eval() or something? If so, could any game-breaking events occur due to actions triggered by chests in a level editor?)
Free time is nice time.
Age 31, Male
Somewhere in the North
Joined on 12/15/10
(side note: is the second "dark magic" link the equivalent of eval() or something? If so, could any game-breaking events occur due to actions triggered by chests in a level editor?)
Yes and yes. You can have it run any code you like, and yeah that code could have issues. I tell it who the NPC is and do like "speakingTo.playAnim('chest_open')" and "Service.inv.acquireItem('potion')" kinds of things, but yeah execute any code.
Update! Woohoo! Now that there'll be plenty more screenshots to show off in our new builds, I can get back to spamming new stuff on Twitter.
Basically.
Good post, congrats on graduating and making the code work.
Thanks, hopefully will have a demo at the end of the month.
Gimmick
Is the first "dark magic" link just a class that acts as a container? With (what looks like) a tree structure inside it?
MSGhero
It's not a class you use directly, but it's the base class of how layouts are arranged. You define layouts in XML, and you can use relative widths and heights ("make a button 50% as wide as its container"). A bunch of relative dimensions are a pain to deal with, but this class does it.