Нужно ли удалять texttag после вышеуказанной функции CreateTexttag(...)
Нет, Lifespan с этим справится сам.
Какие данные нужно ввести в эту функцию, чтобы texttag двигался и исчезал так же, как и у BLIZZARD это работает с наградой за убийство, критическим ударами и предметами "Вязанка дров" и "Счастливая монетка"?
осторожно, инглиш
Gold Text
Floating Text - Create floating text that reads (+ + Gold) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 86.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 2.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00
Lumber Text
Floating Text - Create floating text that reads (+ + Lumber) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (0.00%, 78.00%, 31.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 2.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00
Bounty Text
Floating Text - Create floating text that reads (+ + Bounty) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 86.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 54.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 3.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00
"miss" Text
Floating Text - Create floating text that reads miss at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 3.00
Floating Text - Change the fadepoint of (Last created floating text) to 1.00
Critical Strike
Floating Text - Create floating text that reads (CriticalStrike + !) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00
Shadow Strike Text
Floating Text - Create floating text that reads ShadowStrike at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (62.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00
Mana Burn Text
Floating Text - Create floating text that reads ManaBurn at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (32.00%, 32.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 72.00 towards 90.00 degrees
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Change the lifespan of (Last created floating text) to 5.00
Floating Text - Change the fadepoint of (Last created floating text) to 2.00
int GetPrice (unit whichUnit)
{
int i = GetPlayerTechCount( GetOwningPlayer( whichUnit ), techId, true )
int a=225
loop {exitwhen(i==0); a+=((i+1)*225); i=i-1}
return a
}
если нужно достать стоимость, в качестве ключа проверяешь равкод (rawcode, upgrage 1,2)
по хэндлу
вот при инициализации, берешь целочисленную записываешь в хэш
//по равкоду записываешь изначальную стоимость здания
call SaveInteger(Hash, rawcode, 0, 225) //стоимость здание - древесина
call SaveInteger(Hash, rawcode, 1, 100) //стоимость здание - золото
//сохраняем по ключу хэндлу GetHandleId, по формуле от изначально стоимости
call SaveInteger(Hash, GetHandleId(GetTriggeriUnit()), 0, 0) //кол-во апргрейдов равно ноль
У меня очень много уровней (писать всё это, может где-нибудь неправильно равкод введу), неужели вообще нет какого-нибудь способа? Необязательно функцию, может как-то математически можно вывести?
А зачем нужна функция cond(), если она нигде не используется?
И правильно ли я понял, что если спелл не тригерный, то ExecuteFunc запустится с переданной строкой "null"?
Если я там поменяю, то получится, что карта будет работать только на моём компьютере?
Я же там поменяю только у себя на компе, а те, кто скачает мою карту, уних этого не будет, я прав?
Как всё сложно, а что-нибудь проще можно замутить?
Или как можно сделать активную способность, которую юнит сам будет кастовать. Я хотел сделать Tower Defense, и чтобы товера сами использовали свои способности.
» WarCraft 3 / textag
» WarCraft 3 / Конвертация равкодов
» WarCraft 3 / Как рассчитать стоимость здания?
» WarCraft 3 / Как рассчитать стоимость здания?
» WarCraft 3 / Как рассчитать стоимость здания?
Ред. scopterectus
» WarCraft 3 / Как рассчитать стоимость здания?
» WarCraft 3 / Изгнание в астрал
» WarCraft 3 / Загрузочный экран
Ред. scopterectus
» Блог им. nvc123 / оптимизация вызова триггерных заклинаний
И правильно ли я понял, что если спелл не тригерный, то ExecuteFunc запустится с переданной строкой "null"?
» WarCraft 3 / Вторая кнопка "Построить"
Я же там поменяю только у себя на компе, а те, кто скачает мою карту, уних этого не будет, я прав?
Ред. scopterectus
» WarCraft 3 / Вторая кнопка "Построить"
» WarCraft 3 / Вторая кнопка "Построить"
» WarCraft 3 / Запуск перезарядки
» WarCraft 3 / Запуск перезарядки
» WarCraft 3 / Запуск перезарядки
Или как можно сделать активную способность, которую юнит сам будет кастовать. Я хотел сделать Tower Defense, и чтобы товера сами использовали свои способности.