Blockland Forums > Modification Help
miniGameCanDamage not being invoked + other stuff
CityRPG:
My guess is you're trying to make some sort of gamemode that runs without a minigame.
This isn't a good idea. Blockland is designed to be a brick building game. All combat related stuff is handled by Minigames. Trying to break this system because you don't think your gamemode is "mini" anymore is ill-advised.
You can do a bunch of hacks, like returning a minigame object always in the function getMiniGameFromObject, but the end result is going to be exactly the same -- minus the leave/join messages. If that's your only grievance, your trickery might be better placed trying to hack out the messages.
Port:
Actually, I found some solution:
--- Code: ---new fxDTSBrick() { position = "0 0 0"; datablock = brick1x1Data; }.delete();
--- End code ---
This seems to fix it, oddly enough.
CityRPG:
In no way shape or form does your "fix" make any sense. I strongly advise revisiting the problem.
To answer your second question, there is a function like getGroupFromObject(%obj).client
Fetch brick group, find client.
Port:
--- Quote from: CityRPG on January 10, 2012, 03:19:51 AM ---In no way shape or form does your "fix" make any sense.
--- End quote ---
Welcome to Blockland.
--- Quote from: CityRPG on January 10, 2012, 03:19:51 AM ---To answer your second question, there is a function like getGroupFromObject(%obj).client
Fetch brick group, find client.
--- End quote ---
Destiny already posted a method that works for projectiles, vehicles, etc as well.
--- Quote from: CityRPG on January 10, 2012, 12:39:18 AM ---My guess is you're trying to make some sort of gamemode that runs without a minigame.
--- End quote ---
I am making a system that allows for maps with a built-in brick save file that will be loaded and interactive map logic by performing specific actions when a map is loaded and other support systems for this.
--- Quote from: CityRPG on January 10, 2012, 12:39:18 AM ----trying to get me to use mini-games instead snip-
--- End quote ---
Mini-games would be impractical in this situation due to their long list of drawbacks and how this is going to work. I do not feel that it is required for me to elaborate further on this subject.
Greek2me:
--- Quote from: Port on January 10, 2012, 03:39:33 AM ---Mini-games would be impractical in this situation due to their long list of drawbacks and how this is going to work. I do not feel that it is required for me to elaborate further on this subject.
--- End quote ---
It's far easier to hack up minigames so that they work differently than to completely bypass them. What exactly are you trying to do?