I coulnd't find any threads related to this, so If anyone could provide any information I would be grateful.
The problem I am having is that I don't want an actor that doesn't have any MP (a Warrior for example) to be able to use a "Mana Up" item.
Any item that permanently increases the Maximum MP of an actor. It would be useless to that actor, and would be wasted if used on accident.
I took a close look at conditional branching, but couldnt find anything that would allow me to do this. Is there something I overlooked as far as eventing?
Or is this simply a matter of scripting?
Thanks in advance.
Edit: The title should say "MMP" not "MHP". My bad.
Permanent MHP increase item on an actor with no MP help
● ARCHIVED · READ-ONLY
-
-
Suggestion:
Change the item's function to simply call a Common Event. Then (and I'm going by the assumption you only have four characters here; if you have more, it'll become a touch hairier) set up the aforementioned Common Event to let you pick which viable character gets the upgrade - the "Show Choice" command, obviously, followed by the appropriate "Change Parameter" commands for each relevant character. -
It can be done without scripting although my non-scripting way is much more ineffective than any decent scripting way:
1. Create a state identifying any party member with no MP using "Mana Up"(let its name and id be "No MP" and "x" respectively)
2. Create a common event handling "Mana Up" usage(let its name be "Mmp Up")
3. Set the consume of "Mana Up" as "No"
4. Set the damage type of "Mana Up" as anything other than "None", then set the damage formula as "a.add_state(x) if a.mmp == 0; 0"
(Read http://forums.rpgmakerweb.com/index.php?/topic/1143-how-to-make-the-most-of-custom-formulae-part-1/ for details regarding custom damage formulae)
5. Set the effects of "Mana Up" be "Common Event [Mmp Up]"
6. In "Mmp Up", add the below conditional branch for all actors -
Conditional Branch: Actor [actor name] is [No MP] Inflicted
Change State: [actor name], - [No MP]
Else
Change Items: [Mana Up], - 1
Change Parameters: [actor name], MMP + (increment)
Branch End
(You'd only need 1 conditional branch if you know how to use scripts in common events)
If it works as intended, virtually nothing should happen if those having no MP use "Mana Up" but it should be increase its users' MMP and consumed afterwards if the users have MP. -
I got Warpmind's proposed method to work pretty well. It's a little wonky because it will play the item sound and THEN call the show choice event unless I change some stuff around.
It works though, so thank you. Thanks DoubleX for your response as well. -
Can't you just make it call a common event, and have it offer choices of what Actor to give it to(natually don't put to no MP Actors in the alotted choices) ?