Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
The interaction algorithm is as follows: 1) The tiles for guarding the portal are calculated (there may be stacks of creatures on the map, and several, which is bad, but this is rare). 2) The strongest guards are selected (the weak ones are removed). 3) The guards are duplicated from all sides of a non-single portal. 4) When attacking a guard (a trigger is activated), the duplicate is immediately removed. 5) If a guard remains after the battle, then what remains is duplicated again. (if we don't do steps 4 and 5, the guard in the duplicate will not decrease if it is damaged).
Added 1 minute ago RedHeavenHero
There is already a table and a function:
local powers={ 41,72,140,199,201,287,524,716,1086,1487,2185,2520,4866,6153, 75,124,101,150,259,370,511,694,1069,1415,2102,2360,4868,5850, 54,84,105,150,232,327,518,739,1166,1539,2204,2588,3174,3905, 100,169,191,311,309,433,635,846,1072,1441,1717,1993,4942,6028, 63,105,113,172,243,357,498,643,839,1126,2108,2535,4822,6095, 180,295,333,484,342,474,598,812,968,1324,2193,2537,5235,6443, 829,795,856,813,1793,2560,8576, 70,115,115,171,304,419,318,434,932,1308,2109,2477,4883,6100, 72,203,299,697,1523,2520,6003, 355,671,2523,1542, 42,69,121,174,190,254,492,680,695,926,2058,2571,4790,5937, 127,149,338,680,1434,2448,5860, 290,477,488,833,1333,2622,6389, 174,308,447,862,1457,2032,5905, 85,145,331,757,1541,2449,3872, 105,180,355,642,1096,2581,6095, 113,171,422,434,1329,2437,6070, 66,181,265,692,895,2572,5937}; function CalcPower(object) if IsObjectExists(object) == nil then return 0; end; local power = 0; for i=1,179 do power = power + %powers* GetObjectCreatures(object, i); end; return power; end;
That's very good. But then the process of merging with NFC is irreversible, because compatibility will be lost after applying such a table. But for now, some kind of exception will be enough: for example, if the creature is not in the table, the strength is 10.