Page 1 of 1

Speed

Posted: Thu Sep 11, 2014 9:21 am
by Zireael
As I understand it, there are several speed types in T-Engine. The wiki says movement speed applies only to movement, but when I used it for Veins, monsters with higher movement speed can attack me twice in a round. This shouldn't happen, as none of them have increased attack speed.

Or am I misunderstanding something?

Re: Speed

Posted: Thu Sep 11, 2014 2:16 pm
by Isotope-X
OK, this is how I understand it. General speed determine how much "energy" you gain each turn. Once you get enough energy, you use it for an action. The speed of the action (movement, combat, spellcasting, or mental) determines how much "energy" you lose taking that action. So if the monster had high enough movement speed, and therefore didn't "spend" as much on movement, it might get enough to attack quickly.

It could also be that the monster in question had an ability that allowed multiple attacks (Flurry or something like that) and the text log showed it as seperate attacks.

Re: Speed

Posted: Thu Sep 11, 2014 4:54 pm
by ZyZ
Zireael wrote:The wiki says movement speed applies only to movement, but when I used it for Veins, monsters with higher movement speed can attack me twice in a round. This shouldn't happen, as none of them have increased attack speed.

Or am I misunderstanding something?
Monster movement speed does not really matter because monster use attack speed and global speed to perform attack. Stone veins reduce your speed by 50% so (assuming you and monster have 100% global speed) every time you MOVE everyting else with 100% attack / move / spell / mind speed is able to do 2 actions.

There is a great combat speed guide in general section http://forums.te4.org/viewtopic.php?f=38&t=36880. Movement speed works exactly the same.

Re: Speed

Posted: Thu Sep 11, 2014 6:24 pm
by Zireael
Veins is my module :)

Thanks a lot for the link, it explains a lot.

I have not touched any other speed types apart from movement_speed_bonus, so I assume they're all 100%.
I gave some monsters high movement_speed_bonus (like 1.66) on the assumption it affected only the distance covered...

I guess I'll have to tinker with the AI a bit, maybe it's possible to stow a check somewhere which would allow them to attack only once per player turn... (and I should integrate some form of energy counter too) I'm pretty sure I have the Chronometer addon saved (and I think the clock addon, too) so I could poke around it and have it show energy in my module...

Re: Speed

Posted: Sat Sep 13, 2014 3:20 am
by Castler
There's a description of how energy works in this forum post. Does it help any? If so, I'll try to clean it up a bit and add it to the wiki.

ToME's approach is to have a global speed (which modifies how much energy each actor gets per game tick) as well as speed modifiers for combat, movement, spells, etc. (which are used when calling useEnergy to determine how much energy an action costs).

From looking at Veins' source code, it looks like you're only modifying movement speed, so I'm not sure what's going on there.