I think this should be the last script I need, a button item that plays String 2 when you press the button it's assigned to.
Simple Item Script
#1
Posted 17 March 2018 - 02:36 AM
#2
Posted 17 March 2018 - 02:48 AM
//D0: id of the item //D1: string # of the string to play item script itemstring { void run(int itemid, int string) { if(Link->PressA && (GetEquipmentA() == itemid)) { Screen->Message(string); } else if(Link->PressB && (GetEquipmentB() == itemid)) { Screen->Message(string); } } }
Not at all tested, but should still work.
Edited by Ganondorf, 17 March 2018 - 02:54 AM.
- Cukeman likes this
#3
Posted 17 March 2018 - 08:09 AM
I haven't tried it yet. But I was planning on trying it.
#4
Posted 17 March 2018 - 08:37 AM
Thank you Ganondorf!
#5
Posted 17 March 2018 - 10:24 AM
You didn't have to check for pressing the button. The action script only happens when you use the item anyway.Not at all tested, but should still work.
#6
Posted 17 March 2018 - 10:32 AM
item script ShowString { void run(int m) { Screen->Message(m); } }
#7
Posted 11 April 2018 - 05:25 AM
//D0: id of the item //D1: string # of the string to play item script itemstring { void run(int itemid, int string) { if(Link->PressA && (GetEquipmentA() == itemid)) { Screen->Message(string); } else if(Link->PressB && (GetEquipmentB() == itemid)) { Screen->Message(string); } } }Not at all tested, but should still work.
What are the possibilities of putting it on L? It would be the only thing possible to be on L (and be there from the start).
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users