mathiasgruber / theninjarpg Goto Github PK
View Code? Open in Web Editor NEWSource code for TheNinja-RPG
Home Page: https://www.theninja-rpg.com
Source code for TheNinja-RPG
Home Page: https://www.theninja-rpg.com
Restrict player movement but not actions.
Percentage based
From AmeDot on discord: https://discord.com/channels/1080832341234159667/1129733185262075955
So overall the game Tavern is enough for the testing period and we do mostly use discord for everything else but for when the game will be at the final stages, a new engine will be needed my opinion containing at least these features:
Mentions: Implement a user mention feature where participants can tag specific players by using the "@" symbol followed by their username. This will notify the mentioned users and draw their attention to the message.
Reply Functionality: Introduce a reply functionality that allows users to respond directly to a specific message. This can be achieved by adding a "Reply" or "Quote" button beneath each message. When clicked, the user's reply will be linked to the original message, creating a threaded conversation.
Notification System: Develop a notification system that alerts users when they are mentioned or when there are replies to their messages. This can be done through desktop or mobile notifications, depending on the device they are using.
Real-time Updates: Ensure that the chat platform supports real-time updates so that users receive immediate notifications and can see new messages without refreshing the page. This can be achieved using technologies such as WebSockets or long polling.
Unread Message Indicator: Implement an indicator, such as a badge or highlight, that displays the number of unread messages or notifications in the chat. This way, users can easily identify which messages they have yet to read.
User Settings: Provide users with the ability to customize their notification preferences. They should have control over which types of notifications they receive (e.g., mentions, replies) and how they are delivered (e.g., sound, vibration).
Search and Filtering: Incorporate search functionality within the chat interface, allowing users to search for specific messages, keywords, or mentions. Additionally, enable filters to sort messages based on various criteria, such as date, sender, or context.
Removes all currently active effects
Scenario 1: Clear chance 50%, rounds = 0:
A 50% chance to clear all status effects, effective after the caster's turn (i.e. in effect in the opponents turn)
Scenario 2: Clear chance 50%, rounds = 2:
A 50% chance to clear all status effects, effective after the casters turn. This chance is evaluated on each of the coming 2 rounds as well, effective on opponents turn if successful
The flee tag lets you escape from battle. This would be a 1:1 translation percentage based
Scenario 1: Flee chance 50%, rounds = 0
A 50% chance of immidiately fleeing on the current user round
Scenario 2: Flee chance 50%, rounds = 2
A 50% chance of fleeing immidiately, will also try to flee the following 2 user rounds with a 50% chance (while still being able to perform actions)
My OCD is not dealing well with these adapted javascript snippets taking from three.js
documentation are not typed. Reward sent view paypal for anyone willing to update these.
This tag is a summon that has a set HP and player-like/AI ability.
Note: Currently the barrier tag just restrict movement but thats more an obstacle than a barrier, the propose rework for barrier is that it absorbs damage and if there is a barrier infront of the target the barrier will reduce the damage taken by the person behind it by a percentage amount
The Log Book serves as a diary of the player's progress throughout the game, it will cover tutorials, missions, events, and achievements, a place for persons to view badges, and collect awards. The log book will also be where persons go to take the rank-up exam.
The logbook will be located on the player profile page, there will be a visitor-facing logbook that shows the player's badges and their nindo when you bring up a player's profile.
Objectives: These are a list of things the user must complete each objective will have 3 tiers with increasing difficulty, some objectives will act as a tutorial for players while others will be achievements that can be claimed. Each tier will give a reward and at the end of completing all 3 tiers, the user gets the final reward.
More objectives to be added later on
Achievements: After completing objectives are doing noticeable things(Becoming a Kage, anbu, clan leader etc) These are claimed here and the respective badges are displayed on the user profile for all to see. Also for completing objectives users can get ryo, rep jutsu, bloodline, and items.
Quest: The Logbook is where players will go to accept event quests during event times. There will be a tracker to explain what the current details are and a timer to state how long the quest will be active.
Missions: Players can see the current
a mission they are on and the progress towards completing it as some missions will have multiple parts.
Rank up: The Log Book is where persons will go to take their Rank Up Exams. Depending on the rank, they must fulfill the criteria and then pass the exams.
The system is still in its infancy and over time will look to expand on it.
Hey Terr, for some odd reason when I enter comeback I cannot Flee use Jutsu or Move and sometimes it doesn't show my HP depletion... and it seems that the only way to exit battle is if im killed or my foe flees. please look into this cause im the only one having this issue.
KagamiUchiha
This tag summons a clone of the user to fight alongside them in combat.
A percentage of user stats they will be like AI’s but will drain the users Chakra for a certain amount.
and will only last for a certain amount of rounds
This tag when applied creates a damage over time(DoT) based on the damage of the current attack.
This tag summons an AI to fight with you.
Note: This can operate the same way a clone would they will have their own jutsu and their Own Action Points they will last for a certain amount of rounds then destroyed from the battlefield.
-Whitelist/Blacklist
-Allow/Disallow PMs
-Account Reset
-Allow/Disallow Notifications.
The reflect tag is meant to reflect a portion of damage back at the opponent. Percentage based
Note: This can be brought over
1:1 round based effect
Note: For implementation consider this as Recoil from opponent attack.
One of the core foundations of past TNRs was villages and how we interact with our villages. So this draft is to try and promote a sense of tribalism and promote activity.
All values are just examples. Village upgrades are bought using Village funds which is gained by doing Missions and PVP. Naturally, the more persons they are in a village the higher the cost is to run that village. So the cost of upgrades are directly tied into the population.
A Kage can turn Village funds into in-game currency to be used as prize pools for Village Events. This can’t be withdrawn to user’s account.
The whole idea is centered around user-created actions and events, to allow users to have control over the game world and to be involved. While I assume there will be staff to create events missions etc. I believe that one of the factors that can keep users active and playing longer is when they can create content for themselves.
Village Reputation:
Persons who are in a village will naturally gain a reputation the longer they are in the village for, they can gain a reputation also from completing Missions and PVP. Players need a certain amount of reputation to become Kage and gain access to prestige ranks.
Village Hall Menu:
View Elders
Anbu Squads
Village Stats (Regen, Defenses, Infrastructure Level, Village Bank, Village Funds)
Apply for Anbu Membership.
Notice Board
Villagers
View Kage
Alliance/War Status
Challenge Kage
Kage:
The Kage is the leader of the village, as Kage they can access the village panel that will contain the following:
Promote to Village Elder
Declare War
Create Alliance
Spend Village Funds (Upgrade Infrastructure)
Create/Disband Anbu Squads
Host Events
Update Notice Board
Kage is automatically removed after 6 days of not being active
Village Elders:
A Kage can appoint 3 Elders to help with the running of the village, the responsibilities of the elders are as follows:
Create/Disband Anbu Squads
Create Village Missions
Host Events
These responsibilities can either be given to all elders or one elder for a specific role.
Kage Challenge:
A Kage can be challenged a total of 5 times per day that resets via the in-game clock. Challenges can not be denied but whenever a challenge is given the Kage will automatically be at full health to avoid sniping and persons spamming the refresh button.Notice Board:
A standard news posting for village related information, the Kage can send a notification to all villagers that an update has been made on the notice board.
Village Infrastructure:
The infrastructure of the village is regeneration rate, village walls, hospital, and Village AIs. (More to come on this later)
You increase them by spend village resources which are earned by missions or battle.
Village Walls help to protect users who are attacked, the higher the wall the higher the defensive attributes the villagers gain. This is to create a home-field advantage.
Level 1: Increase Defense by 2%
Level 2: Increase Defense by 3%
Level 3: Increase defense by 4%
Level 4: increase defense by 5%
Hospital: Will have four levels, each level decreases the wait time and cost to regain max health after a death.
Village AI:
The kage will be granted the ability to purchase AIs to patrol the village territory, Their can be three levels of Ais one for each rank that can do PVP. Outside of buying the AIs the Kage can also upgrade the AI and the frequency in which the AIs are able to attack outsiders.
The max strength of the AI will be similar to the max strength of the AI of that users rank.
Regeneration would work similar to how it has worked in previous cores, where the Kage is able to upgrade how fast players regen. However, for players who switch villages there is a 3–5-day penalty of cut regeneration. This is to try and discourage village hopping even though players will naturally flock to the strongest village its an attempt and maybe a better system can be thought about at a later time.
Alliance/War:
Kage’s can create an Alliance that can be accepted or declined.
Ally Benefits:
Will not be attacked by Village AI
Can access other village tavern when present in that Village.
Can host cross village events
Have access to that Village Mission sets.
Ability to sleep in that village with access to that village regeneration rate.
If user has died in allied they won’t be transported to their home village but taken to that village hospital.
War:
Refer to War System
Events:
Each village can create and run their own events. The guidelines for the event will follow the general event system in game with the minus that the rewards for these events will be in game currency and maybe a custom item with staff approval.
An example of a village only event would be PVP tournaments. This allowed more interaction and the hope is that it keeps players wanting to play with more pvp interaction.
Anbu:
Anbu are 10 man cells with one leader being appointed by Kage or Elder. Anbu members earn more VF than the normal villagers
Village Resources and Bases:
These are set options that villages can claim on the map to provide resources and spread influence to help the village grow.
Once a village capture a sector they can construct multiple fortresses on it, this will allow the villagers to train on that sector, Once the fortress is completed they are able to claim all the resources on that sector.
Some of the resources are:
Gold Mines to help with purchasing upgrades.
Minerals To help with crafting and constructing of village defenses.
Fields: To help village grow and increase the amount of regen a village has.
If a village lack necessary resources they can purchase them using village funds.
Title says it all.
Right now ping is too much of an impediment for some players. We're moving to fully round-based system
on my account it is saying that my jutsus are full 5/5 yet I only have 4 equipped since one more of those jutsus were removed in the lastest patch.
Linked up with planetscale by pulling the settings in app/.env
. Payment for feature via paypal.
This tag prevents fleeing from combat.
This tag can be treated as a round based duration.
Tag prevents ryo from being stolen.
Need some better responsive layout
Allow user to attack at range
This tag adjusts the healing percentage that an opponent can heal by.
Note: This tag can be brought over 1:1 as a round based status debuff for battle.
When a jutsu is passed to ItemWithEffects
component, it would be nice to show the bloodline name attached to that jutsu.
List of Ranks and level Requirements to take the promotion exam
Ranks in Core 4 will function more as a cosmetic achievement than a restriction-based system, some things will be restricted but by and large a Rank will serve as an accomplishment rather than something you train and aim for.
This is one of two introductory ranks in the game where we will be teaching persons how to play the game there are things that are restricted but granted Ideally it should take 4-8 hours for a player to hit level 10, we propose a 1k per level system at Academy student
Requirements:
Must be Level 10
Must have 100 AI Battles Completed
Must have three Jutsu's trained
Promotion Exam, with flavor text and images:
“You step into the room with your Sensei sitting at a table, you are asked to perform the three basic jutsu that all students must know”
A dialog box should come up asking for the user to select the 3 basic jutsu i.e. Clone, Transformation, and Replacement Jutsu.
After successfully performing the 3 they are granted Genin.
The second introductory rank would have the same leveling system as before with 1k exp needed to rank up for each level.
Promotion Exam:
The promotion exam is a three-part quest that mirrors the show:
Part 1:
Written Exam, this exam will be a trivia on TNR things they can find in-game and general game knowledge, to pass The player must get 80% and above
Part 2:
The user must find two scrolls that will be scattered on the map, Once this part of the exam is active, the players will have to go to a sector and fight two AIs to collect each scroll. Once the scrolls are picked up they can then return to the village and complete the final part of the exam.
Part 3:
This is a PVE part where the player will be asked to fight against 3 different AI’s in back-to-back battles. The AIs will be of level 21 and 22 strength respectively. Once all 3 are defeated the player will be promoted to Chuunin where they will be able to level up further.
At this rank, we assume the players have fully understood the game and no longer need handholding as such there are not many things that are locked off at this level.
There are no Jonin exams as it’s a strict promotion
Jonin:
The final rank of the game, Jonin canon was really just a title given out to the elites as such it serves the same purpose in the game, Though there are a few things that only Jonins get access to:
At this level, we expect that these players are the best in the game but to add an additional layer to it this is called the “Prestige System”
This is a work in progress but what it does is that it unlocks an additional title for players to strive for, the first in this title system is Elite Jonin this isn’t a rank but a title to showcase someone who has accomplished things in the game and dedicated time to his village.
Rob steals ryo on a 1:1 power to the level in the tag panel and jutsu scaling.This would be a residual based round.
Note: This can be brought over 1:1. Instead of “steal” as an action, this can be an outlaw specific jutsu to promote pvp.
Note: If comes with dmg could be considered an attack.
TheNinjaRPG/app/src/libs/combat/tags.ts
Line 315 in 62115a0
Give the options of 30mins, 2 hour, 8 hour
The longer you train the smaller the gains are so example:
For 30 minutes you gain 50
This will decrease by 20% if you take the two hour training and 30% if you take the 8 hour option, this is to promote activity.
Federal Support will modify the reduction of gains:
Blue:5% (~7%)
Silver: 10% reduction (~14%)
Gold 15% reduction (~20%)
Caps:50k per each offense/defense 20k gens training gains will be adjusted so persons cap within 4 months
TheNinjaRPG/app/src/pages/itemshop.tsx
Line 165 in 7ee0462
Improve UX for ramen shop, so that e.g. it's not so easy to over-purchase ramen.
Pool cost adj increases the jutsu costs for health, Chakra and stamina usage.
### Missions and Errands
All Missions, Errands, and Crimes can be created and edited from the content panel and all completed missions will be tracked from the player's log book(coming soon) to grant them achievements for completing x amount of missions.
Missions and Errands are the main way for the users to earn Ryo, they are divided into the following ranks based on difficulty:
Each mission rank will be tied to an in-game rank, for example:
Missions are intended to be the main way of earning Ryo but as a substitute the gains from Errands will be lower than that from Missions, to compensate however,
Outlaws are not able to do Errands
They're three types of Errands:
Rewards for each errand are collected from the errand menu.
(Numbers to be decided later on gain of ryo/stat)
Missions can be divided into two main categories PVE and PVP-related.
PVE missions will take place on the map at different sectors and coordinates where the player has to travel the world to get that mission accomplished. Missions can have multiple stages for example:
Part 1 You go to X location and collect something
Part 2 You must now escort it to a different location while fending off attacks by random AIs on the map. This is the PVE component and its aim is to bring life to the huge globe that we have.
Part 3 You return to your home village to accept your reward.
The main types of PVE Missions/Crimes are:
Another aspect of Missions/Crimes is PVP, where players can enter a Mission Lobby where one player will be assigned a task/duty and another player will be asked to deal with it.
Types of PVP Missions:
For coordinates, the game can generate the coordinates of the objectives so that it takes them to where new each time.
This tag increases the current HP by a percentage, max being the total HP.
Note: Is one of the few tags that can be round based.
Let users mark that they are ready for combat, letting them go through the lobby quicker
Seal player bloodline, Chakra or Stamina
Round based percentage chance.
Should be 50% less than hospital.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.