Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Getting a value with return
- proc/Add(num1,num2)
- var/Sum=num1+num2
- return Sum
- //You could do this without the sum variable:
- //return num1+num2
- mob/verb/Test_Add()
- src<<Add(2,3)
- src<<"3 + 5 = [Add(3,5)]"
- //Stopping a proc/verb with return
- mob/verb/Return2Stop()
- src<<"Shows this"
- return
- src<<"But not this"
- //It does both at the same time!
Add Comment
Please, Sign In to add comment