in dungeon types:
- what does "alloc_chance" do?
- what does "fill_method" do?
When running the game, why does a module appear or not appear in the list?
- "alloc_chance" is the chance each turn to allocate a new monster
- "fill_method" when you select many floor/wall types this is what chooses the patterns, from 1 to 4 IIRC, try it you'll see the effects
- A module always appears should it be valide AND have it's dependencies valid(other modules or packs it depends upon)
NeilStevens: Psst, you forgot the rule that only people on the map get to have questions answered.
- alloc_chance is in what units? is it a 1/(alloc_chance) chance of allocating each turn?
- what all does it have to have to be "valid"?
DarkGod: Ahh neil is right, please register on the Map :>
DarkGod: Ok, alloc_chance i in 1/chance yes. A module to be valid must .. mhh nto spit any error when your run T-Engine
ElvishPillager: more things:
I'm trying to make a Ring of Autospell; you store a spell in it, and it builds up mana over time, and it casts the spell once it has enough mana. It seems to me like the way to go about this would be to have an object flag with the regen-rate value, but I'm not sure about how to store the spell and the current mana.
- how do I make the flag?
- how do I check whether the flag is there?
- how do I check what the flag's value is?
- what do I do for the other values?
- is there a better way to do this?
- new_flag("FOO")
- if obj.flags[FLAG_FOO] then ... end
- local value = obj.flags[FLAG_FOO]
- ??
- Sounds fine this way
BucketMan Since we're asking general questions:
- Let's say you wanted to kick a player out of a store and teleport them someplace, a la the T232 Thunderlords Den. How would you break them out of the store, and how would you do it such that you could still execute another line or two of code to perform the teleport?
- What is 'aaf' in a monster definition?
- What is the significance of the second number in item allocation?
- How do you force a monster to drop a specific item?
- Is it possible to specify SVAL ranges in object themes? How?
- How do we turn OFF the map border feature? (Pulling edge of map FEAT's from adjacent map)
Thank you.
ToME Wiki