Posts from Scripts
Hello everyone, can you tell me how to make a script so that in PlayObjectAnimation, a creature plays an animation, then waits, and repeats the animation after 3 seconds?
Added 4 hours 14 minutes ago
Please help me find the error in my code:function message()
MessageBox("Maps/SingleMissions/greet/sms1.txt")
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "nil");
The problem is that the trigger works, meaning when my hero enters, he stops, but the message doesn't appear.
1. To get exactly 3 seconds, you need to calculate what number to put in sleep(). The formula: 1 segment = 1/20 seconds. Experiment, start by putting 5 in the parentheses. Maybe 5 segments will be enough).
2. Replace Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "nil"); with Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg0", "message");
Checking the console during the game is very helpful for identifying errors.
sleep(15)
PlayObjectAnimation(...)
sleep(5)
And I still haven't received the message from Azgalor.
Statistics
Users Online 9 users 1325 guests
Today's Visitors 32
- ALVYDAS
- Arandor
- AstralLein
- burymm
- Dark Jack
- dotahcxun
- elizbar1967
- fktifzobr@mail.ru
- Golvek
- Happy Life
- Heroist
- Hottler
- HwKeeper
- IchGViji
- kcfgogbfalgfl
- LifeForm
- Narron
- OrnsteinDragonslayer
- PingWing
- Ple-Sen
- Sir Syddan
- Siverfale
- Valery59
- Валера 111
- Граф Орлов
- Джек
- Драккошка
- Дугал
- Злобный Ящур
- Небо
- Нэйко
- Саргон