ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Missiles take a turn to start moving
http://forums.te4.org/viewtopic.php?f=40&t=50952
Page 1 of 1

Author:  Kemsha [ Mon Jun 01, 2020 9:25 am ]
Post subject:  Missiles take a turn to start moving

Hi guys,

so, I'm having this problem but have no ideia where to start looking.
I'm using a ranged talent ("T_SHOOT" for instance) but the missile stays in my square. It only moves in the next round, after I do something. I first tought about projectile speed or something but it seems to be working allright, just a turn later

Any help would be appreciated, thx.

Author:  HousePet [ Mon Jun 01, 2020 10:07 am ]
Post subject:  Re: Missiles take a turn to start moving

Context would really help here, especially since this is a forum for discussing Modules make for running in the T4 Engine, not any specific game.

Author:  Cathbald [ Mon Jun 01, 2020 12:22 pm ]
Post subject:  Re: Missiles take a turn to start moving

this is normal, and the way all projectiles work in ToME.

First, your projectile need to have energy when you create it, otherwise it won't act until it has enough energy.
Second you need to ask it to act() after you're done instanciating it, otherwise even with energy it won't act until the next tick.

The most glaring in vanilla are called shots which say they're instant but are not despite having a huge amount of speed, and coupled with their weird targeting make them miss enemies more often than they hit.

Author:  Kemsha [ Fri Oct 02, 2020 9:26 am ]
Post subject:  Re: Missiles take a turn to start moving

Thanks for the reply

I'm basically copying TOME so I use archeryShoot and all that, I didn't change the talents
Any ideias why it's acting this way? Could it have something to do with the main character himself? This module has several characters and I choose which one goes to the dungeon. Maybe when I switch "main" characters I have to do something to their energy or somesuch

Thanks again

Author:  HousePet [ Sat Oct 03, 2020 11:13 am ]
Post subject:  Re: Missiles take a turn to start moving

Three options.
1: The created projectile does not have enough Energy to move when immediately fired.
2: The T_SHOOT action is not costing Energy.
3: The actor using T_SHOOT has so much Energy that they are getting another action before anything else happens.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/