allenjiang17 / theSearchForEden

1 stars 0 forks source link

Incantation Combat System #30

Open allenjiang17 opened 4 months ago

allenjiang17 commented 4 months ago

Rework our combat system to the use of "incantations" (note, incantation might have magic/occult connotations, not sure if we want that so we can use a different word).

Incantations are phases/sentences that are Bible verses, common sayings, idioms, and other kinds of significant sentences. They can be picked up by talking to NPCS, reading scrolls, and all kinds of ways.

Once an incantation is unlocked, a player is able to use it in combat. Combat consists of the player entering phrases into a textbox that "attack" the enemy. The user input is matched with their inventory of incantations/list of enemy weakness incantations They have to be on both lists -- if a match is found, damage is dealt. For example, you can't use "man does not live on bread alone" against something random, like a water stone. But you could use it on "common hunger", or maybe the "ex-stone-bread".

The incantation is scored by its relevancy and accuracy. Relevancy is determined by a preset-constant in the enemy weaknesses -- most verses that are irrelevant will do nothing, somewhat relevant verses will do some damage, and super effective/directly relevant verses will do the most damage. Accuracy is scored as following: inputs that don't match anything do nothing, inputs that match a valid verse but have inaccuracies will do some damage, and verses that are correct will do the most damage.

This base score will then be multiplied into a damage formula with the players attack, enemy's defense, etc and damage will be calculated. Equipment that the player is wearing can also affect the damage formula (+5 to physical monsters, +3 to spiritual enemies, etc).

allenjiang17 commented 4 months ago

Pushed out a first version of the system. haven't added the non-turn based system yet where enemy autoattacks every given interval

Larinitus commented 4 months ago

Looks great. Some questions/thoughts. These will probably be easier to figure out on a call.

attack attack item/manna attack fight the good fight of faith he heals the brokenhearted and binds up their wounds