Can someone Make A Chest Script?
I would like to place multiple chests it one subscreen
I was thinking arguments like..
A0 closed combo
A1 open combo
A2 item it contains
A3 sound1 it plays when opened or - 1 for nothing
A4 sound2 it plays when opened or - 1 for nothing
A5 text it shows when opened or -1 for nothing
A6 item it requires to open or -1 for nothing
Edit Better yet I'm going to try to do it myself.
however how do I get a ffc scripts arguments?
here is my code for tonight I'll work more on it tomorrow
if you guys see anything wrong with it so far please let me know.
import "std.zh" ffc script Chest { void run(int arg) { ffc Chest = Screen->LoadFFC(1); int OpenCombo = arg; bool Closed = true; while (Closed) { if (Link->InputB && (Link->X == Chest->X && Link->Y == (Chest->Y+1.0))) { Chest->Data = OpenCombo; Closed = false; } } } }
Edited by Shadowblitz16, 14 May 2016 - 01:26 AM.