Programmer's Wiki
Advertisement

This is a piece of code for a RPG game where spells are learned and forgotten or used

to fireball.learn
print [You learn the spell fireball.]
define fireball.cast [[] [print [you cast fireball]] [print [you forget fireball]] fireball.delete]
end

to fireball.delete
erase [cast.fireball]
end

Advertisement