¡@

Home 

php Programming Glossary: rollsim

Can I include a function inside of another function?

http://stackoverflow.com/questions/708341/can-i-include-a-function-inside-of-another-function

rolling would be an automated function. Here is the code rollSim combatSim function rollSim hAttack rand 1 20 mDefend rand 1.. function. Here is the code rollSim combatSim function rollSim hAttack rand 1 20 mDefend rand 1 20 mAttack rand 1 20 hDefend.. hDefend rand 1 20 mDamage rand 10 25 hDamage rand 1 20 end rollSim function combatSim rollSim if hAttack mDefend print Hero hit..