Loved that you released a table for the current fm version.
Is there a way to edit the remove injuries to actually not remove injuries and just set the matchcondition/physical to a specified(or random value between x and y[i was using this in other table: math.random(9500,10000)])?
Also im using alt+w to "?" and apparently it trigger something in your table. Is something important or i can just ignore it?
Another doubt is about "cancel team transfer" and "no transfer activity". I think both do the same, but, this will cancel every transfer related to my club or just the In's or Out's? If it's the case it'll prevent any of my players to leave my club?
Is there a way to edit the remove injuries to actually not remove injuries and just set the matchcondition/physical to a specified(or random value between x and y[i was using this in other table: math.random(9500,10000)])?
It's will be strange to see a injured player with full-fitness, but it's up to you. Here you go:
Turn off all scripts.
Create a new Auto Assemble script. Paste this following code into that. This code will overwrite the original code.
{$lua}
if syntaxcheck then return end
[Enable]
function removePlayerInjuries(addr)
local Person = getAddressSafe(addr)
if Person == nil or Person == 0 or not isPlayer(Person) then
Person = readQword(addr)
end
if Person == nil or Person == 0 or not isPlayer(Person) then
Person = readQword('ptrPerson')
end
if Person == nil or Person == 0 or not isPlayer(Person) then return end
local Player = getPlayerFromPerson(Person)
if Player == nil or Player == 0 then return nil end
writeSmallInteger(Player+0x1F0, math.random(9500,10000)) -- Match Sharpness
writeSmallInteger(Player+0x1F2, 0) -- Fatigue
writeSmallInteger(Player+0x1F4, math.random(9500,10000)) -- Overall Physical Condition
writeByte(Player+0x25B, 20) -- Morale
return
end
enableAutoDisable(memrec, nil) -- auto deactivate this
[Disable]
Assign the script, select that, run this code on Lua Engine
Another doubt is about "cancel team transfer" and "no transfer activity". I think both do the same, but, this will cancel every transfer related to my club or just the In's or Out's? If it's the case it'll prevent any of my players to leave my club?
The diferences between these is just No Transfer Activity will eliminate incoming transfer offers to specific club periodically (When you managed a low profile club and you have a good player, it's annoying other clubs keep sending a bid on him, if you set Transfer Options to Reject All Transfer the player is tend to unhappy. So i think this option is a good alternative method.) How about applying this only to a specific player? No, currently not supported, just use Cancel All Transfer Offers (Person -> Presets -> General) instead.
[/size]
Thank you very much for your quick answer.
I did that and indeed it changed.
But after 1-2 "Continue"s it returned back to 5.
Did i do anything wrong? Is there a way to save this change?
Or even remove the rule completely?
Thank you very much for your quick answer.
I did that and indeed it changed.
But after 1-2 "Continue"s it returned back to 5.
Did i do anything wrong? Is there a way to save this change?
Or even remove the rule completely?
Thank you again for your incredible work.
That's happened when you're using original database, this game always reloaded the value in the next season or even when you're restart the game. But It never happened to me after continuing the game, or I missed something.
I looked at Rules 2 it contains 5 foreign players rules (not O21s), maybe it's the correct rules used for Chilean First Division, you can can change it to other rule type, or anything. Because no information what rules linked to a comp, you have to compare data on Table with comp info in FM (ex. EPL used Rules no 5 / 6 in the database).
That's what I said, you can only permanently change it if you use custom editor data. For now I'm still learning how the game's actually work, let's hope better in the future.