Dam Scripts I cant do it

Post » Sat Feb 19, 2011 9:55 am

I dont know what to do it keeps giving me an error at line 71 but theres nothing there im supposed to change. I just dont get this [censored] [censored]. Sorry ive wasted all day on this simple project and I still cant do it.
User avatar
Ezekiel Macallister
 
Posts: 3493
Joined: Fri Jun 22, 2007 12:08 pm

Post » Fri Feb 18, 2011 10:19 pm

er. line 71 doesn't tell us much.

Paste the script and what the error actually is.
User avatar
Bonnie Clyde
 
Posts: 3409
Joined: Thu Jun 22, 2006 10:02 pm

Post » Sat Feb 19, 2011 5:41 am

It says mismatched beginning and end


ScriptName SummonSusano01

;This script can be used as a template for custom summoned creatures/NPC's

float timer
float fade
short playonce
ref SUMN

Begin ScriptEffectStart

;Set temp reference for scripting.
;Allows faster transition of script as template. Also allows for leveled summon.
set SUMN to SummonSusano01
;Reset our creature if re-summoned before time runs out on spell
SUMN.disable

;Now we move our creature to the Player
;Move the creature reference to the worldspace of the Player
SUMN.moveto Player 30 30 10
;Make our creature visible and active
SUMN.enable

set fade to 1 ;Resets the alpha fade variable to 1

End

Begin ScriptEffectUpdate

if ( timer > 30 ) ;Creature is dead and fade timer passed
;Move our creature back to it's holding cell
SUMN.kill
SUMN.moveto CreatureCage 0 0 10
;Reset our creature if dead
SUMN.resurrect
;Set our creature to an unprocessed state
SUMN.disable
endif

;Adjust timer state for early fade/disable upon death
if ( SUMN.getdead == 1 ) && ( timer < 28 )
set timer to 28
endif

if ( timer > 0.1 ) && ( playonce == 0 )
;Play effect for creature entrance
SUMN.pms effectSummonMythicDawn 1
set playonce to 1
endif


;Increment timer
set timer to timer + GetSecondsPassed


if ( timer > 28 ) && ( playonce == 1 )
;Play effect for creature exit/death
SUMN.kill
set playonce to 2
endif

if ( playonce == 2 )
;Fade creature for exit/death
set fade to fade - 0.03
SUMN.saa fade
endif


End

Begin ScriptEffectFinish

;Move our creature back to it's holding cell
SUMN.moveto CreatureCageREF 0 0 10
;Reset our creature if dead
SUMN.resurrect
;Set our creature to an unprocessed state
SUMN.disable
User avatar
Albert Wesker
 
Posts: 3499
Joined: Fri May 11, 2007 11:17 pm

Post » Sat Feb 19, 2011 10:41 am

I posted an answer in your other thread - try to stick to one per topic. it gets very confusing otherwise.
User avatar
des lynam
 
Posts: 3444
Joined: Thu Jul 19, 2007 4:07 pm


Return to IV - Oblivion