View Full Version : starting wander inside another script
ROTOR
09-23-2014, 05:25 AM
Hi all,
Can anyone tell me how to get wander to work properly when started inside another script? I can get it to start fine and recognize one target, but if I try two or more targets it still only stops for the first one listed.
Any help is appreciated!
Thanks.
DaCapn
09-23-2014, 12:59 PM
What is the syntax which isn't working?
start_script "wander",["things","stuff","guys","herps","derps"]
ROTOR
09-25-2014, 04:21 AM
the script has something similar but uses a set up window to define which creatures to wander for.
The line in the script looks like this:
start_script "wander", [critter_targets]
with the user being able to choose critter_targets.
The set-up includes this line:
valid_critter_targets = UserVars.rogue["valid_critter_targets"]
and in the entry box:
add_label_entry($AAA_TABLE5, "Critter targets:", 'critter_targets')
I entered two critters in the setup as such: troll burgee
but the script only stops for trolls.
m444w
09-25-2014, 03:48 PM
try
start_script "wander", creature_targets.split
ROTOR
09-26-2014, 11:42 AM
try
start_script "wander", creature_targets.split
Excellent. That seems to be working now. Thanks!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.