Hello,
I need some help with Event Image management.
Currently I run into an issue whereby I want to show to the player an interaction between two events - namely, if a customer (Event 1) buys the item displayed on the table (Event 2), they will take the item and leave currency on the table.
Issue I am facing? The currency does not appear.
For more information, I am using Yanfly's Self Switches & Variables and Event Copier for these events.
This is how I did the eventing:
I had the event that outlines whether the customer decides to buy or not in a common event:
So if the Customer confirmed that there is an item on the Table, and they decide to buy the item, then it should change the Table event from an item to the selected currency via the common event TableAfterItemSold, which is displayed here:
However, the image on the Table event did not appear as according to the Script calls I wrote, namely, [$gameMap.event(1).setImage('Essence', 0);].
I can be sure that the expression works, because when I put it in an event on the map with the Customer and Table events by itself, the image triggered. So my guess is one of these complications:
1. It is in a common event, so $gameMap.event() does not work => I don't think this is likely, but there's always a chance, so I am asking here.
2. The original Table and Customer event is in a Template Map (Map 002), and they are copied into Tables and Customers events in the Actual Map (Map 001) via notetags. When I wrote this expression, they were changing the original event in the Template Map and not the Actual Map.
3. Something else that I have yet to catch and understand, please enlighten me.
What I can already confirm:
1. The Script Calls in the TableAfterItemSold event works; for example, when I put in a line of text within the conditional branch of: [If : Script : this.getSelfVariableValue(1, 1, 22) === $dataItems[44].name], the texts shows up in game.
2. The Plugin commands of [SelfSwitch Map 1, Event 1, Switch 60 to true] and other similar types of Plugin commands worked, because when I put in a dummy image in the Event to see if the switch is activated, it did turn up.
Based on what I tested and confirmed, I think, but I am not sure, that the issue lies with the $gameMap.event() in the common event, so if anyone knows what is happening, please help me.
PS: This section here is not related to event images, and I am still trying to figure it out, but if anyone can help, please do.
This is the page where the currency from the above issue is supposed to appear, and by interacting with this page, the player claims the currency left on the table.
Issue I'm facing: the Script Call [$gameParty.gainItem($dataItems[44], $gameVariables.value(23))] does not seem to add any items into the player's inventory.
What I can confirm:
1. The Script Call condition [If : Script : $gameVariables.value(22) === $dataItems[44].name] works. I have placed text within the conditional branch and it shows up in game.
2. $gameVariables.value(23) is a defined integer (1~9) that is not 0. This is confirmed via text \V[23] within the conditional branch.
Again, based on what I tested and confirmed, I think, but I am not sure, that the issue lies with the Script Call [$gameParty.gainItem($dataItems[44], $gameVariables.value(23))]. If anyone knows what I have done wrong, please teach me.
Thank you for spending the time to read such a lengthy post!
Wilderi
I need some help with Event Image management.
Currently I run into an issue whereby I want to show to the player an interaction between two events - namely, if a customer (Event 1) buys the item displayed on the table (Event 2), they will take the item and leave currency on the table.
Issue I am facing? The currency does not appear.
For more information, I am using Yanfly's Self Switches & Variables and Event Copier for these events.
This is how I did the eventing:
I had the event that outlines whether the customer decides to buy or not in a common event:
So if the Customer confirmed that there is an item on the Table, and they decide to buy the item, then it should change the Table event from an item to the selected currency via the common event TableAfterItemSold, which is displayed here:
However, the image on the Table event did not appear as according to the Script calls I wrote, namely, [$gameMap.event(1).setImage('Essence', 0);].
I can be sure that the expression works, because when I put it in an event on the map with the Customer and Table events by itself, the image triggered. So my guess is one of these complications:
1. It is in a common event, so $gameMap.event() does not work => I don't think this is likely, but there's always a chance, so I am asking here.
2. The original Table and Customer event is in a Template Map (Map 002), and they are copied into Tables and Customers events in the Actual Map (Map 001) via notetags. When I wrote this expression, they were changing the original event in the Template Map and not the Actual Map.
3. Something else that I have yet to catch and understand, please enlighten me.
What I can already confirm:
1. The Script Calls in the TableAfterItemSold event works; for example, when I put in a line of text within the conditional branch of: [If : Script : this.getSelfVariableValue(1, 1, 22) === $dataItems[44].name], the texts shows up in game.
2. The Plugin commands of [SelfSwitch Map 1, Event 1, Switch 60 to true] and other similar types of Plugin commands worked, because when I put in a dummy image in the Event to see if the switch is activated, it did turn up.
Based on what I tested and confirmed, I think, but I am not sure, that the issue lies with the $gameMap.event() in the common event, so if anyone knows what is happening, please help me.
PS: This section here is not related to event images, and I am still trying to figure it out, but if anyone can help, please do.
This is the page where the currency from the above issue is supposed to appear, and by interacting with this page, the player claims the currency left on the table.
Issue I'm facing: the Script Call [$gameParty.gainItem($dataItems[44], $gameVariables.value(23))] does not seem to add any items into the player's inventory.
What I can confirm:
1. The Script Call condition [If : Script : $gameVariables.value(22) === $dataItems[44].name] works. I have placed text within the conditional branch and it shows up in game.
2. $gameVariables.value(23) is a defined integer (1~9) that is not 0. This is confirmed via text \V[23] within the conditional branch.
Again, based on what I tested and confirmed, I think, but I am not sure, that the issue lies with the Script Call [$gameParty.gainItem($dataItems[44], $gameVariables.value(23))]. If anyone knows what I have done wrong, please teach me.
Thank you for spending the time to read such a lengthy post!
Wilderi