3 questions orphan of answers.

Long ago, I had some doubts. Those were answered and the issues solved. Then I had other doubts. Those weren't answered and a couple of them were solved.

Now I have these doubts. I bet 16 of my profile views this will have a 1/2 Answer/Solution rate, leaving one both unanswered and unsolved.

First: This one may prove itself quite complex.

In the world I am creating there are two kinds of healing items. One is a drug, way cheaper than the actual healing items, but weaker and with side effects. That side effect is a reduction of how much health can be recovered when using a spell or an item. It stacks and fades off at the end of the dungeon. I kinda figured out I could do it through states, but I'm blocked.

Now, this is important (probably): Since it's a "punishing" game, I want to keep healing items useful trough the whole game using percentages instead of fixed values. As such, the reduction I was also planning it as a percentage, and there's where I am blocked.

IF there is any issue understanding this one, just tell me and I'll reformulate...somehow.

Second: This one may not be as complex, but I can't translate it to the RPGAce engine properly enough to be able to understand how can I do it.

There are several kinds of characters. Each kind of character has some abilities that make it different from every other class. The heavy class, for example, is able to lift items found in the floor and fallen companions so they can be taken back to the base and recover instead of dying in the field and being forever lost. Now, if a character is lifting a heavy item it means it can't do other things, reducing his combat capabilities (through states). Now, I don't quite know how to link the states to the character lifting an item.

Note: The characters are randomly obtained actors, even if they belong to a class. I am able to limit the heavy items a party is carrying to the number of characters able to lift them, but I am not sure how to impose the state onto them.

Third: I'm quite vexed by this one.

I have won only one match in Dirty Bomb. Should I start considering it a P2W MMO or should I keep considering it a legit F2P game and just git good at it?

This is a joke, yes. Still, if anyone wants to answer this, I'd be slightly grateful.
How about this for the first one? 
Lets say for example you create 5 versions of the healing spells, nr: 1 does 50% healing, 2 does 60%
etc. As in you create 5 different skills. You make a common event, and the thing that makes it stack, you set a variable that gets increased by one
every time you use a healing item, and the common event uses the spell according to that variable...
If you dont get it i can demonstrate it with pics, or if theres a problem ill try to answer soon 🙂

What do you mean by "lifting?" what kind of action would this be? because if its involved with it then you can set the event to set a state to that character.
But if i misinterpret could you please give me a picture example?

about the third, is the cash shop only costume? or others too?;o
First:

You can do this by making the drug add a state that reduces either the REC or the MHP of the target (depending on the interpretation of "how much health can be recovered"). To make a state stackable, there are at least to possibilities:

- You use a script that allows state stacking (for example this one)

- You can use multiple states for each possible stack. I wouldn't really recommend this for large amount of stacks or different states though:

Spoiler
There might be easier ways to do it but I usually use this way:
Create one state for each stack you want and another one that will be used as a "Stack Initializer". The stack initializer must grant resistance to each "Stack" state except "Stack 1" and must not be resistable itself (otherwise it is possible to inflict the maximum stack level right away; this should not be a problem when you only use it on friendly targets, but for opponents you'd have to take the LUK-resistance into account, which is 0.1% times the LUK-difference).

Each "Stack" should resist the "Stack Initializer" and every other "Stack" except its direct successor (for example, "Stack 4" would resist Stack 1-3 and 6-MAX). Also, it should grant a state rate of 0% for itself (except the maximum stack). In case you miss the chance to add the next stack, this prevents the current stack to be added again.

To make an item inflict one stack of that state, you can now add these effects:

- Add the "Stack Initializer" State

- Add every Stack Level State in descending order (Maximum first, so only one stack is actually added, all other are resisted)

Again, I would not recommend this procedure for greater amounts of states, stacks or items. 🙂
Edit: Too slow, but yes, using a common event also is a suitable option. 🙂

Second:
You have to consider that in VXAce it is no longer possible to make a state last through the death of the character (at least not without scripts). You'd probably have to add the state again whenever the "heavy class" battler is revived.

One way to add the state only to "heavy class" battlers would probably be to make every other class immune to that state and then add it to the entire party.
What do you mean by "lifting?" what kind of action would this be? because if its involved with it then you can set the event to set a state to that character.

But if i misinterpret could you please give me a picture example?
[IMG]http://www.bloomberg.com/image/iiOOsBivJmRY.jpg[/IMG]

More or less that. A character picks a thing from the floor be it wodden boards or a log and later on they leave them here or there to create a bridge, activate heavy pressure plates and like that. I know I can do it with variables, but I've...like...set up around 15 variables and I think I am not doing it right. When the item is picked up, the "encumbered" state is applied, and when the item is dropped, the state is no longer applied.

The parts I have figured out are the accounting of heavy characters and fitting the lift-able items to the amount of heavies in the team. Assinging the state to those characters, I don't have. Having in account that I have around 60 actors, I have a slight mess in my head.

You have to consider that in VXAce it is no longer possible to make a state last through the death of the character (at least not without scripts). You'd probably have to add the state again whenever the "heavy class" battler is revived.

One way to add the state only to "heavy class" battlers would probably be to make every other class immune to that state and then add it to the entire party.
And you got that wrong.

Examples, because those always work:

Four characters in your group. You have (for example) a leader, a heavy, a scavenger and a fighter. They face a three corroders and the fighter dies. Your choices are leaving that fighter there and just making them dissapear from both you party and your reserve forever, or, OR using your heavy to carry that fallen fighter back to safety so you will still have them available for other missions.

Now, when the heavy is carrying anything, doesn't matter if it's a companion or a heavy object, they suffer the "encumbered" state.

And there rises another problem, that I won't deal with yet because I want to fix that first.

Any other thing that might need more explanation?
iiOOsBivJmRY.jpg


More or less that. A character picks a thing from the floor be it wodden boards or a log and later on they leave them here or there to create a bridge, activate heavy pressure plates and like that. I know I can do it with variables, but I've...like...set up around 15 variables and I think I am not doing it right. When the item is picked up, the "encumbered" state is applied, and when the item is dropped, the state is no longer applied.

The parts I have figured out are the accounting of heavy characters and fitting the lift-able items to the amount of heavies in the team. Assinging the state to those characters, I don't have. Having in account that I have around 60 actors, I have a slight mess in my head.

And you got that wrong.

Examples, because those always work:

Four characters in your group. You have (for example) a leader, a heavy, a scavenger and a fighter. They face a three corroders and the fighter dies. Your choices are leaving that fighter there and just making them dissapear from both you party and your reserve forever, or, OR using your heavy to carry that fallen fighter back to safety so you will still have them available for other missions.

Now, when the heavy is carrying anything, doesn't matter if it's a companion or a heavy object, they suffer the "encumbered" state.

And there rises another problem, that I won't deal with yet because I want to fix that first.

Any other thing that might need more explanation?
Can't you put it into a common event for example that when you have someone or something to pick up, it calls the event that enforces the state upon the player. Or it can turn on a switch that constantly enforces the state on the target player as long as doesnt put the heavy item down, then when he did, turn off another switch totrigger a common event which then turns the lifting switch off and turns itself off while clearing the state from the player.
Can't you put it into a common event for example that when you have someone or something to pick up, it calls the event that enforces the state upon the player. Or it can turn on a switch that constantly enforces the state on the target player as long as doesnt put the heavy item down, then when he did, turn off another switch totrigger a common event which then turns the lifting switch off and turns itself off while clearing the state from the player
I have that worked out, as I said in the last post. Whan I don't have figured out is how to impose the state on the actor that is supposed to be lifting the item. There are 60 actors and 16 belonging to the heavy class. You're telling me about a target player and that's where I'm stuck.

I have the full engine but the part that targets the one lifting. First off, to calculate the amount of heavies in the group I have assigned a variable that increases when you choose one of those 16 characters. To limit the amount of items that a party can carry, everytime a heavy begins carrying an item, the variable goes down in 1 and when that variable hits 0, all heavies in the party are already carrying an item. When the item is left in the ground, the variable increases in 1 and when it reaches full number, all heavies are free of weights.

Now, I know how to impose the state, but what I need is how to target the character supposed to be lifting the item. I don't want to impose the state over the whole party, I don't want to impose the state over the 16 heavy characters the game has. One heavy lifts, one heavy suffers the state. IF there's a second heavy and they lift something, they also suffer the state. My point and intention is to identify who is performing that action and applying the state as it's supposed to.

TL;DR - I have a method to apply the state and I have a method to lift off the state, but not from a specific target.
I have that worked out, as I said in the last post. Whan I don't have figured out is how to impose the state on the actor that is supposed to be lifting the item. There are 60 actors and 16 belonging to the heavy class. You're telling me about a target player and that's where I'm stuck.

I have the full engine but the part that targets the one lifting. First off, to calculate the amount of heavies in the group I have assigned a variable that increases when you choose one of those 16 characters. To limit the amount of items that a party can carry, everytime a heavy begins carrying an item, the variable goes down in 1 and when that variable hits 0, all heavies in the party are already carrying an item. When the item is left in the ground, the variable increases in 1 and when it reaches full number, all heavies are free of weights.

Now, I know how to impose the state, but what I need is how to target the character supposed to be lifting the item. I don't want to impose the state over the whole party, I don't want to impose the state over the 16 heavy characters the game has. One heavy lifts, one heavy suffers the state. IF there's a second heavy and they lift something, they also suffer the state. My point and intention is to identify who is performing that action and applying the state as it's supposed to.

TL;DR - I have a method to apply the state and I have a method to lift off the state, but not from a specific target.
Oh i see, maybe you could put a variable in the event that is set to 1 if its X actor and 2 if its Y actor and so on, then have another event set the state solely based on that variable to that one actor.

Like first class check, then designates the variable to X and the X variable puts the state on the actor. you could use that variable to lift too I think.

edit: No that won't work... oops... let me think about this some more.. :c

maybe you can mess around with the set party members actor ID as a variable and mess with the states like that, that way the previous theory would work, but that limits the performer to be the first member of the party, so you have to change your heavy carrier to be the leader member in that scenario.
First:
 
You can make your healing items and skills formula like this:

$game_variables[1] > 0.5? (0) : (b.mhp  * (0.5 - $game_variables[1]))the "0.5" is the percentage of the healing (1 being 100%). Now you can make the drug formula like this:
 

$game_variables[1] += 0.1; b.mhp * 0.5In this case it will recover 50% of hp and reduce the effect of the other items and skills that use the $game_variables[1] in their formula by 10%. change the variable[1] back to 0 at the end of the dungeon.
 
Second:
 
It depends of how exactly you're doing this system. There are several ways to add states to specific actors, for example:
 

if $game_actors[$game_party.members[0].id].class.id == 1$game_party.members[0].add_state(2)endthis will add the state (2) to the first actor of your party if his class id is 1. You can make one of this for each party member to check who's a "heavy class" and then add states to them. Does this make any sense to you?
For the second question:
 

Do you want the player to be able to select which "Heavy Class" battler should take the item or switch the carrier during the mission or do you just want to fill up the carrier slots until the maximum amount of heavy items has been reached?

For the latter, you could use this script command to add a state to the first X party members that fulfil a certain condition:

$game_party.members.select { |m| m.class.id == 2 }.take( 3 ).each { |m| m.add_state( 12 ) }

(Example: add state 12 to the first 3 battlers of class #2)

Edit: Seems that's basically what Musashi already suggested. 🙂

Edit2:

Another Fen typed "$game_pary.", if you gonna use his code change it to "$game_party." or it'll not work.
Ups... Corrected. Thank you.
fill up the carrier slots until the maximum amount of heavy items has been reached?
This would be it. I want to complicate myself, but not too much.

Now, regarding the two last posts, where should I need to put those script lines to get the "desired" effect?

I am afraid I am not a friend of scripts. I understand them and I am familiar with the terms used, but I am absolutely unable to write anything.

I am going to mark this thread solved anyway. If any of you can give me that last answer, I'd be grateful.
Oh, sorry, use the code in a Script Call (last command in the Event Commands).

Another Fen typed "$game_pary.", if you gonna use his code change it to "$game_party." or it'll not work.

Original thread: https://forums.rpgmakerweb.com/threads/3-questions-orphan-of-answers.41194/