Hello!
I'm trying to create an item that gives a set number of XP to the actor that consumes it (later I'd like it to give a different number of XP depending on the actor, but I'm trying to get the first step working for now).
Here is what I did : I created a new item named "IceCream", that you can only use on the Menu screen, and the effect is a Common Event (also named "IceCream")
The content of the Common Event is as follows :
- first line displays a text box saying "Yummy! Got 35 XP!",
- second line is this code : $gameParty.targetActor().gainExp(35);
The Trigger is set to "None".
If I use the item on an actor, it works as intended.
The thing is that the Common Event runs (seemingly) by itself from time to time. If I run the game, after something like 20-30 seconds the text message "Yummy! Got 35 XP!" will pop up and the first actor in the party will get 35XP (wether I have the item in my inventory or not).
I'm sure there's a very simple explanation here, but I have no idea how to fix it.
I'm trying to create an item that gives a set number of XP to the actor that consumes it (later I'd like it to give a different number of XP depending on the actor, but I'm trying to get the first step working for now).
Here is what I did : I created a new item named "IceCream", that you can only use on the Menu screen, and the effect is a Common Event (also named "IceCream")
The content of the Common Event is as follows :
- first line displays a text box saying "Yummy! Got 35 XP!",
- second line is this code : $gameParty.targetActor().gainExp(35);
The Trigger is set to "None".
If I use the item on an actor, it works as intended.
The thing is that the Common Event runs (seemingly) by itself from time to time. If I run the game, after something like 20-30 seconds the text message "Yummy! Got 35 XP!" will pop up and the first actor in the party will get 35XP (wether I have the item in my inventory or not).
I'm sure there's a very simple explanation here, but I have no idea how to fix it.