https://wiki.bedrock.dev/scripting/gametest-form
@topaz vector
1 messages ยท Page 1 of 1 (latest)
https://wiki.bedrock.dev/scripting/gametest-form
@topaz vector
if u want a form example, ping me
there are 2 types of form Action and Modal
action is a simple form with buttons, you can press 1 button.
modal form is more complex, you have:
sliders: number value selectors
dropdowns: string option selector
toggles: true/false selector
textfields: text input
What about MessageForm?
Honestly i never used it
Theres 3 message form to
export function messageFormExample() {
const messageForm = new MessageFormData().title('form title')
.body('message')
.button1('first button')
.button2('second button');
return messageForm;
}
I know how to use it, I was just saying he forgot
the thing thats supposed to set attackButton to the players attack level is throwing an error
@stray pebble
What is the error?
write getScore instead of getScores
it returns undefined if the participant doenst have ascore on that objective
I have a score tho
I think its not setting it when i run it
Maybe i need to define the form inside the function to
Yup
Thats the issue
Gonna run tests see if it updates
i cant found any line where you set the score for attackObj
Its set elsewhere
The score attacklvl is set in functions
In any case by defining the form in the function it works
Even adjusted it it changed idk if it will change while looking at it but i doubt ppl can get xp while in the menu so idc lol
Is there a way to make a button not close the form
nope
So i have to make that button reopen form to keep it from closing its not a game breaker at least
Yay i now have a way to see all my skill levels woohoo
idk why but it has the right score in meleeType but its running the last case so even tho both are 1 they are treated as if 3 idk how to fix it
@median wind