Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_weapon_attack

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

function scr_determine_weapon_attack() //gml_Script_scr_determine_weapon_attack { var return_value = scr_item_stats_weapon(global.player_weapon) return return_value; }
() //gml_Script_scr_determine_weapon_attack
2
{
3
    var return_value = scr_item_stats_weapon
scr_item_stats_weapon

function scr_item_stats_weapon(argument0) //gml_Script_scr_item_stats_weapon { switch argument0 { case "Toy Knife": return 3; case "Toy Gun": case "Wild Revolver": return 0; default: return 0; } }
(global.player_weapon)
4
    return return_value;
5
}