BluRosie / hg-engine

complete heart gold engine
172 stars 99 forks source link

About Item #354

Open XiaoFuDieZZZ opened 2 weeks ago

XiaoFuDieZZZ commented 2 weeks ago

I noticed in the ItemSystem that there is an attribute called "fieldUseFunc". Does this mean that a function is called when an item is used? Where is this function located, and is it editable?

My goal is to call the function "SetVar 0x416F" to adjust the level cap, when I use this item, I first store the current level limit as variable A, then when I use it for the first time, I set SetVar 0x416F to 100 (i.e. disable the limit), and when I use it again, I set SetVar 0x416F to variable A.