View Single Post
Old 06-04-2003, 01:52 PM   #9
andrewas
Harper
 

Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
Bloody hell, but thats one inefficient scripting language. One thing that springs to mind should this project ever get going again, if you can nest if statements you can do something like

code:
if (nearest enemy is a valid target)
then
if (have spell) cast spell else
if (have scroll) cast spell
end
[/QUOTE]which cuts the melfs acid arrow script in half, give or take.

Shame there isnt a function to take the nth nearest enemy, that would really cut down on the lines needed.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" />
andrewas is offline   Reply With Quote