Is there a simple plugin to allow javascript in notetag like in VX ACE? Using the damage formula box is such a pain. I checked out Yanfly's scripts, but you end up with so much extra "stuff" that it is not as appealing. Thanks for the help.
Notetag
RPG Maker MV SupportYou dont really need to use the 'extra' stuff. Lunatic Mode is for designers who wanna create more interesting, unique or even dynamic effects using Javascript.
Most plugins, including Yanfly's, do use normal notetags. It seems like you didnt actually read the helpfile plugin writers have taken their time to type out properly.
As for your damage formula problem, check Yanfly's Damage Core. It allows you to write in different ways. For example, you can write:
(a.isStateAffected(4)) ? (a.atk * 6 - b.def * 2) : (a.atk * 4 - b.def * 2)
Or cleaner way as a notetag:
<damage formula>
if (a.isStateAffected(4)) {
value = a.atk * 6 - b.def * 2;
else
value = a.atk * 4 - b.def * 2;
}
</damage formula>
'a' can be easily replaced by 'user' and 'b' replaced by 'target'.
Hope that helps! Good luck!
- Riff
Most plugins, including Yanfly's, do use normal notetags. It seems like you didnt actually read the helpfile plugin writers have taken their time to type out properly.
As for your damage formula problem, check Yanfly's Damage Core. It allows you to write in different ways. For example, you can write:
(a.isStateAffected(4)) ? (a.atk * 6 - b.def * 2) : (a.atk * 4 - b.def * 2)
Or cleaner way as a notetag:
<damage formula>
if (a.isStateAffected(4)) {
value = a.atk * 6 - b.def * 2;
else
value = a.atk * 4 - b.def * 2;
}
</damage formula>
'a' can be easily replaced by 'user' and 'b' replaced by 'target'.
Hope that helps! Good luck!
- Riff
Yeah, that does. For days I have been trying to find an easy way to have a skill when successfully done, would trigger a second skill. I think I can do it with what you just showed.
$gameVariables.value(90) = 1;
The second I try to do any scripting in the damage formula area, it doesn't work. Just assigning a value to this variable causes this problem. Am I missing something?
*Sorry for the double post. I am just so frustrated right now. I hate getting caught on these problems and it ruins the only time I have to work on the game. My problem is I am trying to slowly convert my game from Ace to MV and I keep hitting so many road blocks. I think the most frustrating things are when it should be easy, but for some reason it is not.
I have a lot of skills that have small % chance of performing a secondary skill. I just can't seem to get ANY skill to perform a second skill. I tried to use Yanfly's action sequence, but I don't need 99% of all the stuff that is bundled with it. The issue is some of the skills need to perform a skill that does a certain element and the secondary skill is a different element. Having to manually script every single skill is brutal, so just having a simple command to trigger a second skill would save endless hours of work.
The second I try to do any scripting in the damage formula area, it doesn't work. Just assigning a value to this variable causes this problem. Am I missing something?
*Sorry for the double post. I am just so frustrated right now. I hate getting caught on these problems and it ruins the only time I have to work on the game. My problem is I am trying to slowly convert my game from Ace to MV and I keep hitting so many road blocks. I think the most frustrating things are when it should be easy, but for some reason it is not.
I have a lot of skills that have small % chance of performing a secondary skill. I just can't seem to get ANY skill to perform a second skill. I tried to use Yanfly's action sequence, but I don't need 99% of all the stuff that is bundled with it. The issue is some of the skills need to perform a skill that does a certain element and the secondary skill is a different element. Having to manually script every single skill is brutal, so just having a simple command to trigger a second skill would save endless hours of work.
MV is still new, i guess these kind of roadblocks should be expected. That is why currently i am focusing on database and storyline (and trying to map too) before going into the battle mechanics. More and more plugins are coming, so there'd be a lot of additions and changes.
Back to the triggering of other skills (ala linked skills?), i'm not sure if it's possible now without the use of common events, which is tedious, IMO. If you wait bit longer, something should come up. Altenatively, you can post a plug-in request in the correct section and see if someone can write something soon.
Back to the triggering of other skills (ala linked skills?), i'm not sure if it's possible now without the use of common events, which is tedious, IMO. If you wait bit longer, something should come up. Altenatively, you can post a plug-in request in the correct section and see if someone can write something soon.
Thanks for the input. Yeah I will post something later about it.
Assigning a game variable is done via
Code:
$gameVariables.setValue(id, value);
Original thread: https://forums.rpgmakerweb.com/threads/notetag.54812/