Scripts

expelledMG

Morrowind.esm
Variables 2
Local Variables
myDay
temp
Source
1Begin expelledMG 2 3;this is just a model 4;it is supposed to be on an item in each of the Mages Guilds. 5 6short myDay 7short temp 8 9if ( PCExpelled "Mages Guild" == 0 ) 10 return 11endif 12 13if ( ExpMagesGuild == 0 ) 14 Set ExpMagesGuild to 1 15endif 16 17if ( myDay == 0 ) 18 Set myDay to Day 19endif 20 21if ( myDay == Day ) 22 return 23endif 24 25if ( Day > myDay ) 26 Set temp to ( Day - myDay ) 27else 28 Set temp to ( myDay - Day ) 29endif 30 31Set myDay to Day 32 33Set temp to ( temp + 2 ) 34 35Set ExpMagesGuild to ( ExpMagesGuild + temp ) 36 37if ( ExpMagesGuild > 30 ) 38 Set ExpMagesGuild to 0 39 PCClearExpelled "Mages Guild" 40 return 41endif 42 43End