[Script][Crom system] Party Exhaustion
- 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
....
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.
- Mysterious
- Posts: 226
- Joined: Wed Nov 06, 2013 8:31 am
Re: [Script][Crom system] Party Exhaustion
Hi CroCrom. I have already a Party object ? eg:
So is ok to have another 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,
}
},
}
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,
}
},
}
- 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
....
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.
- Mysterious
- Posts: 226
- Joined: Wed Nov 06, 2013 8:31 am
Re: [Script][Crom system] Party Exhaustion
Thxs CromCrom got it to work 
