Scripting etude's

Post Reply
User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Scripting etude's

Post by Signature » Fri Jul 04, 2014 12:05 am

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.

User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Re: Scripting etude's

Post by Signature » Fri Jul 04, 2014 12:10 am

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Scripting etude's

Post by kjLotus » Fri Jul 04, 2014 12:28 am

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());

User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Re: Scripting etude's

Post by Signature » Fri Jul 04, 2014 12:34 am

That makes a hell of a lot more sense thanks for the super fast response. :)

User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Re: Scripting etude's

Post by Signature » Fri Jul 04, 2014 12:42 am

Perfect! Worked like a charm. Thanks again Kj!

Post Reply