Script help, No idea on scripting

Posted by Robert Powell on Sat 22 Oct 2005 06:55 AM — 2 posts, 12,211 views.

Australia #0
Hi all, i have the need to change the alignment of a lot of mobs in my game, so i thought a script would do this nicely for me, but i have no idea how to begin with using external script, nor the syntax for vb or any other scriptiing language.

So what i need to do is the following, the values can be hard coded for simplicity.

Have a start vnum
Have a finnish vnum,
mset currentvnum flags prototype
mset currentvnum align <hardcoded value>
mset currentvnum flags prototype
currentvnum ++
if currentvnum == finnishvnum
end

if anyone could point me in the right direction on this would be greatly apreciated.

Robert Powell.
Australia Forum Administrator #1
Well that is really easy. You could do that in the Intermediate scripting window.


for i = 100 to 200 
  Send "mset " & i & " flags prototype"
  Send "mset " & i & " align 400"
  Send "mset " & i & " flags prototype"
next



Change the 100 and 200 to be the vnum range you want. You might want to make the words "Send" to be "Note" initially to check you are doing it correctly.

Backup your file(s) before you start.