Solved Apply potion effect.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
May 12, 2021
27
1
3
24
Code:
apply potion of night vision of tier 1 to player for 100000000 seconds

Doesn't work.

Addons:
skRayFall
TuSKe
skQuery
 
the time can't be that long I believe, just use 99 years and you will be fine
I made it 10 seconds and it still didn't work.
[doublepost=1628447184,1628447127][/doublepost]
upload_2021-8-8_11-25-45.png


upload_2021-8-8_11-25-58.png



I have also noticed that speed shows up as yellow and night vision as grey.
 
Code:
command /test <player>:
    trigger:
        execute console command "/effect give %arg 1% speed <time> <power>"

use the 3rd line for ur skript

also u can use

Code:
apply potion of Swiftness to player for 10000000 seconds

The first code is tested, the other one isnt
 
Last edited:
Code:
command /test <player>:
    trigger:
        execute console command "/effect give %arg 1% speed <time> <power>"

use the 3rd line for ur skript

also u can use

Code:
apply potion of Swiftness to player for 10000000 seconds

The first code is tested, the other one isnt


For the first one would it be possible to make it not a command? or would %player% be able to replace %arg 1%

For the second one my issue is I need night vision but it doesn't seem to recognize "night vision" when I write it in 2 words.
[doublepost=1628449731,1628449613][/doublepost]Ok I figured it out

Code:
execute console command "/effect give %player% night_vision 1000000 1"

Thanks for all the help!
 
  • Like
Reactions: cobalt_ink
%player% is for the player doing the event, if u want to do it in command u can use %arg%
 
Status
Not open for further replies.