Page 1 of 1

Missiles take a turn to start moving

Posted: Mon Jun 01, 2020 9:25 am
by Kemsha
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.

Re: Missiles take a turn to start moving

Posted: Mon Jun 01, 2020 10:07 am
by HousePet
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.

Re: Missiles take a turn to start moving

Posted: Mon Jun 01, 2020 12:22 pm
by Cathbald
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.

Re: Missiles take a turn to start moving

Posted: Fri Oct 02, 2020 9:26 am
by Kemsha
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

Re: Missiles take a turn to start moving

Posted: Sat Oct 03, 2020 11:13 am
by HousePet
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.

Re: Missiles take a turn to start moving

Posted: Tue Feb 23, 2021 7:45 pm
by Kemsha
I finally got around to test it and... it worked!

I didn't quite understood why did I have to explicitely force the projectile to act but it works and that's what matters

Thanks a lot