Hi,
I am starting to lern ruby at the moment. Let's say I would like to display a BattleLog message when a custom event of mine managed to... 'steal' a potion from the target.
BattleLog = Window_BattleLog.newBattleLog.add_text("Theft successful: Potion was stolen!")kind of works, but do I really need the new BattleLog object? Is there no way of calling a method just in one line of code and without adding in a new object (Windows_BattleLog.add_text("DoesNotWork?"))?
I believe there has to be an option since the 'Conditional Branch\Script' has just one line to call a method for true or false.
(Also the sample above does indeed add the text to the log but it never fanishes or gets replaced by new text from the vanilla Windows_BattleLog. Shouldn't 'Windows_BattleLog' handle the clearing of its messages? Any Ideas?)
I am starting to lern ruby at the moment. Let's say I would like to display a BattleLog message when a custom event of mine managed to... 'steal' a potion from the target.
BattleLog = Window_BattleLog.newBattleLog.add_text("Theft successful: Potion was stolen!")kind of works, but do I really need the new BattleLog object? Is there no way of calling a method just in one line of code and without adding in a new object (Windows_BattleLog.add_text("DoesNotWork?"))?
I believe there has to be an option since the 'Conditional Branch\Script' has just one line to call a method for true or false.
(Also the sample above does indeed add the text to the log but it never fanishes or gets replaced by new text from the vanilla Windows_BattleLog. Shouldn't 'Windows_BattleLog' handle the clearing of its messages? Any Ideas?)