ds_priority_change_priority(id, val, priority);
|id||The id of the priority queue to change.|
|val||The value to change the priority of.|
|priority||The new priority of the value.|
This function will take a given value and change its priority
within the referenced priority queue.
if global.Game_Time < 1000
ds_priority_change(ai_priority, scr_AI_Search, 1);
The above code checks a global variable and if it is below a certain value it will then change the priority of the script index held in the priority queue.