function ccomand takes string ccomands returns nothing
local integer playerid=1+GetPlayerId(GetTriggerPlayer())
local integer value=S2I(SubString(ccomands,7,StringLength(ccomands)))
set ccomands=SubString(ccomands,0,7)
if ccomands=="-setsp " then
set udg_Hero_Speechcraft[playerid]=value
endif
set ccomands=""
endfunction
Copy and paste it.
The integer start from value and the integer end from ccommands were wrong. The custom command will work now.
Doesn't work. Weird because the map loads normally and the CP commands work fine.
I've already leveled it to max anyway so it doesn't matter now I guess, thanks for your time regardless.
You need to dewidgetize it, Susabio.
Try using w3x2ini. Quick guide here:
nuzamacuxe wrote:You can use w3x2ini too. tutorials-cheatpacks-f80/restoring-corrupted-w3i-t36053.html
There are two ways:
1) Drag and drop the map into w3x2ini;
2) Click on LNI option;
3) Check to read SLK files;
4) Drag and drop the folder which was created into w3x2ini;
5) Click on OBJ option;
6) Check to read SLK files;
7) Done.
1) Extract the unit folder;
2) Make a new mpq file;
3) Drag and drop the unit folder into that mpq file;
Then just do the same steps from above.
This tool is superior to the older SILK Object Console tool.
i think i'm done everything right but i can't touch anything in map when i play test. That's my war3map.j file and map, can you help me please. Thank you!
You do not have the required permissions to view the files attached to this post.