| Blockland Forums > Modification Help |
| Easy way to know what variables are used in Parents? |
| << < (2/2) |
| Chrono:
There's a massive list of functions. Figuring them all out would take some time... But it would be a nice resource. |
| Destiny/Zack0Wack0:
--- Quote from: Chrono on July 13, 2011, 04:38:13 PM ---There's a massive list of functions. Figuring them all out would take some time... But it would be a nice resource. --- End quote --- There's already a project. I forked it on Github: https://github.com/Zack0Wack0/bldocs And the latest updated docs are here: http://readthedocs.org/docs/bldocs/en/latest/ I can't be bothered to find the link to the Modification Discussion topic. The problem is I was one of the only people working on it. |
| Red_Guy:
you'll want to do something like this: function Armor::onTrigger(%a, %b, %c, %d, %e, %f, %g, %h, %i, %j) { echo("%a: " @ %a SPC %a.getClassName() ); echo("%b: " @ %b SPC %b.getClassName() ); echo("%c: " @ %c SPC %c.getClassName() ); .... and so on for every argument return parent::onTrigger(%a, %b, %c, %d, %e, %f, %g, %h, %i, %j); } some of them may generate errors, but it will give you a number and a class name for each argument. then you can use <number>.dump(); at the console to see what the object is. again - some of these may not always work if the object id has been deleted by the time you start typing. and then like Chrono said, the first argument %a, will always be an instance of armor: %a: <number> Armor |
| Navigation |
| Message Index |
| Previous page |