Ok, Instead of this line i used a lot of commands like
And it works, it adds as expected 40 archers.
But With the former command, nothing happens, it should add slow to the first slot of the magic tower.
Its triggered wtih !?CM1, and i did all the neccesary so it only triggers when i right click on magic tower.
But , as said, it adds 40 archers with the previous line. But it doesn´t change or add the spell I ask, i tried different levels, different spells.
It just doesn´t add it.
If you want to check the whole thing, here it is.
Code: Select all
!!OW:C?y-10; [check for current player]
!!OW:Gy-10/?y-11; [check if this player is sitting in front of the screen in which is clicked]
!!FU&y-11=0:E; [Exit if it's not his turn]
!!CM:I?y-4; [Check what building is clicking]
!!VRz1:S^What spell Do you want to get?^;
!!VRz13:S^What level of spell do you want to get?^;
!!IF:M^You don't have enough resources!^;