This is class for manipulation with players characters.
[] - Return leader
[x] - Return person on pos x
addExp (exp) - Adds expirience to party. When you call party:addExp(x) it adds (x/count of person) points of expirience to every person in party.
addGold (amount) - Add amount of gold to party.
calc (par, funct) - Find "funct" value of parameter "par" from party ans returns it.
count - Count of persons.
createItem (itemName) - Create new item.
dir - Actual direction of party. Equals to map.dir
doCast - As click on Cast button.
doRest - As click on Rest button.
doSearch - As click on Search button.
doUse - As click on Use button.
get (pos) - Returns person on <pos>.
getNext - Returns null. Only for compability with
group.class.
getParam (Name) - get param for this game use with big care @defValue default value of parameter
getParent - Returns null. Only for compability with
group.class.
getPrev - Returns null. Only for compability with
group.class.
gold - Returns how many gold party have.
hurt (from, to, skill) - Hurts all persons on HP in interval <from><to>. If to is not defined, then hurts all just for to. Skill will decrease hurt.
leader - Returns selected person
removeGold (amount) - Remove amount of gold from party.
setParam (Name) - set param for this game use with big care @value value of parameter
[]
[x]
addExp (exp) Adds expirience to party. When you call
party:addExp(x)
it adds (x/count of person) points of expirience to every person in party.
Parameters
addGold (amount) Add amount of gold to party.
Parameters
calc (par, funct) Find "funct" value of parameter "par" from party ans returns it. For example call of
party.calc("CARRY","SUM")
return total weight of all persons carry.
Parameters par - parameter name
funct - function name - max,min,sum,avg
count
createItem (itemName) Create new item.
Parameters itemName - name of a item
Returns
dir Actual direction of party. Equals to map.dir
doCast
doRest
doSearch As click on Search button.
doUse
get (pos) Returns person on <pos>.
Parameters
Returns
getNext Returns null. Only for compability with
group.class.
Returns
getParam (Name) get param for this game - use with big care @defValue default value of parameter
Parameters
Returns
getParent Returns null. Only for compability with
group.class.
Returns
getPrev Returns null. Only for compability with
group.class.
Returns
gold Returns how many gold party have.
Returns
hurt (from, to, skill) Hurts all persons on HP in interval <from>-<to>. If to is not defined, then hurts all just for to. Skill will decrease hurt.
Parameters from - from how many points to hurt
to - to how many points to hurt
skill - name of skill which will decerease hurt
leader Returns selected person
Returns
removeGold (amount) Remove amount of gold from party.
Parameters
setParam (Name) set param for this game - use with big care @value value of parameter
Parameters
Generated by Hideoshi's Documentation Tool on 28.10.2003 20:08:55