Blockland Forums > Modification Help
A stupid question regarding fetching the Category name
Xalos:
--- Quote from: Greek2me on June 03, 2012, 10:51:24 AM ---Here is a better method to get the host's ID, since this works on LAN servers as well.
--- Code: ---function getBlocklandID()
{
if($Server::LAN)
return 999999;
else
return getNumKeyID();
}
--- End code ---
--- End quote ---
Because all LAN BL_IDs are 999999 for some reason. :v
Greek2me:
--- Quote from: Xalos on June 03, 2012, 11:25:03 AM ---Because all LAN BL_IDs are 999999 for some reason. :v
--- End quote ---
No, don't go and change the code that I posted.
--- Code: ---function getBlocklandID()
{
if($Server::LAN)
return getLAN_BLID();
else
return getNumKeyID();
}
--- End code ---
getLAN_BLID() is a default function and is the proper way to do it, in case Badspot ever changes the LAN ID from 999999.
Randomness:
I think now comes the moment of truth; something that has been bothering me since Day 1 of this programming project.
Some of the custom bricks in this add-on use "trigger" datablocks. (aka you walk on them and they activate) I've been having a problem where when you load these bricks, they do not load their respective triggers. This is a problem also seen in the dead CityRPG mode, but now Im having this issue too.
Is there any hope of fixing this?
Ipquarx:
Yes, you can package the plant function for a specific brick datablock and have it create the trigger.
elm:
Package onloadplant not onplant.