#Not Important
All hail the wishmaker
- 910
- Posts
- 5
- Years
- He/Him
- Hoenn
- Seen Jul 22, 2023
Hi Everyone,
Do any of you know how to end a script from inside the script?
loop do
command=Kernel.pbShowCommands(nil,[
_INTL("No"),
_INTL("Yes")
],command)
case command
when 0
Kernel.pbMessage("Left it alone...")
#[{ADD THE EXIT CODE HERE}]
when 1
break
end
end
And how to give a default option when "X" is clicked?
Would Just removing the loop work so it doesn't go back to the question?
But pls help on this one
Pls help...
Do any of you know how to end a script from inside the script?
Spoiler:
loop do
command=Kernel.pbShowCommands(nil,[
_INTL("No"),
_INTL("Yes")
],command)
case command
when 0
Kernel.pbMessage("Left it alone...")
#[{ADD THE EXIT CODE HERE}]
when 1
break
end
end
And how to give a default option when "X" is clicked?
Spoiler:
Code:
loop do
command=Kernel.pbShowCommands(nil,[
_INTL("No"),
_INTL("Yes")
],command)
case command
when 0
Kernel.pbMessage("Left it alone...")
when 1
break
end
end
But pls help on this one
Code:
command=Kernel.pbShowCommands(nil,[
_INTL("No"),
_INTL("Yes")
],command)
case command
when 0
Kernel.pbMessage("Left it alone...")
when 1
break
end
Pls help...