Game
Idle Task
7 years ago

Dynamic Sentence Generation


so i’m making a sentence generator…. it basically has a main sentence that can be something like “$player decides to take a short rest” where $player will be replaced with the player name….. i can also do “$player $rests” and while $player and $enemy refer to player and enemy names…. $rest needs to be in the MadLib list…. which can provide as many random options to replace $rest with as you want….. so here’s an even cooler trick i think i might be able to do…. have the $rest replace entry include something like “takes a $time break” and then have $time be an entry that comes after $rest in the MadLib list…. that way i can have a branching pattern…..

i might make it run through the MadLib list and whatnot till there’s no $ in the sentence… that way you wouldn’t have to ensure that the replacements cascade in order to work…. and i’ll probably want to setup a custom editor script that ensures that any $replacement you add to a sentence or MadLib option has a MadLib option…. (or at least exists as a variable replacement….. which for the standard sentences is just the name of the player or enemy…. but sentences where you get an item will need to be able to say the item’s name…. or if you’re doing combat it will need to say the name of the attack you do, if it hit, and how much damage it did…)

5d09be83513bc.png

also sentences have an action point cost…. which is how the system decides if a sentence can be used….. different sentence types can have additional requirements…. like any combat sentence will require that the InCombat variable be true…. which doesn’t exist…. and might also be a standard condition to check against…. with some sentences being unavailable during combat…. i could also just have the script that’s picking the sentence use a combat list, noncombat list, and maybe a healing list…. so i can give the avatar a bit of self preservation during combat.

5d09be840ea36.png

i might also have it do something to avoid repeating the same sentences too frequently.



0 comments

Loading...

Next up

Fun with dynamic sentences

Today I was setting up the location of the first boss. His name is "Father" and he is the first of the Patagonians. His task is to guard the road to the House.🛡🗡 Bookmark pre-launch page🔖🔖🔖

https://www.kickstarter.com/projects/rdvindiegame/the-patagonian…

Shadow The Hedgehog X pixel art

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitología latinoamericana. El juego llegará a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).

Regular exercise is key for healthy wings.

Try it out!

https://gamejolt.com/games/AeonNightmares/605184

Today I tackled drawing different variations of facial expressions for one of the main characters in Eden. What do you think of it? :) Eden: https://gamejolt.com/games/Eden/592698

not the greatest house, but it's a house! :D

Who's is this little cutey👸 here? Thanks🙏 for a gorgeous fanart @WheNa! Feel free to share your arts, screenshots, or videos with #playzelter or #zelter hashtags! #pixelart #animating #unity3d #animated #indiegames #unrealengine #animate #conceptart