01-01-2010, 07:29 AM
Haha. I like how you are copying some of my work now DVV :P
and also my script did have errors. the problem that fgsfds had when using perfume was that the script tries to get the actor who used the item (for example in battle it gets two Game_Battler objects) for example Aluxes uses a Potion on Gloria. It gets Aluxes's Game Battler object and Gloria's. It then (if I can really recall) applies the item effects for Aluxes using items and Glorias effects for getting an item used on her.
But if you do this via Scene_Item and not Scene_Battle the way the script got the second actor was by reading the Scene's instance variable @actor. Scene_Item doesn't have it so when it was read it returned nil, and then methods were called on nil and thus errors.
but yeah my version is complex and its really like an addon status effect system to compliment RMXP's where the statuses affect states and other junk (and there is a lot of other junk).
but feel free to look at my version for ideas on how to implement stuff (and if you add anything new to yours that mine doesn't have be sure that I am going to steal it and add it to mine >:D)
and also my script did have errors. the problem that fgsfds had when using perfume was that the script tries to get the actor who used the item (for example in battle it gets two Game_Battler objects) for example Aluxes uses a Potion on Gloria. It gets Aluxes's Game Battler object and Gloria's. It then (if I can really recall) applies the item effects for Aluxes using items and Glorias effects for getting an item used on her.
But if you do this via Scene_Item and not Scene_Battle the way the script got the second actor was by reading the Scene's instance variable @actor. Scene_Item doesn't have it so when it was read it returned nil, and then methods were called on nil and thus errors.
but yeah my version is complex and its really like an addon status effect system to compliment RMXP's where the statuses affect states and other junk (and there is a lot of other junk).
but feel free to look at my version for ideas on how to implement stuff (and if you add anything new to yours that mine doesn't have be sure that I am going to steal it and add it to mine >:D)