PDA

View Full Version : Little help please?



ROTOR
07-09-2013, 07:06 AM
Hi all,
I don't know much at all about scripting, but am trying to alter one of the scripts I got from the repo (rogue), which has a hang-up on the sweep critters section.

Instead of changing the setting the script has now (which doesnt seem to be working, when the script gets to a critter task, I want it to ask me if I want to do the task. Then, I want it to continue based on my answer (a simple yes or no). How do I get it to do that?

Also, on the partner reps, if my partner is not in the room, I want the script to pause until my partner arrives and then continue. I tried a waitfor "xxx just arrived" but that doesn't seem to work. Any help here too please?

Thanks for helping a scripting noob.

Tgo01
07-11-2013, 01:01 PM
Sorry I just now noticed this thread. I can help get this working for you later tonight if you still need help. What exactly do you mean by the script hangs during a sweeping critter task though? How are the options for this not working?

I can help set it up to do what you want though and make it wait for your partner.

Tgo01
07-11-2013, 08:42 PM
when the script gets to a critter task, I want it to ask me if I want to do the task. Then, I want it to continue based on my answer (a simple yes or no). How do I get it to do that?

I updated the script to make this an option.

Change the line:

do_critter_sweep_tasks = "yes"

to:

do_critter_sweep_tasks = "confirm"

And the script will ask you to NOD if you intend to the task or SHAKE to have the script turn the task in and continue on.


Also, on the partner reps, if my partner is not in the room, I want the script to pause until my partner arrives and then continue.

I updated the script to do this as well. You can download the updated script from the repo.

I can't actually test the script because my rogue has mastered all of this but I'm pretty sure it should work. Let me know if it doesn't.

ROTOR
07-12-2013, 05:38 PM
Wow, awesome. Thanks! I'm on vacation so can't check it out until the end of the month but sounds perfect. I had added the 'no' to the option of doing sweep critter tasks but it gave an error message. Sorry I can't give the exact error message, but it would just exit the script.

Thanks a million for the updates!

Tgo01
07-12-2013, 06:05 PM
I had added the 'no' to the option of doing sweep critter tasks but it gave an error message. Sorry I can't give the exact error message, but it would just exit the script.

Do you happen to remember if you put 'no' in quotes? Just trying to figure out why it wouldn't work.

ROTOR
07-13-2013, 09:09 AM
Do you happen to remember if you put 'no' in quotes? Just trying to figure out why it wouldn't work.

Yes, it was in quotes.