...
The scripts would look like belowthis:
Code Block | ||
---|---|---|
| ||
date start_date = gadget_getDateValue(argv, "Start Date"); string tanks = gadget_getSingleValue(argv, "Tanks"); string infantry = gadget_getSingleValue(argv, "Infantry"); string rockets = gadget_getMultiValues(argv, "Rockets"); runnerLog("Preparing to start a war...", 0, "init_progressBar"); runnerLog("The war will start at this date: " + start_date, 10); runnerLog("Building tanks..."); runnerLog("Built " + tanks + " tanks.", 30); runnerLog("Gathering infantry..."); runnerLog("Gathered " + infantry + " brave men.", 60); runnerLog("Fueling rockets..."); runnerLog(rockets + " ready.", 90); runnerLog("Dispatching orders...", 100); return "Good job! The world is now at war!"; |
...