Comments (6)
The creature id has to be stored as the creature's name. You can't store it's initiative order, because that could change before the end of combat.
from dm.
This will also required checking conditions for all creatures at the start and end of every creature's turn. It makes sense at that point to store the conditions globally, at least for ending them. But it still makes sense to store them locally for displaying creatures. However, creatures do not have a link back to the interface, and I don't want to add one to facilitate storing conditions.
But we will have to change storage. Do I want to change away from a dict? You could get stunned from two sources, and you would want to track those separately. So switch to a list of lists, rebuild it as you check it.
from dm.
Before moving forward, also consider changes to the con and uncon commands, think about how to handle the kill command, and specify changes to the update_conditons signature.
from dm.
Conditions do not necessarily stop when the source of them is killed. So leave that up to the user with uncon. I think the changes to the commands and signature are pretty obvious based on the syntax proposed in the first comment.
from dm.
Note that I will need to deal with groups as well.
Edit: No, that is all handled in get creature. But this is perhaps another issue. If one creature in a group has a condition, how is the DM/user made aware of that? Created issue #19 to deal with this.
from dm.
For the interface, I'm thinking dN to signify the duration of the condition. So d2 would last 2 rounds. Start and end can be handled as is, and anything else can be assumed to be the round it is checked.
from dm.
Related Issues (20)
- Old Test Code Not Working
- Need a default year_length in gtime.Time. HOT 1
- If you try to do combat tasks before doing init, it causes a Python error
- Armor Class text in creatures has double parentheses.
- Look at groups and condtions. HOT 3
- Within group creature identifier
- No concentration check with attack HOT 1
- Dome of Heaven Calendar won't load HOT 2
- Adding a new groups puts duplicate names in the tracker
- Create species objects
- Create background objects
- Create class objects
- Create a character building system.
- Add a meta-campaign HOT 1
- Statblock Check HOT 1
- Capitalization off on attack message
- Year not accessible to calendar formats
- Leading space in date formats
- Eras for calendars
- Create a character object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dm.