Yumago Posted March 11, 2010 Share Posted March 11, 2010 Hey there, Yesterday I installed both the CS and OBSE. I have no idea how to compile scripts using OBSE functions without having the CS compiler complain. An abbreviated example would be switching enchantments on an item: ScriptName AAAWidowBoundScript ref UserRef Begin OnUnequip MessageBox "The amulet loses its beautiful luster and your body goes limb for a split second as you feel its presence fade away. Whatever was inside the adornment has left your body now. You feel powerless and weak in comparison" this.SetEnchantment AAAWidowTiaraNormalENCH End Begin OnAdd set UserRef to GetContainer End Begin OnEquip MessageBox "The amulet is a silvery-brass color. It looks old and worn and is cold to the touch. As you tighten it around your scalp a blinding flash of light almost knocks you off your feet. Suddenly, a thin mist envelops you as the amulet opens its magicks to you." this.SetEnchantment AAAWidowTiaraENCH End When I try to compile, it tells me:-'SetEnchantment' is an unknown variable/function-it could not parse "this.SetEnchantment AAAWidowTiaraNormalENCH" (syntax error)-mismatched begin/end block starting at 'Begin OnUnequip' So my question is if this is all syntactically correct (which I hope ^^"), what's going on and how can I get this script to compile after all? Thanks in advance :3 Link to comment Share on other sites More sharing options...
LFact Posted March 11, 2010 Share Posted March 11, 2010 Are you sure you're running CS with OBSE loader?obse_loader.exe -editor Link to comment Share on other sites More sharing options...
Yumago Posted March 11, 2010 Author Share Posted March 11, 2010 Ah, thank you very much! :3 Back to scripting. :) Link to comment Share on other sites More sharing options...
Darkangel13 Posted July 5, 2019 Share Posted July 5, 2019 Are you sure you're running CS with OBSE loader? obse_loader.exe -editorOMG I need some sleep. Thx man lol Link to comment Share on other sites More sharing options...
Recommended Posts