Jump to content

Scripting UseItem (IWDII)


Callirgos

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...