This script plays one of two message strings when Link picks up an item, unless Link has the item listed in argument D2.
Would it be doable to modify this so that Link also holds up the item (if Link doesn't have item D2)? Thanks for any help.
//////////////////////////////////////////////////////////////// // AdvPickUpMessage by // // Joe123, MoscowModder, Isdrakthül, // // cavthena, Coolgamer012345, Cukeman // // // // Displays Message D0 or D1 (identical Strings with // // different [Y] height values) based on Link's screen // // position. Used to prevent Message Strings from covering // // Link's sprite when he picks up the item. Also, if Link // // already has item D2, no message will be displayed. // //////////////////////////////////////////////////////////////// //D0: Number of Message String to display if Link is near the bottom of the screen //D1: Number of Message String to display if Link is near the top of the screen //D2: ID of Item that prevents Message String from being displayed item script AdvPickUpMessage { void run(int stringA, int stringB, int stringPreventItemID) { if(!Link->Item[stringPreventItemID]) { if(Link->Y > 88) { Screen->Message(stringA); } else { Screen->Message(stringB); } } } }