|
Thread: how i remove this script?? its not removed even i delete code.. | |
|
Archimp
Tavern Dweller
|
posted May 19, 2009 06:10 PM |
|
|
how i remove this script?? its not removed even i delete code..
so how this can be happened...
i add code and then in castle appears always duncan hero even i remove the script and other thing is that script not even do like this...
here is code:
for i = 1, 8, 1 do --do for player (this assumes eight players)
ChangeHeroStat (GetPlayerHeroes(i)[0], STAT_EXPERIENCE, 8000);
end;
what i should do...?
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted May 19, 2009 06:44 PM |
|
|
Quote: i add code and then in castle appears always duncan hero even i remove the script and other thing is that script not even do like this...
Ibelieveallyourprobelmsarecausedbyincorrectsyntax.
Quote: for i = 1, 8, 1 do
What last 1 stands for? FOR instruction in lua takes only two arguments.
Quote: how i remove this script?? its not removed even i delete code..
If you remove it, it's removed. Alternatively, if you delete it, it gets deleted. Quite logical, isn't it?
Make sure you saved and opend right version of map and there are no additional values set. If you always get duncan in your castle, you must have changed it.
|
|
|
|