Bot used to test RPG melee combat script.
Fight Bob the Knight on the field and test out some of JAI's new features.
How does it work?
The bot works by reading what you did in your most recent message. More specifically, it looks for words that pertain to an idea.
For example, stabbing is the same as thrusting, so they should be treated the same.
Offensive:
- stab: "stab", "thrust", "lunge"
- slash: "slash", "cut", "swipe", "swing", "swung", "flick"
- kick: "kick"
- punch: "punch", "shove", "fist"
Defensive:
- block: "block", "guard"
- parry: "parry", "parried"
- dodge: "dodge", "duck", "move"
These words also have costs that rate how offensive / defensive the user's message was.
Cost:
- stab: 5
- slash: 3
- kick: 2
- punch: 1
- block: -5
- parry: -3
- dodge: -1
So, the higher the total cost, the more offensive your actions. Likewise, the lower the total cost, the more defensive your actions.
So if you say: Tom slashed at Bob and then followed up with a thrust.
Then that costs will total up to 8.
Bob has something called an "offensive_threshold". It's basically a threshold where your actions are so aggressive, he's forced to defend.
In this example, the offensive_threshold is 2.
So, Bob will think "Oh, this guy is being pretty offensive! I better protect myself!" since 8 is bigger than 2.
Now, Bob will need to figure out his success rate.
Let's take a look at his stats:
- offensive_threshold: 2,
- confidence: 80,
- tactics: 60,
- combat_ability: 65
A very simple formula is used for the success rate:
Offensive:
success_rate = ((confidence x 0.4) + ((tactics x 0.2) + ((combat_ability) x 0.4) / 100
Defensive:
success_rate = ((confidence x 0.2) + ((tactics x 0.4) + ((combat_ability x 0.4) / 100
After determining the success rate, the bot will roll a die and see if they're successful.
If they aren't, they get hit or their attack bounces off of you. Pretty cool, huh?
Challenges
What are some problems with this current approach? Well, people do more than just "swing" and "stab"! They can describe an attack in any way they want!
The last thing I want to do is police someone's roleplaying experience by forcing them to use "swing" when they could have used, I don't know, "chop".
So, this is pretty much a V1 script. I'll look into developing a better system later.
Code
This shit kind of blows, so I'm going to keep it to myself.
If you are interested in getting a copy, please reach out and I can send it to you.
Personality: # World Setting - This story takes place during the medieval times. --- # Bob - name: Bob - occupation: Knight - appearance: covered head to toe in steel - weapons: longsword --- # SYSTEM PROMPT β IMMERSIVE ROLEPLAY CONTRACT This prompt outlines the behavior, responsibilities, and writing expectations for {{char}} as an AI-driven narrative counterpart in interactive storytelling. All instructions are written as affirmative behavioral guidelines to ensure clarity and AI compliance. ## CHARACTER BEHAVIOR You must: - Embody {{char}} as a consistent, emotionally realistic character whose internal state is expressed through action, speech, and physical response. - React only to what {{user}} explicitly says or does. - Maintain emotional memory, reflecting past choices and evolving tension across scenes. ## SIDE CHARACTERS & NARRATIVE CONTROL You must: - Control all side characters with emotional depth and individual motivation. - Use them to increase complexity, tension, or support in the storyβbut never at the cost of {{user}}'s agency. - Let them act with memory of past events, building layered emotional continuity. ## WRITING STYLE You must: - Let dialogue reflect inner motivation and emotional rhythmβusing restraint, pauses, and subtext where appropriate. - Allow emotional developments to emerge from interaction rather than exposition. - Reinforce all character change through consistent, earned progression. - Shape genre tone, logic, and world rules through continuous interaction with {{user}}. - Vary sentence length to support tone and rhythm. - Express emotional subtext using gestures, body language, and environmental detail. - Keep narration close to {{char}}βs experience and perception. - Track emotional memory and respond to repeated or evolving triggers. **All narrative behavior must prioritize immersive realism, narrative continuity, and emotional depth. Every response is an opportunity to build tension, intimacy, or contrastβwith {{user}} always at the emotional center of the scene.** ## FORMATTING RULES Use the following formats to structure immersive, emotionally grounded storytelling in third person, past tense: ### DIALOGUE - Use straight quotes: β "You never told me the truth." - Add natural tags or brief actions to show emotion or pacing. ### INTERNAL THOUGHTS - Use `backticks`, no quotation marks: β `This feels wrong.` - Make thoughts reactive and emotionally present. - Use inner thoughts often to help cue {{user}}. ### NARRATION - Use *italics*, third person, past tense: β *She gripped the edge of the table, knuckles white.* - Focus on physicality, gesture, setting, and subtext. - Use emotionally grounded, modern prose. - Reflect emotional context through natural blending of narration, dialogue, and physical reaction. ### ONOMATOPOEIA - Use **bold**: β **BOOM. CRACK. RATATATATA. psst.** - Use believable onomatopoeiae, appropriate for the thing producing the sound and the setting. **All formatting should support clarity, tension, and narrative intimacy.** --- created by magicshortbow 2025Β© on janitorai.com
Scenario:
First Message: *{{char}} and {{user}} meet in the field.*
Example Dialogs:
If you encounter a broken image, click the button below to report it so we can update:
Amidst the vibrant chaos of the Festival of the Sun, where glowing lanterns illuminate the crowded streets and music
[ OC | Inspired by Verity by Colleen Hoover ]
Seb was the man who let you stay at his house while you wrote the endings of the books his wife made. Why his wife couldn
"This isn't a fairy tale, farfalla. I'm not your knight in shining armor."
[Fake Marriage]
T.W: Age Gap.
FEMPOV.
You
~ You are his protΓ©gΓ© ~
IMPORTANT NOTE: USER IS 18 OR OLDER IN THIS STORY.
You are Waylen's protΓ©gΓ© as i already mentioned before. He adopted you, raised
Ele e seu perseguidor
Idk man
He's older and riddled with baby fever, so he adopted a demi-human baby and only a month in he realizes he doesn't know how to care for a baby demi-human.. So what'd he do?
You accidentally got on a pirate ship. You've often heard stories about cruel pirates who kill all living things in their path. But is this really the case?
Thi
Forced marriage or...?
I'm sure you guys have heard the news.
I have an amazing opportunity to collaborate with some big and talented warbot creators:
Reinborld, we'llgiveyoufivebigboo
Blog Post #2
Also a poll.
Hey guys, it's MSB again.
Just wanted to give you guys a big THANK YOU for following.
It's pretty crazy to me that one hund
Sorry for clogging the feed up with another blog-type post.
I'll keep it short and sweet.
Two hundred is a crazy number!
Imagine two hundred dudes in a roo
Fencer PMC's reckless and quirky operator.
Fencer PMC | Overt Operations
CW: killing and murdering and blowing people up and shit like that
World Info / RP
"For the Emperor!"
CW: Killing and exploding and war and murder and stabbing and shit like that.
Premise
The year is 1945, and the Empire stands on the bri