Hi guys !
I hope you can help me with a little problem i have.
This is what i am trying to do:
I want to make food that works similar to that of tales of symphonia. Meaning you eat it and it not only heals your hp and mp depending on how good or rare that food is ( eg. Pasta with vegetable heals more then just plain bread ) but also adds a buff for the next fight, like an atk buff or a better drop rate. But once you have eaten a dish you cant eat a second one so the buffs dont add up.
Once the fight is over you can eat again.
And this is were I need help.
The healing part works just fine, and so does adding the buffs.
But the "cant eat after eating a dish till after the next fight" part is a bit tricky and i cant get it to work.
This is what i have tried so far :
I made a state called "full" (id 11).
Then i made a common event that would check if the main actor ( id 5) had the state "full" applied and a else condition .
If the state was applied the text "we cant eat right now, we are full" and the eaten item would be returned .
If not,the state "full" and the buff should be applied.
Every thing exept the buff adding part works fine.
But I cant add a buff in the common event and dont know how i could do that. I figured i could use a script call but i cant find one that works.
There is also this... well "luxus-problem". If i want to make this for EVERY food item in the game, that could be well over 30! Is there a easier way to do this?
I hope someone can help me with this ^^
There are however some problems.
1. The common event doesnt work like it should
I hope you can help me with a little problem i have.
This is what i am trying to do:
I want to make food that works similar to that of tales of symphonia. Meaning you eat it and it not only heals your hp and mp depending on how good or rare that food is ( eg. Pasta with vegetable heals more then just plain bread ) but also adds a buff for the next fight, like an atk buff or a better drop rate. But once you have eaten a dish you cant eat a second one so the buffs dont add up.
Once the fight is over you can eat again.
And this is were I need help.
The healing part works just fine, and so does adding the buffs.
But the "cant eat after eating a dish till after the next fight" part is a bit tricky and i cant get it to work.
This is what i have tried so far :
I made a state called "full" (id 11).
Then i made a common event that would check if the main actor ( id 5) had the state "full" applied and a else condition .
If the state was applied the text "we cant eat right now, we are full" and the eaten item would be returned .
If not,the state "full" and the buff should be applied.
Every thing exept the buff adding part works fine.
But I cant add a buff in the common event and dont know how i could do that. I figured i could use a script call but i cant find one that works.
There is also this... well "luxus-problem". If i want to make this for EVERY food item in the game, that could be well over 30! Is there a easier way to do this?
I hope someone can help me with this ^^
There are however some problems.
1. The common event doesnt work like it should