Forum › Forums › Discussion › [Beta] Scenario Scripting Engine
This topic contains 123 replies, has 52 voices, and was last updated by Miqobot 3 years, 6 months ago.
-
AuthorPosts
-
June 2, 2017 at 2:32 pm #3193
EDIT: Scenario Engine is available in full release.
————————————
We happily present you Miqobot v1.2.6 Beta ๐
This release introduces a brand new layer of Miqobot – scripting engine to connect and streamline activities in almost any way you can imagine.What Is Scenario
You can think of scenario as an adventure, a movie script written by you, starring your character.
Miqobot is the director and you are the creator.
You describe what you want to see, and Miqobot follows your instructions to recreate the finished movie directly on your screen.Scenario consists of chapters.
A chapter is a sequence of logically connected actions made to achieve a certain goal.
For example, when you want to fish, you teleport to a desired location, navigate to a fishing spot, equip a bait, choose what skills to use, decide how long to do it, and then finally start fishing. Until today Miqobot could only do the last step. From now on she is capable to do all of them. You only have to tell her what exactly to do.Chapter consists of script lines.
Each script line describes a single action – teleport, navigate, select bait. In technical language we call them functions.Function consists of function name and arguments.
- Name describes the action itself: teleport.
- Arguments describe details: teleport(where).
So if you want to teleport to Zenith, you would write:
teleport(Zenith)
And that’s it.
By combining multiple actions together you create a detailed script of what you want Miqobot to do with your character. She will follow your script step by step and will try her best to recreate your adventure.Functions
This is the list of currently implemented functions.
Full documentation is available directly in Miqobot. Press?
button to open it.Please note that many functions have aliases.
Aliases are designed to make script easier to write, read, and manage. We highly recommend using aliases whenever possible.- startFishing() – Commence fishing.
- startGathering() – Commence gathering.
- startCrafting() – Commence crafting.
- startDesynthesis() – Commence desynthesis.
- startRacing() – Commence chocobo racing.
- startMinigames() – Commence minigames activity.
- startSquadronDungeons() โ Commence squadron dungeons activity.
- startAetherialReduction() – Commence aetherial reduction.
- startMateriaExtraction() – Extract materia from equipped gear.
- deliverCollectables() – Deliver collectables to the closest NPC.
- deliverGCGear() โ Make expert delivery to the closest NPC.
- diademBoom() โ Release a blast of Aetheromatic Auger.
- diademBoomTarget() – Add target for Aetheromatic Auger.
- selectFishPreset() – Select preset for fishing.
- selectGatherPreset() – Select preset for gathering.
- selectGatherRotation() – Select rotation for gathering.
- selectCraftMacro() – Select macro for crafting.
- selectSolverPreset() – Select preset for crafting solver.
- selectDesynthesisList() – Select preset for desynthesis.
- selectGrid() – Select grid for navigation.
- selectRaceWaypoints() – Select waypoints for chocobo racing.
- sendKey() – Send key into the game.
- sendIcon() – Press hotbar icon.
- holdKey() – Hold key in the game.
- afkFor() – Do nothing for amount of time.
- afkUntil() – Do nothing until specified time.
- workFor() – Stop next activity after amount of time.
- workUntil() – Stop next activity at specified time.
- randomAfkFor() – Do nothing for random number of seconds.
- addGoodWeather() – Add specified weather to whitelist.
- skipBadWeather() – Check whitelist for current weather.
- resetGoodWeather() – Clear weather whitelist.
- goToXYZ() – Navigate to specified coordinates.
- goToWaypoint() – Navigate to waypoint on the grid.
- goToWaypointPrecise() – Navigate to precise coordinates of the specified waypoint.
- goToRandomWaypoint() – Navigate to random waypoint from the list.
- goToRandomNearby() – Navigate to random coordinates in the vicinity of waypoint.
- goToZoneGate() – Navigate to another zone and wait until it loads.
- turnToAngle() – Turn camera to specified horizontal angle.
- turnToVAngle() – Turn camera to specified vertical angle.
- mount() – Summon a mount.
- dismount() – Dismiss a mount.
- fly() – Rise in the air.
- land() – Land on the ground.
- sneak() – Activate sneak.
- unsneak() – Deactivate sneak.
- sit() – Sit down.
- standUp() – Stand up.
- repair() – Mend equipment with dark matter.
- repairNpc() โ Mend equipment at the closest NPC.
- return() – Return to your home point.
- teleport() – Teleport to previously attuned aetheryte.
- teleportIfNotThere() – Teleport to previously attuned aetheryte.
- teleportNpc() – Teleport using NPC or aethernet.
- changeJob() – Equip gear set of specified class or job.
- changeBait() – Equip new bait for fishing.
- changeGig() – Equip new gig for spearfishing.
- findFish() – Find fishing spot in given direction.
- setFishNoIntuitionBait() – Bait to equip when no Fisher’s Intuition.
- setFishNoIntuitionPreset() – Preset to select when no Fisher’s Intuition.
- setFishIntuitionBait() – Bait to equip when Fisher’s Intuition is active.
- setFishIntuitionPreset() – Preset to select when Fisher’s Intuition is active.
- addFishMoochPreset() – Preset to select when moochable fish is hooked.
- addFishMoochBlacklist() – Prevent mooching specified fish.
- holdFishMoochUntil() – Hold a moochable fish until specified time.
- setFishPatienceGP() – Set the required GP amount for Patience to activate.
- setFishWeatherBait() – Assign bait to switch during specified weather.
- setFishWeatherPreset() – Assign preset to select during specified weather.
- setFishDoubleHookTug() – Limit double hook usage to specific tugs.
- gatherTouch() – Open and close gathering node.
- setGatherSlot() โ Set slot number for gathering.
- addGatherRotationIfGP() – Add gathering rotation to GP-based selector.
- setCraftRecipe() – Craft next recipe by name.
- setCraftNQHQRatio() – Define preferred NQ:HQ ratio for next recipe.
- setCraftIgnoreQuality() – Define “ignore quality” setting.
- setAutoSneak() – Define “auto-sneak” setting.
- setAutoSprint() – Define “auto-sprint” setting.
- setRaceClass() – Set class for chocobo racing.
- setRaceCourse() – Set course for chocobo racing.
- setRaceAbility() – When to use abilities in chocobo racing.
- setRaceAccelerate() – Set accelerate condition in chocobo racing.
- setRaceDecelerate() – Set decelerate condition in chocobo racing.
- setMinigameDifficulty() – Set difficulty for MGP minigames.
- setMinigameEachCount() – How many times to play each MGP minigame before switching.
- setMinigameDoubleUntil() – Set condition for Double Down choice in MGP minigames.
- setMinigamePlayFor() – How many minutes to play MGP minigames.
- setMinigameAfkFor() – How many minutes to afk at MGP minigames.
- setSquadronDungeon() โ Select a dungeon preset for squadron dungeons.
- setSquadronFullClear() โ Set โfull clearโ setting for squadron dungeons.
- setSquadronOpenCoffers() โ Set โopen coffersโ setting for squadron dungeons.
- koCheckpoint() – Set the current chapter and line as KO checkpoint.
- koSetCatchUp() – Mark the current chapter as catch-up chapter.
- koResetCatchUp() – Forget the previously marked catch-up chapter.
- repeatChapter() – How many times to repeat current chapter.
- repeatChapterFor() – Repeat current chapter for amount of time.
- repeatChapterUntil() – Repeat current chapter until specified time.
- repeatAll() – How many times to repeat scenario.
In addition, a script may contain comments.
Type // to write a comment. Anything after // is considered common text and is not interpreted by Miqobot.An important note!
The previous version of Miqobot is not aware of scenarios. If you launch Miqobot v1.2.54 from the same folder, your scenarios and new presets will be lost.Of course, you can always restore them from automatic backups.
Planned Functions
This is only the beginning.
There will be many more actions available in the future. We will be making new functions for you to experiment with.- Vendor NPC interactions.
- Equipping recommended gear.
- Retrieving items from retainer.
- Assigning retainer ventures.
- Converting spiritbonded gear.
- Accepting and initiating levequests.
- Training chocobos in stables.
- Custom popups.
- Switching chapters and scenarios.
- Fish whitelist to customize Release feature.
- GP-based and hidden-based rotations selection.
- Smart cordials usage.
- Smart food and manuals usage.
There are already lots of accepted feature requests that will be implemented as addional modules for Scenario Engine.
But first, please try creating scenarios with the current toolkit.
And please give us your feedback!June 2, 2017 at 2:33 pm #3194June 2, 2017 at 2:33 pm #3195Additional Features
Scenario Engine is the main theme of this release.
But it is worth noting there are some minor adjustments and improvements to existing features as well.To avoid distracting your attention too much, we’ll just name a few.
- General: Gathering presets are implemented. Now you can select grid and gathering rotation in a single click.
- General: Crafting Solver presets are implemented. Two presets are created by default: ‘recommended’ and ‘fastest’.
- General: Scenarios are added to Import / Export.
- General: Feast Hellhound mounts are supported.
- General: Mount roulettes are supported.
- Gathering: Error recognition is implemented. If you run out of inventory space during gathering, Miqobot will automatically stop.
- Gathering: Aetherial reduction is implemented. It’s a scenario function startAetherialReduction().
- Crafting: Automatic selection of NQ/HQ materials is implemented.
- Crafting: ‘Max’ count is implemented. When specified, Miqobot will craft as many items as possible.
- MGP Minigames: Navigation is improved. Miqobot will no longer run through center of the room, but instead use an integrated grid.
(If it’s still not enough for you, you can create custom randomized routes with Scenario Engine.)
June 2, 2017 at 2:34 pm #3196June 2, 2017 at 2:50 pm #3197June 2, 2017 at 3:43 pm #3198June 2, 2017 at 3:54 pm #3199As a fellow programmer, this is awesome! Will definitely be writing up some custom scenarios. Great work!
- This reply was modified 7 years, 6 months ago by IceDeathTK.
June 2, 2017 at 4:02 pm #3201June 2, 2017 at 4:04 pm #3202Looks interesting! Can we teleport to set coordinates?
It would be also cool to setup a keybind to quickly teleport to anywhere on the map?
- This reply was modified 7 years, 6 months ago by seeshiv.
June 2, 2017 at 4:06 pm #3203Fantastic, thank you so much! A question, though, since I donโt see it on the list (or I missed it); can we also set it up to buy from NPCs? (for desynthing grinds)
Not at the moment, this is one of the next functions in our todo list ๐
We apologize for inconvenience.June 2, 2017 at 4:06 pm #3204Looks interesting! Can we teleport to set coordinates?
No, only to attuned aetherytes. Teleporting to coordinates is a hack and we will never implement hacks ๐
You can however navigate to any specific coordinates.June 2, 2017 at 4:08 pm #3206Looks interesting! Can we teleport to set coordinates?
No, only to attuned aetherytes. Teleporting to coordinates is a hack and we will never implement hacks
You can however navigate to any specific coordinates.right! okay, makes sense. Thank you for the quick reply.
June 2, 2017 at 5:41 pm #3208Fantastic, thank you so much! A question, though, since I donโt see it on the list (or I missed it); can we also set it up to buy from NPCs? (for desynthing grinds)
Not at the moment, this is one of the next functions in our todo list
We apologize for inconvenience.You are actually able to buy from NPCs using key commands for example
key(num12) //select the closest NPC
key(num0) //activate the npc
key(num2) //scroll down through npc until you find the item repeat as needed
key(num0) //buy the item
key(esc) //close out of menus
desynthThe idea is that you can treat it as you would if you use a controller. Because vendor items don’t change order this should be safe to use over and over again.
Happy times. This gives us sooo much power now to come up with custom scenarios.
- This reply was modified 7 years, 6 months ago by ExarchCoercer.
- This reply was modified 7 years, 6 months ago by ExarchCoercer.
June 2, 2017 at 6:38 pm #3211Yes, you are right.
This is the idea behind sendKey() and sendIcon() functions. The only flaw is that you can’t move mouse too much, or some keys will miss. And that’s why we are planning to implement more robust functions which will constantly receive feedback from the game and verify every step.But of course, you have the absolute right to use your imagination to create new ways and new activities. And we will be supporting your ideas by enhancing and polishing tools at your disposal ๐
Thank you for your feedback very much!
June 2, 2017 at 6:43 pm #3212Thank you Miqobot! Very excited!
@exarchcoercer That’s awesome thanks!
Here is a breakdown of a scenario that I’m working on… As this is the Gold Saucer event, it seems timely!
Go into Gold Saucer…
Teleport to minion square,
Move over by the mini games (I always start at a specific machine, I’m a miqo of habit!)
Use an item “Gold Saucer VIP Card” (Do this with a hot bar button press)
Start playing the games!
Now wait till 44 minutes after the hour real time (I see a few options to do this… not sure which one works best yet)
Navigate to the tele crystal in minion square
Teleport to event square,
navigate to GATE NPC, and talk to themNow here is where things get tricky….
If it is “Typhoon”… I want to join the gate! ExarchCoercer’s method works for selecting options, and I can use the navigation to get to the spot I want and wait for the gate to end…How do I get MiqoBot to detect if its going to be the Typhoon GATE? I want to just go back to minigames if it turns out to be one of the other gates. (I suck at that dancing one)
Anyone have any thoughts?
-
AuthorPosts
The topic ‘[Beta] Scenario Scripting Engine’ is closed to new replies.