Hi smart people.
I am making a game about the struggles of a small business owner. And I want to throw a business card at a customer(monster) in order to make them drop a job (item). It is basically a pokeball mechanic im looking to make.
This is what i have so far:
I have created a skill called "Throw Business card"(kast visitkort) and set its effect to "trigger common event" like so:
Then I created a common event called "Throw Business card"(kast visitkort) in order to make a percentage out of the enemy HP my thinking is this:
Set variabel "Monster Max HP to Max HP of #1
Set variabel "Monsters present HP to HP of #1
Then I divide the present HP with 100
then i multiply the new present HP with the Max HP to get the percentage of remaining HP
So if that number is under 10(%) the actor gets an item called " job"(skod job)
If the HP is not under 10% the tekst says: customer is not convinced, remove there will to argue!
When I fight my first monster in game(Old lady) I bring her down to 2 HP from a Max HP of 50, I use the skill throw business card, but it just says it has no effect on The old lady.
I know things are not as easy as it is in my head, but i cant seam to fix this...
I am making a game about the struggles of a small business owner. And I want to throw a business card at a customer(monster) in order to make them drop a job (item). It is basically a pokeball mechanic im looking to make.
This is what i have so far:
I have created a skill called "Throw Business card"(kast visitkort) and set its effect to "trigger common event" like so:
Then I created a common event called "Throw Business card"(kast visitkort) in order to make a percentage out of the enemy HP my thinking is this:
Set variabel "Monster Max HP to Max HP of #1
Set variabel "Monsters present HP to HP of #1
Then I divide the present HP with 100
then i multiply the new present HP with the Max HP to get the percentage of remaining HP
So if that number is under 10(%) the actor gets an item called " job"(skod job)
If the HP is not under 10% the tekst says: customer is not convinced, remove there will to argue!
When I fight my first monster in game(Old lady) I bring her down to 2 HP from a Max HP of 50, I use the skill throw business card, but it just says it has no effect on The old lady.
I know things are not as easy as it is in my head, but i cant seam to fix this...