[Script][Crom system] Party Exhaustion

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

[Script][Crom system] Party Exhaustion

Post by cromcrom »

....
Last edited by cromcrom on Thu Nov 20, 2014 4:04 pm, edited 1 time in total.
A trip of a thousand leagues starts with a step.
User avatar
Mysterious
Posts: 226
Joined: Wed Nov 06, 2013 8:31 am

Re: [Script][Crom system] Party Exhaustion

Post 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,

      }
   },

}
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Script][Crom system] Party Exhaustion

Post by cromcrom »

....
Last edited by cromcrom on Thu Nov 20, 2014 4:04 pm, edited 1 time in total.
A trip of a thousand leagues starts with a step.
User avatar
Mysterious
Posts: 226
Joined: Wed Nov 06, 2013 8:31 am

Re: [Script][Crom system] Party Exhaustion

Post by Mysterious »

Thxs CromCrom got it to work :)
Post Reply