PDA

View Full Version : how can i get the number of crystals?


yajine
03-16-2009, 12:17 AM
i had a question yesterday,when i use this function as follow

function get_crystal_count()
return Logic.hero_lu_item("crystal","count")
end

it returns 0,but the hero has 6,
i have check the return type is number,what's the problem?

Keneth
03-16-2009, 06:46 AM
It's "crystals", not "crystal".

yajine
03-16-2009, 07:34 AM
oh,i'm sorry,thank you!