RECENT NEWS
📢 𝟑𝟎% Discount for all ads only this month ❄️

Actions & Priority Queues

Venom
power_settings_new
Seen 2 months ago
Rune Warrior (33/40)
Rune Warrior
0
0
0
33 Posts
Posts
0
Warning level
0
Likes
0
Dislikes
Joined: 2022-04-24

Definition
A sequence of behaviors an entity potentially performs, which may be processed over one or more game ticks.

Questions
1. is explicit priority needed?
2. is a queue of actions needed?

Assumptions
1. an action must be able to take priority over another
2. an action must be able to be suspended

Examples
https://i.imgur.com/TKQpzSq.gif
https://i.imgur.com/C3rNZ40.gif

Observations
Once an action is completed, and then the next action [if exists] is continued at whichever suspendable state

Discussions
Actions which lock players
Ryley [
[7:43 PM] Tyluur: > jagexs plr queue stuff has 'strong' queues which are controlled by the developer and leave the player entirely in a locked state
what's an example of an action in a strong queue
[7:43 PM] Ryley: teleporting
[7:43 PM] Ryley: force movement
[7:43 PM] Ryley: cut scenes
[7:43 PM] Ryley: etc
[7:43 PM] Ryley: stuff u cannot cancel
[7:51 PM] Ryley: @Chrischis2
A weakqueue is cancelled if the player clicks away - commonly used for Make-X. Queues are weak / strong / normal.
[7:51 PM] Ryley: looking for the one with info on the regular queue
[7:51 PM] Ryley: iirc it just waits until whatever 'blocking' thing ur doing finishes before executing
[7:51 PM] Tomm:
[7:52 PM] Ryley: i.e if u have ur bank open and u have an experience drop waiting
[7:52 PM] Ryley: once the interface closes it fires
[7:52 PM] Ryley: ya that
[7:52 PM] Ryley: strong takes total control of the player to execute
[7:52 PM] Ryley: closes interfaces, cancels actions etc
]

00
  • Like
Reactions: