Page 1 of 1

Scripting etude's

Posted: Fri Jul 04, 2014 12:05 am
by Signature
any guidance on what effects\etude.lua should look like?


tried using Carol formula and replacind MOD_XXXRES with MOD_STR and so on but that didnt seem to work, just caused crashes.
Any idea on what it should look like?

for instance have a check in effects\etude.lua that does this, If spell=logical etude return MOD_MIND, If spell=Bewitching etude return MOD_CHR
or is there a simpler way of setting this up like carols are set up... I seem to be missing something here.

Re: Scripting etude's

Posted: Fri Jul 04, 2014 12:10 am
by Signature
I scripted the spells themselves... But the actual status effect of Etude is empty, and i'm having a lil bit of a hard time trying to make it work according to the type of etude cast.

Re: Scripting etude's

Posted: Fri Jul 04, 2014 12:28 am
by kjLotus
power: amount of stat to add
subpower: modifier

ex. sinewy_etude.lua:

target:addBardSong(caster, EFFECT_ETUDE, power, 0, duration, caster:getID(), MOD_STR, 1);

etude.lua:

target:addMod(effect:getSubPower(), effect:getPower());

Re: Scripting etude's

Posted: Fri Jul 04, 2014 12:34 am
by Signature
That makes a hell of a lot more sense thanks for the super fast response. :)

Re: Scripting etude's

Posted: Fri Jul 04, 2014 12:42 am
by Signature
Perfect! Worked like a charm. Thanks again Kj!