Cacowad Posted October 9, 2012 for the series: "how that work?" are there: the powerups classes! quik question, what appen if i try to pickup a more powerful version of a power up that already have? thay will stack or the newer\more powerful will replace the older\less powerful item? below there is a portion of a useless code just in case,ther are any changes if the duration differs or are ineriting from the class they are attempting to replace\being replaced? ACTOR PowerDamage2 : PowerDamage { powerup.duration -200 damagefactor "normal", 4 +INVENTORY.HUBPOWER } ACTOR PowerDamage3 : PowerDamage { powerup.duration -200 damagefactor "normal", 2 +INVENTORY.HUBPOWER } ACTOR PowerDamage4 : PowerDamage2 { powerup.duration 0x7FFFFFFF damagefactor "normal", 3 +INVENTORY.HUBPOWER } as usual thank you for your patience. 0 Share this post Link to post
Gez Posted October 9, 2012 Cacowad said:quik question, what appen if i try to pickup a more powerful version of a power up that already have? thay will stack or the newer\more powerful will replace the older\less powerful item? It depends on the powerup type. Generally, the newer replaces the older. However, for PowerDamage and PowerProtection items, they stack. So in your example, if you get all three items, your damage will be multiplied by 24. 0 Share this post Link to post
Cacowad Posted October 9, 2012 good to hear! thank you. powerspeed act similar to powerdamage, so i guess it will stack... i'll try soon. 0 Share this post Link to post