Page 1 of 1

[Script][Crom system] Party Exhaustion

Posted: Sun Nov 02, 2014 12:02 pm
by cromcrom
....

Re: [Script][Crom system] Party Exhaustion

Posted: Sun Nov 02, 2014 1:04 pm
by Mysterious
Hi CroCrom. I have already a Party object ? eg:

Code: Select all

defineObject{
   name = "party",
   baseObject = "party",
   components = {
      {
        class = "Party",
      onDamage = function(party,champ,damamount,damtype)
     cromdamagerepairsystem.script.checkDeteriorationItemAndEffect(champ,damamount,damtype)
      end,

      }
   },


}
So is ok to have another eg:

Code: Select all

defineObject{
   name = "party",
   baseObject = "party",
   components = {
      {
        class = "Party",
      onMove = function(party,dir,arg1)
      exhaustionSystem.script.addExhaustion()

      }
   },

defineObject{
   name = "party",
   baseObject = "party",
   components = {
      {
        class = "Party",
      onDamage = function(party,champ,damamount,damtype)
     cromdamagerepairsystem.script.checkDeteriorationItemAndEffect(champ,damamount,damtype)
      end,

      }
   },

}

Re: [Script][Crom system] Party Exhaustion

Posted: Sun Nov 02, 2014 1:30 pm
by cromcrom
....

Re: [Script][Crom system] Party Exhaustion

Posted: Sun Nov 02, 2014 6:33 pm
by Mysterious
Thxs CromCrom got it to work :)