Reply to Scripting help needed
If you don't have an account, just leave the password field blank.
So as usual, I have encountered another major snag which is prohibiting the quick development of my Dmod.
There is a unique bomb, only one of its kind that is available in the whole map. This bomb has to be used on a certain location, nowhere else. For example, say it has to be used on a certain map "450". I can make sure that it can't be used in another map by adding to the use procedure of the bomb script:
if (&player_map > 450)
{
say("Something",1);
}
if (&player_map < 450)
{
say("Something",1);
}
if (&player_map = 450)
{
//now the bomb can be used
//etc
}
The problem with this is that I am only able to check that this bomb can only be used in that particular map but as this bomb has to destroy a wall, a player can easily waste it by blowing it somewhere else on the same screen. Is there any way by which I can make sure that this bomb can only be used to blow that wall?
Help someone!
There is a unique bomb, only one of its kind that is available in the whole map. This bomb has to be used on a certain location, nowhere else. For example, say it has to be used on a certain map "450". I can make sure that it can't be used in another map by adding to the use procedure of the bomb script:
if (&player_map > 450)
{
say("Something",1);
}
if (&player_map < 450)
{
say("Something",1);
}
if (&player_map = 450)
{
//now the bomb can be used
//etc
}
The problem with this is that I am only able to check that this bomb can only be used in that particular map but as this bomb has to destroy a wall, a player can easily waste it by blowing it somewhere else on the same screen. Is there any way by which I can make sure that this bomb can only be used to blow that wall?
Help someone!