Skip to content

One-to-many and conditional execution of random commands #48

@XiaooHu2002

Description

@XiaooHu2002

I would like to make a suggestion, I don't know if I have not understood the wiki.
The advice is: for example, I have three landmarks (city, work, home).
I want to make the script block to implement three locations randomly teleport (for example: /warp city), but I can't seem to find the method on the wiki. I saw on the wiki that the method does have the ability to input multiple instructions in a single /sdb command. But it can't make each landmark have probability and randomly teleport. My understanding is that one-to-one teleport, and it can't implement one-to-many conditional teleport.
My idea is that a script box has the following three instructions
/warp city (probability: 30%) , /warp work (probability: 20%) (temporary permissions: work) ,/warp home (probability: 50%)
And can be according to whether there is temporary permission to send, if not, can randomly send the remaining two landmarks, there is temporary permission, can send three landmarks
I don't know if the author can understand the meaning.
If this plugin can implement this method, can you please tell me the author.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions