Help with a Poisoning Script

Zacyiia

The Endless Void
Member
Joined
Apr 15, 2015
Messages
11
Reaction score
0
First Language
English
Primarily Uses
RMMV
I am writing a plugin that will reduce the party's hp by 10 points per step If they should enter a map without the right key Item.
What I plan on having this plugin check for is the following:

-If one of eight map events are present

-If one of these map events is present; check for one of the nessacery Key Items
Ex: Fire Power Glove / Wind & Fire Power Glove / Fire & Water Power Glove

If the player enters an area where a Fire Event is present and has a Power Glove upgraded with Fire, then no health will be lost.
If the player enters an area where a Fire Event is present and has a Power Glove, but is not upgraded with Fire, then they will lose 10 hp each step.

Right now my plugin is able to check for the Game Variable 1 (which I named fire), and if the variable is not equal to 1, then the
player takes -10 hp each step. I am not really sure how to make the two checks above so that I can just use the Key Item instead of variables. Also I don't know how to affect the entire party at once in regards to $gameActors.actor().gainHp().

Here is my code so far:

(function() {
Game_Player.prototype.executeMove = function(direction) {
this.moveStraight(direction);

if ($gameVariables.value(1) != 1 ){
$gameActors.actor(1).gainHp(-10)
$gameActors.actor(2).gainHp(-10)
$gameActors.actor(3).gainHp(-10)
}
};
})();
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top