Wait time Lua and Ashita

Having an issue with Ashita? Need some help setting things up? Ask for support here.
Post Reply
sayonara
Posts: 2
Joined: Mon Oct 09, 2017 3:16 pm

Wait time Lua and Ashita

Post by sayonara » Tue Oct 10, 2017 6:15 am

I try use Onevent for some renkei/magic burst.
i need insert a wait line, like : wait (1000)
after read some lua info about wait/sleep, seem to be over my knowledge.
i need use a wait librairy and see there is timer.lua in Libs folder.
need help to solve my problem.

User avatar
atom0s
Site Admin
Posts: 288
Joined: Sat May 14, 2016 5:13 pm

Re: Wait time Lua and Ashita

Post by atom0s » Tue Oct 10, 2017 12:33 pm

You could have OnEvent execute a text script that has the wait in it that you want.

Such as:

stun.txt

Code: Select all

/wait 1000
/ma "Stun" <t>
Then have OnEvent exec that via /exec stun.txt
Lead Ashita Developer

sayonara
Posts: 2
Joined: Mon Oct 09, 2017 3:16 pm

Re: Wait time Lua and Ashita

Post by sayonara » Tue Oct 10, 2017 1:47 pm

all right, Thank you!
Subject : Use Onevent addon to have perfect timing for MagicBurst. SCH + BLM, BLM is the character that auto_magicburst.
Solution :
1 - download Onevent via Ashita V3 : Onevent is an addon
2 - load Onevent in game : /addon load Onevent
3 - build a new text file such as stun, no need .txt, put this file in the scripts folder.
write your code:
/wait 1
/ma Stun <t>
take care : /wait 1 is a wait time of 1 sec, /wait 0.7 is a wait time of 0.7 sec. So time is in sec, not millisec.
4 - /onevent add text_to_trigger | /exec fire.txt

Post Reply