DoOnce? BCS
Callirgos
Member Posts: 105
in BG:EE Mods
Hey Everyone,
I've got a combat script with a wizard, and I'd like them to fire Magic Missile if it is memorized, but only once and then move on to the next part of the script.
Looking around gibberlings3, but I don't see a way to do a "doOnce". Is there a way?
thank you.
I've got a combat script with a wizard, and I'd like them to fire Magic Missile if it is memorized, but only once and then move on to the next part of the script.
Looking around gibberlings3, but I don't see a way to do a "doOnce". Is there a way?
thank you.
0
Comments
These checkvariables are needed inside script blocks anyway to prevent them from looping, i.e. firing repeatedly which leads to the "stutter" bug behavior where NPC constantly interrupt any of their actions.
Do not forget to register your own modding prefix: https://www.gibberlings3.net/forums/topic/1649-community-filename-prefix-reservations
Of course, you could have just looked at basically any existing script to get this.