Hunger and Thirst bars
Two progress bars that represent your hunger and thirst stacks, gives a warning when you reach 80 stacks on either.
The bars only show up, if you are doing a challenge that has hunger and thirst.
|
|
| Quick Facts |
|---|
Two progress bars that represent your hunger and thirst stacks, gives a warning when you reach 80 stacks on either.
The bars only show up, if you are doing a challenge that has hunger and thirst.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"s": "4.1.3",
"m": "d",
"d": {
"borderBackdrop": "Solid",
"authorOptions": [],
"yOffset": -350,
"anchorPoint": "CENTER",
"borderColor": [
0,
0,
0,
1
],
"actions": {
"start": [],
"finish": [],
"init": []
},
"triggers": [
{
"trigger": {
"debuffType": "HELPFUL",
"type": "aura2",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"unit": "player",
"subeventPrefix": "SPELL",
"event": "Health",
"names": []
},
"untrigger": []
}
],
"internalVersion": 52,
"animation": {
"start": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
}
},
"desc": "Displays your hunger and thirst stacks as a progress bar.",
"subRegions": [],
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"backdropColor": [
0,
0,
0,
0.5
],
"source": "import",
"scale": 1,
"border": true,
"anchorFrameFrame": "PlayerFrame",
"regionType": "group",
"borderSize": 10,
"borderOffset": 2,
"tocversion": 30300,
"id": "Survival bars by Selirra",
"frameStrata": 1,
"anchorFrameType": "SCREEN",
"borderEdge": "Blizzard Tooltip",
"uid": "Ax87xNnD9sT",
"borderInset": 1,
"xOffset": 0,
"config": [],
"conditions": [],
"information": [],
"selfPoint": "CENTER"
},
"c": [
{
"sparkWidth": 10,
"iconSource": -1,
"authorOptions": [],
"yOffset": 6,
"anchorPoint": "CENTER",
"sparkRotation": 0,
"sparkRotationMode": "AUTO",
"icon": false,
"triggers": {
"1": {
"trigger": {
"useName": true,
"auranames": [
"Hunger"
],
"event": "Health",
"unit": "player",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"subeventPrefix": "SPELL",
"names": [],
"type": "aura2",
"debuffType": "HARMFUL"
},
"untrigger": []
},
"2": {
"trigger": {
"type": "custom",
"custom_type": "event",
"custom_hide": "custom",
"names": [],
"event": "Combat Log",
"unit": "player",
"customDuration": "function()\n local _,_,_,s = UnitDebuff(\"player\", 'Hunger', nil, \"PLAYER\")\n if not s then\n s = 0\n end\n return s,100, function() return s,100 end\nend",
"spellIds": [],
"events": "UNIT_AURA",
"custom": "function()\n return true\nend",
"check": "update",
"subeventPrefix": "",
"subeventSuffix": "",
"debuffType": "HELPFUL"
},
"untrigger": {
"custom": "function()\nend"
}
},
"activeTriggerMode": 2
},
"icon_color": [
1,
1,
1,
1
],
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
}
},
"barColor": [
0.78824,
0.47451,
0.086275,
1
],
"desaturate": false,
"sparkOffsetY": 0,
"subRegions": [
{
"type": "subbackground"
},
{
"type": "subforeground"
}
],
"height": 5,
"load": {
"size": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"talent": {
"multi": []
}
},
"sparkBlendMode": "ADD",
"useAdjustededMax": false,
"source": "import",
"backgroundColor": [
0,
0,
0,
0
],
"actions": {
"start": [],
"init": [],
"finish": []
},
"xOffset": 0,
"smoothProgress": true,
"useAdjustededMin": false,
"regionType": "aurabar",
"sparkOffsetX": 0,
"icon_side": "RIGHT",
"zoom": 0,
"config": [],
"sparkHeight": 10,
"texture": "Blizzard",
"sparkHidden": "FULL",
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
"spark": false,
"tocversion": 30300,
"id": "Hunger",
"width": 150,
"frameStrata": 1,
"anchorFrameType": "SCREEN",
"alpha": 1,
"uid": "pGd0J1p3qk0",
"inverse": true,
"sparkColor": [
0.17255,
1,
0,
1
],
"orientation": "HORIZONTAL",
"conditions": [
{
"check": {
"trigger": 2,
"variable": "value",
"op": ">=",
"value": "80"
},
"changes": [
{
"value": {
"message": "You are starving...",
"message_format_p_time_dynamic_threshold": 60,
"message_format_p_format": "timed",
"message_type": "COMBAT",
"message_format_p_time_format": 0,
"message_color": [
1,
0.40784,
0,
1
],
"message_format_p_time_precision": 1
},
"property": "chat"
},
{
"value": {
"sound_type": "Play",
"sound": "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\AirHorn.ogg",
"sound_channel": "SFX"
},
"property": "sound"
}
]
}
],
"information": [],
"selfPoint": "CENTER"
},
{
"sparkWidth": 10,
"sparkOffsetX": 0,
"authorOptions": [],
"yOffset": -2,
"anchorPoint": "CENTER",
"sparkRotation": 0,
"sparkRotationMode": "AUTO",
"icon": false,
"triggers": {
"1": {
"trigger": {
"type": "aura2",
"use_debuffClass": false,
"auranames": [
"Thirst"
],
"event": "Health",
"unit": "player",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"subeventPrefix": "SPELL",
"names": [],
"useName": true,
"debuffType": "HARMFUL"
},
"untrigger": []
},
"2": {
"trigger": {
"itemName": 0,
"useStacks": false,
"auranames": [
"Thirst"
],
"use_genericShowOn": true,
"genericShowOn": "showOnCooldown",
"unit": "player",
"powertype": 0,
"use_power": true,
"use_powertype": true,
"debuffType": "HARMFUL",
"custom_hide": "custom",
"type": "custom",
"use_health": true,
"subeventSuffix": "_CAST_START",
"custom_type": "event",
"use_itemName": true,
"event": "Cooldown Progress (Item)",
"custom": "function()\n return true\nend",
"customDuration": "function()\n local _,_,_,s = UnitDebuff(\"player\", 'Thirst', nil, \"PLAYER\")\n if not s then\n s = 0\n end\n return s,100, function() return s,100 end\nend",
"events": "UNIT_AURA",
"spellIds": [],
"names": [],
"subeventPrefix": "SPELL",
"use_percenthealth": false,
"use_unit": true,
"useName": true
},
"untrigger": {
"custom": "function()\nend"
}
},
"activeTriggerMode": 2
},
"icon_color": [
1,
1,
1,
1
],
"internalVersion": 52,
"selfPoint": "CENTER",
"barColor": [
0,
0.67451,
1,
1
],
"desaturate": false,
"sparkOffsetY": 0,
"subRegions": [
{
"type": "subbackground"
},
{
"type": "subforeground"
}
],
"height": 5,
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"sparkBlendMode": "ADD",
"useAdjustededMax": false,
"animation": {
"start": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
},
"main": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
}
},
"source": "import",
"backgroundColor": [
0,
0,
0,
0
],
"iconSource": -1,
"smoothProgress": true,
"useAdjustededMin": false,
"regionType": "aurabar",
"actions": {
"start": [],
"finish": [],
"init": []
},
"config": [],
"sparkDesaturate": false,
"uid": "qHkbLExWSm(",
"id": "Thirst",
"sparkHeight": 4,
"texture": "Blizzard",
"width": 150,
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
"spark": false,
"tocversion": 30300,
"sparkHidden": "FULL",
"frameStrata": 1,
"alpha": 1,
"anchorFrameType": "SCREEN",
"zoom": 0,
"sparkColor": [
0,
0.27451,
1,
1
],
"inverse": true,
"icon_side": "RIGHT",
"orientation": "HORIZONTAL",
"conditions": [
{
"check": {
"trigger": 2,
"op": ">=",
"value": "80",
"variable": "value"
},
"changes": [
{
"value": {
"message": "You are dying of thirst....",
"message_format_p_time_dynamic_threshold": 60,
"message_format_p_format": "timed",
"message_type": "COMBAT",
"message_format_p_time_format": 0,
"message_color": [
0,
0.77647,
1,
1
],
"message_format_p_time_precision": 1
},
"property": "chat"
},
{
"value": {
"sound_type": "Play",
"sound": "Interface\\AddOns\\WeakAuras\\Media\\Sounds\\AirHorn.ogg",
"sound_channel": "SFX"
},
"property": "sound"
}
]
}
],
"information": [],
"xOffset": 0
}
],
"v": 1421
}