Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API Death Tracker : Remove Marker when healed

1658958367

Edited 1658958579
Hi ^^ I'm using the Death Tracker script of Robin Kuiper in my game, I looked for the script instead of the one in the library, because I'm using custom Marker. The script work great, but I got an issue when my player heal themself, the marker doesn't get remove. How can I do it, instead of removing it by hand. I put the Script here ^^ &nbsp;* Made By Robin Kuiper &nbsp;* Minor changes by The Aaron &nbsp; &nbsp;* Github: <a href="https://github.com/RobinKuiper/Roll20APIScripts" rel="nofollow">https://github.com/RobinKuiper/Roll20APIScripts</a> &nbsp;
1658959453

Edited 1658959476
I just edit the following to include the customer icon as default.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setDefaults = (reset) =&gt; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const defaults = { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; config: { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command: 'dead', &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; death_statusmarker: 'dead', &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; half_statusmarker: 'Wounded::3536099', &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; massive_damage: true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bar: 1, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; firsttime: (reset) ? false : true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pc_unconscious_statusmarker: 'Dying::243507', &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change_player_tint: false, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change_npc_tint: false, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fx: true, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fx_type: 'splatter-blood', &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; heal_fx: false, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; heal_fx_type: 'glow-holy' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };
1658961697
David M.
Pro
API Scripter
Also, in case you're not familiar: the easiest way to find the numeric portion of the custom statusmarker (which is required for all non-default markers) is to open your token-mod help handout and scroll to the portion that displays all the statusmarkers.
thanls guy, but the issue is when the Hp fall under 0, the status marker is set, but when the player get healed, so its hp go back over 0, the status marker doesn't disapear. I try to find a way to remove that status marker when the player get healed ^^
1658965243
David M.
Pro
API Scripter
Ah, ok. Try just adding the custom marker to line 39 where it populates the array of all of the available choices. Be sure to use the name::####### &nbsp;format, and follow the comma and quote pattern that is already there. I just tried it with one of mine and it seems to work. I say seems to because I've never used this script before. markers = ['none', 'blue', 'brown', 'green', 'pink', 'purple', 'red', 'yellow', '-', 'all-for-one', 'angel-outfit', 'archery-target', 'arrowed', 'aura', 'back-pain', 'black-flag', 'bleeding-eye', 'bolt-shield', 'broken-heart', 'broken-shield', 'broken-skull', 'chained-heart', 'chemical-bolt', 'cobweb', 'dead', 'death-zone', 'drink-me', 'edge-crack', 'fishing-net', 'fist', 'fluffy-wing', 'flying-flag', 'frozen-orb', 'grab', 'grenade', 'half-haze', 'half-heart', 'interdiction', 'lightning-helix', 'ninja-mask', 'overdrive', 'padlock', 'pummeled', 'radioactive', 'rolling-tomb', 'screaming', 'sentry-gun', 'skull', 'sleepy', 'snail', 'spanner', 'stopwatch', 'strong', 'three-leaves', 'tread', 'trophy', 'white-tower'],
I've got find markers name script install, because I'm using custom marker for my game, I change the Unconscious that I had in the death traker script to this one (the name that find marker name script found me ( 3501646: Unconscious ), but it change nothing, it doesn't work.
1658969329

Edited 1658969367
David M.
Pro
API Scripter
The format should be Unconscious::3501646 It is always name::number. &nbsp;&nbsp; Note the double colons "::"
Thank you, it finally work, you are really amazing ^^ When I tried earlier this format, I didn't put the two colons, only one. I'm so happy ^^ it bugged my mind so hard not knowing what was going on XD, but with your help, I can continue to work on the game ^^ (yeah, I'm the kind of person who stop on so much minors detail and I cannot continue without solving them XD)