Callirgos Posted September 2, 2013 Share Posted September 2, 2013 Hi. I've got this test script below, and I'm not sure why the item is only being used once. Is it the case that items may only be used once? This item is a wand, and this test script should use it once every 7 seconds. Any thoughts? IF !TimerActive(5) HasItem("KCWebSP1",Myself) // No such index !CreatureHidden(Myself) See(NearestEnemyOf(Myself),0) Range(LastSeenBy(Myself),20,LESS_THAN) THEN RESPONSE #1000 StartTimer(5,7) UseItem("KCWebSP1",LastMarkedObject) // No such index WaitAnimation(Myself,WALK) WaitAnimation(Myself,CONJURE) WaitAnimation(Myself,CAST) Continue() END Link to comment
Callirgos Posted September 2, 2013 Author Share Posted September 2, 2013 I've done some extensive testing on this and it looks like UseItem will only fire once. Can someone confirm or deny this? Link to comment
lynx Posted September 2, 2013 Share Posted September 2, 2013 Just an uninformed guess, but do the animations fire anyway? I don't know in what all circumstances LastMarkedObject gets (re)set. Link to comment
Callirgos Posted September 2, 2013 Author Share Posted September 2, 2013 It is totally unresponsive. Next question is about GREATER_THAN and LESS_THAN. Does 6, GREATER_THAN mean 7+ or 6+? SAY I Wanted to cover a different behavior at 6.... let's just call it 6 "proximity". Which of the following would be appropriate? Range(NearestEnemyOf(Myself),7,GREATER_THAN) Range(LastSeenBy(Myself),6,LESS_THAN) OR Range(NearestEnemyOf(Myself),6,GREATER_THAN) Range(LastSeenBy(Myself),7,LESS_THAN) Link to comment
Avenger Posted September 2, 2013 Share Posted September 2, 2013 6 greater than means seven or greater (i think). Translated to code it is 'range > 6' Your second 2 triggers cover the whole domain, while the first two will leave some unhandled ranges (6 and 7). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.