/spell/rune_write name = "Scribe a Rune" desc = "Let's you instantly manifest a working rune." school = "evocation" charge_max = 100 charge_type = Sp_RECHARGE invocation_type = SpI_NONE spell_flags = CONSTRUCT_CHECK hud_state = "const_rune" smoke_amt = 1 /spell/rune_write/choose_targets(mob/user = usr) return list(user) /spell/rune_write/cast(null, mob/user = usr) if(!cultwords["travel"]) runerandom() var/list/runes = list("Teleport", "Teleport Other", "Spawn a Tome", "Change Construct Type", "Convert", "EMP", "Drain Blood", "See Invisible", "Resurrect", "Hide Runes", "Reveal Runes", "Astral Journey", "Manifest a Ghost", "Imbue Talisman", "Sacrifice", "Wall", "Free Cultist", "Summon Cultist", "Deafen", "Blind", "BloodBoil", "Communicate", "Stun") var/r = input(user, "Choose a rune to scribe", "Rune Scribing") in runes //not cancellable. var/obj/effect/rune/R = new /obj/effect/rune(user.loc) if(istype(user.loc,/turf)) var/area/A = get_area(user) log_and_message_admins("created \an [r] rune at \the [A.name] - [user.loc.x]-[user.loc.y]-[user.loc.z].", user) switch(r) if("Teleport") if(cast_check(1)) var/beacon if(user) beacon = input(user, "Select the last rune", "Rune Scribing") in rnwords R.word1=cultwords["travel"] R.word2=cultwords["self"] R.word3=beacon R.check_icon() if("Teleport Other") if(cast_check(1)) var/beacon if(user) beacon = input(user, "Select the last rune", "Rune Scribing") in rnwords R.word1=cultwords["travel"] R.word2=cultwords["other"] R.word3=beacon R.check_icon() if("Spawn a Tome") if(cast_check(1)) R.word1=cultwords["see"] R.word2=cultwords["blood"] R.word3=cultwords["hell"] R.check_icon() if("Change Construct Type") if(cast_check(1)) R.word1=cultwords["hell"] R.word2=cultwords["destroy"] R.word3=cultwords["other"] R.check_icon() if("Convert") if(cast_check(1)) R.word1=cultwords["join"] R.word2=cultwords["blood"] R.word3=cultwords["self"] R.check_icon() if("EMP") if(cast_check(1)) R.word1=cultwords["destroy"] R.word2=cultwords["see"] R.word3=cultwords["technology"] R.check_icon() if("Drain Blood") if(cast_check(1)) R.word1=cultwords["travel"] R.word2=cultwords["blood"] R.word3=cultwords["self"] R.check_icon() if("See Invisible") if(cast_check(1)) R.word1=cultwords["see"] R.word2=cultwords["hell"] R.word3=cultwords["join"] R.check_icon() if("Resurrect") if(cast_check(1)) R.word1=cultwords["blood"] R.word2=cultwords["join"] R.word3=cultwords["hell"] R.check_icon() if("Hide Runes") if(cast_check(1)) R.word1=cultwords["hide"] R.word2=cultwords["see"] R.word3=cultwords["blood"] R.check_icon() if("Astral Journey") if(cast_check(1)) R.word1=cultwords["hell"] R.word2=cultwords["travel"] R.word3=cultwords["self"] R.check_icon() if("Manifest a Ghost") if(cast_check(1)) R.word1=cultwords["blood"] R.word2=cultwords["see"] R.word3=cultwords["travel"] R.check_icon() if("Imbue Talisman") if(cast_check(1)) R.word1=cultwords["hell"] R.word2=cultwords["technology"] R.word3=cultwords["join"] R.check_icon() if("Sacrifice") if(cast_check(1)) R.word1=cultwords["hell"] R.word2=cultwords["blood"] R.word3=cultwords["join"] R.check_icon() if("Reveal Runes") if(cast_check(1)) R.word1=cultwords["blood"] R.word2=cultwords["see"] R.word3=cultwords["hide"] R.check_icon() if("Wall") if(cast_check(1)) R.word1=cultwords["destroy"] R.word2=cultwords["travel"] R.word3=cultwords["self"] R.check_icon() if("Freedom") if(cast_check(1)) R.word1=cultwords["travel"] R.word2=cultwords["technology"] R.word3=cultwords["other"] R.check_icon() if("Cultsummon") if(cast_check(1)) R.word1=cultwords["join"] R.word2=cultwords["other"] R.word3=cultwords["self"] R.check_icon() if("Deafen") if(cast_check(1)) R.word1=cultwords["hide"] R.word2=cultwords["other"] R.word3=cultwords["see"] R.check_icon() if("Blind") if(cast_check(1)) R.word1=cultwords["destroy"] R.word2=cultwords["see"] R.word3=cultwords["other"] R.check_icon() if("BloodBoil") if(cast_check(1)) R.word1=cultwords["destroy"] R.word2=cultwords["see"] R.word3=cultwords["blood"] R.check_icon() if("Communicate") if(cast_check(1)) R.word1=cultwords["self"] R.word2=cultwords["other"] R.word3=cultwords["technology"] R.check_icon() if("Stun") if(cast_check(1)) R.word1=cultwords["join"] R.word2=cultwords["hide"] R.word3=cultwords["technology"] R.check_icon() else user << " You do not have enough space to write a proper rune." return