Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $var[user;$authorID]
- $var[ability;$getVar[data.ability]]
- $jsonParse[
- {
- "element":$getVar[element;$var[user]],
- "profile":$getVar[profile;$var[user]],
- "fight":$getVar[fight;$authorID],
- "hp":$getVar[hp;$authorID],
- "ability":$var[ability],
- "game":$getVar[profile],
- "floor":$getVar[floor;$authorID],
- "stats":$getVar[stats;$authorID],
- "floordata":$getVar[data.floor]
- }
- ]
- $if[$json[hp;min]>0]
- $if[$json[profile;version]==$json[game;version]]
- $jsonSet[fight;cd;15]
- $cooldown[4s;]
- $try
- $if[$json[profile;element;name]!=none]
- $if[$json[ability;$json[profile;element;name]]!=]
- $var[element;$json[profile;element;name]]
- $else
- $var[element;none]
- $endif
- $var[floor;$json[floordata;$sub[$json[floor;current];1]]]
- $setVar[fight;$json[fight];$authorID]
- $setVar[interface;{};$authorID]
- $jsonParse[
- {
- "element":$getVar[element;$var[user]],
- "profile":$getVar[profile;$var[user]],
- "fight":$getVar[fight;$authorID],
- "hp":$getVar[hp;$authorID],
- "skill1":$json[ability;$var[element];1],
- "skill2":$json[ability;$var[element];2],
- "skill3":$json[ability;$var[element];3],
- "devskill1":$json[ability;dev;1],
- "mobs":$getVar[data.mobs],
- "floor":$var[floor],
- "level":$getVar[level;$authorID],
- "stats":$getVar[stats;$authorID],
- "assets":$getVar[assets],
- "interface":$getVar[interface;$authorID],
- "story":$getVar[story;$authorID]
- }
- ]
- $if[$json[fight;name]!=]
- $ephemeral
- $author[$username]
- $authorIcon[$authorAvatar]
- $description[You are currently fighting someone, this command cannot be used yet.
- > [Jump to fight\](https://discord.com/channels/$json[fight;srvr]/$json[fight;chnl]/$json[fight;id])]
- $addButton[no;fight end $authorID;End Fight;danger]
- $elseif[$json[fight;story]==true]
- $author[$username]
- $authorIcon[$authorAvatar]
- $description[You are currently in a story fight, this command cannot be used yet.
- Use the **vstory** command and continue the story or press the button to continue.]
- $addButton[no;story start $authorID "$json[story;name]";Continue Story;secondary]
- $else
- $if[$sum[$json[fight;cd];$json[fight;last]]<=$getTimestamp]
- $enableDecimals[yes]
- $var[chance;$round[$random[0;1];3]]
- $enableDecimals[no]
- $jsonSetString[fight;last;$getTimestamp]
- $if[$var[chance]>=0.01]
- $var[enemy;$json[floor;mobs;$random[0;$jsonArrayCount[floor;mobs]]]]
- $else
- $var[enemy;sans]
- $endif
- $var[avatar;$json[mobs;stats;$var[enemy];avatar]]
- $if[$json[mobs;stats;$var[enemy]]!=]
- $var[hp;$json[mobs;stats;$var[enemy];hp]]
- $var[def;$json[mobs;stats;$var[enemy];def]]
- $else
- $var[hp;$json[mobs;stats;other;hp]]
- $var[def;$json[mobs;stats;other;def]]
- $endif
- $if[$var[avatar]==]
- $var[avatar;https://cdn.discordapp.com/attachments/1101860440465752065/1122147783001002134/A3818875-1BEA-4510-9FAF-B449B9DD6485.png]
- $endif
- $if[$var[enemy]==]
- $var[enemy;error]
- $endif
- $var[name;$var[enemy]]
- $jsonSet[profile;fight;name;$var[name]]
- $if[$json[mobs;stats;$var[name];desc]!=]
- $var[desc;$json[mobs;stats;$var[name];desc]]
- $else
- $var[desc;...]
- $endif
- $if[$json[mobs;stats;$var[name]]!=]
- $var[hp;$json[mobs;stats;$var[name];hp]]
- $var[def;$json[mobs;stats;$var[name];def]]
- $else
- $var[hp;$json[mobs;stats;other;hp]]
- $var[def;$json[mobs;stats;other;def]]
- $endif
- $if[$json[mobs;stats;$var[enemy];lv]==]
- $var[lv;$random[$json[floor;lv;min];$json[floor;lv;max]]]
- $else
- $var[lv;$json[mobs;stats;$var[enemy];lv]]
- $endif
- $jsonSet[fight;lv;$var[lv]]
- $setVar[fightAvatar;$var[avatar]]
- $if[1==1]
- $reply
- $author[$username]
- $authorIcon[$authorAvatar]
- $description[## $json[assets;skull] ENCOUNTER $json[assets;skull]
- ### $toTitleCase[$var[name]] LV$var[lv]
- HP: $multi[$var[hp];$var[lv]]
- DEF: $var[def]
- - `“$var[desc]”`]
- $footer[You have 15 seconds to fight]
- $thumbnail[$var[avatar]]
- $color[#FFFFFF]
- $endif
- $if[1==2]
- $var[msg;$sendEmbedMessage[$channelID
- ;$c[content]
- ;$c[title]
- ;$c[Title URL]
- ;## $json[assets;skull] ENCOUNTER $json[assets;skull]
- ### $toTitleCase[$var[name]] LV$var[lv]
- HP: $multi[$var[hp];$var[lv]]
- DEF: $var[def]
- - `“$var[desc]”`
- ;#FFFFFF
- ;$username
- ;$authorAvatar
- ;You have 15 seconds to fight
- ;$c[ficon]
- ;$var[avatar]
- ;$c[img]
- ;$c[Add timestamp]
- ;yes]]
- $endif
- $setVar[profile;$json[profile];$authorID]
- $setVar[fight;$json[fight];$authorID]
- $addButton[no;fight hunt $authorID $getTimestamp;Fight;danger;;;$var[msg]]
- $else
- $reply
- $author[$username]
- $authorIcon[$authorAvatar]
- $description[Cooldown: <t:$sum[$json[fight;cd];$json[fight;last]]:R>]
- $endif
- $endif
- $else
- $reply
- $description[You haven't rolled yet.]
- $footer[tip: vroll to roll an element]
- $endif
- $catch
- $eval[$getVar[errorMsg]]
- $endtry
- $else
- $ephemeral
- Your data is outdated. Please use the </update:$slashID[update]> command to update.
- $endif
- $else
- $ephemeral
- You’re dead, you can’t fight. Buy a Revive Potion in </shop:$slashID[shop]> to revive yourself.
- $endif
Advertisement
Add Comment
Please, Sign In to add comment