- Joined
- Apr 27, 2014
- Messages
- 36
- Reaction score
- 12
- First Language
- English
- Primarily Uses
Hi. I have complete zero knowledge in programming, and I always use events to get what I want. But now, I'm stuck at notetag strings. I'm using Yami's Skillshop plugin, link: http://yed.yami.moe/yed-skill-shop/
The plugin basically allows skills to be bought in a skill shop, and imposing requirements before you can purchase by adding script calls in the skill's notetag.
Problem is I have no idea how to set the requirement strings as "either or"... that means among the listed requirement strings, as long as one of them is fulfilled, the skill can be purchased. For example, this is what I have in my skill's notetag:
<Buy Custom Require>
$gameSwitches.value(17, true)
$gameSwitches.value(18, true)
$gameSwitches.value(19, true)
actor.level > 4
</Buy Custom Require>
In this notetag, game switch number 17 and 18 and 19 must be turned on, and the actor's level must be above 4. Then the skill can be purchased for that actor.
However, what I need is (as long as switch 17 OR 18 OR 19 is turned on) AND actor's level is above 4, skill can be purchased for actor.
How do I type this boolean "or" operation in the notetag? T_____T
The plugin basically allows skills to be bought in a skill shop, and imposing requirements before you can purchase by adding script calls in the skill's notetag.
Problem is I have no idea how to set the requirement strings as "either or"... that means among the listed requirement strings, as long as one of them is fulfilled, the skill can be purchased. For example, this is what I have in my skill's notetag:
<Buy Custom Require>
$gameSwitches.value(17, true)
$gameSwitches.value(18, true)
$gameSwitches.value(19, true)
actor.level > 4
</Buy Custom Require>
In this notetag, game switch number 17 and 18 and 19 must be turned on, and the actor's level must be above 4. Then the skill can be purchased for that actor.
However, what I need is (as long as switch 17 OR 18 OR 19 is turned on) AND actor's level is above 4, skill can be purchased for actor.
How do I type this boolean "or" operation in the notetag? T_____T