News Board

Message Details

Update! Modifiers, Effects, and Documentation

By Tristan on 25/02/2010 08:44:02

I have updated the mud once again! I merged in some code I have been experimenting with for ages, and I am pleased to announce that it is now possible to dynamically modify the behaviour of functions in other objects. This means you can write something that intercepts a call to a function and alters the return value, or changes what it does. This sort of thing will be used chiefly for writing Effects. Effects are bits of code that modify an object in some way. You could have an effect for a broken arm. Or being drunk. Or under the influence of a magical spell. They get applied to a target object and can then do whatever they need to. They could modify some functions, or use CallOuts to make things happen. These will be very important once the game gets a bit more developed. I have been adding documentation and have created some example classes for these things that I have just added. The documentation is available online at http://www.antikaria.com/doc/ The examples can be found at: http://www.antikaria.com/doc/TestLib.Examples/ Happy Effecting!

Back to board index.