Can I merge this script? Stronghold Compilation.
Posted: Mon Sep 23, 2013 9:59 am
Trying to build a compilation out of pieces of other mods to create a well balanced modification for my server. However, I am having trouble here. I want to merge this script
//this will open up a tier based on input from the user//[TIHan]
script 789 (int tier)
{
if (tier == 1)
{
print(s:"Warning: Tier already opened!\n");
}
else if (tier == 2 && g_currentTier < 2)
{
g_currentTier = 2;
}
else if (tier == 3 && g_currentTier < 3)
{
g_currentTier = 3;
}
else if (tier == 4 && g_currentTier < 4)
{
g_currentTier = 4;
}
else if (tier == 5 && g_currentTier < 5)
{
g_currentTier = 5;
}
else if (tier == 6 && g_currentTier < 6)
{
g_currentTier = 6;
}
else if (tier > 1 && tier < 7)
{
print(s:"Warning: Tier already opened!\n");
}
else
{
print(s:"Warning: Incorrect Tier!\n");
}
ACS_Execute(10, 0, 0);
}
With another map file. But I don't know how to do that since everything is already compiled. If I can't merge it, how do I add it as an individual modification? One that doesn't conflict with other addons present?
This is all very new to me, and from what I could put together. I don't know how to proceed.. It's obvious this was taken from someone else's work and I take no credit for it. All I want is to build a balanced modification. (And if any of you played stronghold. I host a server that isn't on 24/7. The clients I have don't have the time to keep replaying the same tiers over and over. So, I really need some help here. This script is designed to force open each tier individually as opposed to using the debug mode that is already in the game.)
//this will open up a tier based on input from the user//[TIHan]
script 789 (int tier)
{
if (tier == 1)
{
print(s:"Warning: Tier already opened!\n");
}
else if (tier == 2 && g_currentTier < 2)
{
g_currentTier = 2;
}
else if (tier == 3 && g_currentTier < 3)
{
g_currentTier = 3;
}
else if (tier == 4 && g_currentTier < 4)
{
g_currentTier = 4;
}
else if (tier == 5 && g_currentTier < 5)
{
g_currentTier = 5;
}
else if (tier == 6 && g_currentTier < 6)
{
g_currentTier = 6;
}
else if (tier > 1 && tier < 7)
{
print(s:"Warning: Tier already opened!\n");
}
else
{
print(s:"Warning: Incorrect Tier!\n");
}
ACS_Execute(10, 0, 0);
}
With another map file. But I don't know how to do that since everything is already compiled. If I can't merge it, how do I add it as an individual modification? One that doesn't conflict with other addons present?
This is all very new to me, and from what I could put together. I don't know how to proceed.. It's obvious this was taken from someone else's work and I take no credit for it. All I want is to build a balanced modification. (And if any of you played stronghold. I host a server that isn't on 24/7. The clients I have don't have the time to keep replaying the same tiers over and over. So, I really need some help here. This script is designed to force open each tier individually as opposed to using the debug mode that is already in the game.)