Guest User

Untitled

a guest
May 26th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //Getting a value with return
  2. proc/Add(num1,num2)
  3. var/Sum=num1+num2
  4. return Sum
  5. //You could do this without the sum variable:
  6. //return num1+num2
  7.  
  8. mob/verb/Test_Add()
  9. src<<Add(2,3)
  10. src<<"3 + 5 = [Add(3,5)]"
  11.  
  12. //Stopping a proc/verb with return
  13. mob/verb/Return2Stop()
  14. src<<"Shows this"
  15. return
  16. src<<"But not this"
  17.  
  18. //It does both at the same time!
Add Comment
Please, Sign In to add comment