PDA

View Full Version : Odd problem scripting with notepad



Elanthil01
03-24-2011, 08:36 AM
Got a script that is an exact duplicate of a working one.
Only changes were:
-removing a line that grabs an arrow
-changing the fire command to kill

The script repeats over and over with:
[exec1]>kill
showing at the prompt

here is the script:



def kill1
fput "stance offen" if percentstance >= 0
while GameObj.right_hand.noun == 'maul'
fput "kill"
waitrt?
end
fput "stance def" until percentstance >= 80
end;

Tillmen
03-24-2011, 01:48 PM
That's what the script tells it to do. It will go to offensive stance if you're not already in offensive stance, then it will fput "kill" while you have a maul in your hand. If the maul somehow stops being in your hand, it will exit the loop and go into defensive stance.

Alorn15
03-24-2011, 03:17 PM
It's probably something to do with notepad.