Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dialogue_battle_action_selected_action_2_guardener

(view raw script w/o annotations or w/e)
1
function scr_dialogue_battle_action_selected_action_2_guardener
scr_dialogue_battle_action_selected_action_2_guardener

function scr_dialogue_battle_action_selected_action_2_guardener() //gml_Script_scr_dialogue_battle_action_selected_action_2_guardener { if (global.enemy_mode == 0) { message[0] = "* You wriggle within your# confines. The ITEM vines# weakened!" global.last_action_selected = "Nothing" global.last_action_selected_2 = "Action 2 Message 0" global.last_action_selected_3 = "Nothing" } else if (global.enemy_mode == 1) { switch global.action_2_selected_count { case 0: message[0] = "* You plead with Guardener and it# seems to have an effect. Offense# level lowered!" break case 1: message[0] = "* You try to convince Guardener# to stop fighting. Offense level# lowered! " break case 2: message[0] = "* You tell Guardener that this is# a misunderstanding. Offense# level lowered! " break case 3: message[0] = "* You ask Guardener to think# about what she's doing. Offense# level lowered!" break case 4: message[0] = "* You use rational in hopes of# de-escalating the situation.# Offense level lowered!" break } global.last_action_selected = "Nothing" global.last_action_selected_2 = "Action 2 Message 1" global.last_action_selected_3 = "Nothing" } }
() //gml_Script_scr_dialogue_battle_action_selected_action_2_guardener
2
{
3
    if (global.enemy_mode == 0)
4
    {
5
        message[0] = "* You wriggle within your#  confines. The ITEM vines#  weakened!"
6
        global.last_action_selected = "Nothing"
7
        global.last_action_selected_2 = "Action 2 Message 0"
8
        global.last_action_selected_3 = "Nothing"
9
    }
10
    else if (global.enemy_mode == 1)
11
    {
12
        switch global.action_2_selected_count
13
        {
14
            case 0:
15
                message[0] = "* You plead with Guardener and it#  seems to have an effect. Offense#  level lowered!"
16
                break
17
            case 1:
18
                message[0] = "* You try to convince Guardener#  to stop fighting. Offense level#  lowered!	"
19
                break
20
            case 2:
21
                message[0] = "* You tell Guardener that this is#  a misunderstanding. Offense#  level lowered!	"
22
                break
23
            case 3:
24
                message[0] = "* You ask Guardener to think#  about what she's doing. Offense#  level lowered!"
25
                break
26
            case 4:
27
                message[0] = "* You use rational in hopes of#  de-escalating the situation.#  Offense level lowered!"
28
                break
29
        }
30
31
        global.last_action_selected = "Nothing"
32
        global.last_action_selected_2 = "Action 2 Message 1"
33
        global.last_action_selected_3 = "Nothing"
34
    }
35
}