bei .enable kommt immer Folgendes:
---------------------------
Script Error
---------------------------
Script 'FnDestinationEX', line 21:
Non-persistent reference 'FNDestenationEX14' cannot be used in a script.
---------------------------
OK
---------------------------
Hier einmal das Script: (bis jetz nua mit den Enable)
Code:scn FnDestinationEX short doonce begin OnTrigger Player if doonce == 0 FNDestenationEX01.enable FNDestenationEX02.enable FNDestenationEX03.enable ... set doonce to 1 endif end
scn FnDestinationEX
scn FnDestinationEX
short doonce
begin OnTrigger Player
if doonce == 0
FNDestenationEX01.enable
FNDestenationEX02.enable
FNDestenationEX03.enable
FNDestenationEX04.enable
FNDestenationEX05.enable
FNDestenationEX06.enable
FNDestenationEX07.enable
FNDestenationEX08.enable
FNDestenationEX09.enable
FNDestenationEX10.enable
FNDestenationEX11.enable
FNDestenationEX12.enable
FNDestenationEX13.enable
FNDestenationEX14.enable
FNDestenationEX15.enable
FNDestenationEX16.enable
FNDestenationEX17.enable
FNDestenationEX18.enable
FNDestenationEX19.enable
FNDestenationEX20.enable
FNDestenationEX21.enable
FNDestenationEX22.enable
FNDestenationEX23.enable
FNDestenationEX24.enable
FNDestenationEX25.enable
FNDestenationEX26.enable
FNDestenationEX27.enable
FNDestenationEX28.enable
FNDestenationEX29.enable
FNDestenationEX30.enable
FNDestenationEX31.enable
FNDestenationEX32.enable
FNDestenationEX33.enable
FNDestenationEX34.enable
FNDestenationEX35.enable
FNDestenationEX35.enable
FNDestenationEX36.enable
FNDestenationEX37.enable
FNDestenationEX38.enable
FNDestenationEX39.enable
FNDestenationEX40.enable
FNDestenationEX41.enable
FNDestenationEX42.enable
FNDestenationEX43.enable
FNDestenationEX44.enable
FNDestenationEX45.enable
FNDestenationEX46.enable
FNDestenationEX47.enable
FNDestenationEX48.enable
FNDestenationEX49.enable
FNDestenationEX50.enable
FNDestenationEX51.enable
FNDestenationEX52.enable
FNDestenationEX53.enable
FNDestenationEX54.enable
FNDestenationEX55.enable
FNDestenationEX56.enable
FNDestenationEX57.enable
FNDestenationEX58.enable
FNDestenationEX59.enable
FNDestenationEX60.enable
FNDestenationEX61.enable
FNDestenationEX62.enable
FNDestenationEX63.enable
FNDestenationEX64.enable
FNDestenationEX65.enable
FNDestenationEX66.enable
FNDestenationEX67.enable
FNDestenationEX68.enable
FNDestenationEX69.enable
FNDestenationEX70.enable
FNDestenationEX71.enable
FNDestenationEX72.enable
FNDestenationEX73.enable
FNDestenationEX74.enable
FNDestenationEX75.enable
FNDestenationEX76.enable
FNDestenationEX77.enable
FNDestenationEX78.enable
FNDestenationEX79.enable
FNDestenationEX80.enable
FNDestenationEX81.enable
FNDestenationEX82.enable
FNDestenationEX83.enable
FNDestenationEX84.enable
FNDestenationEX85.enable
FNDestenationEX86.enable
FNDestenationEX87.enable
FNDestenationEX88.enable
FNDestenationEX89.enable
FNDestenationEX90.enable
FNDestenationEX91.enable
FNDestenationEX92.enable
FNDestenationEX93.enable
FNDestenationEX94.enable
FNDestenationEX95.enable
FNDestenationEX96.enable
FNDestenationDisableEX01.disable
FNDestenationDisableEX02.disable
FNDestenationDisableEX03.disable
FNDestenationDisableEX04.disable
FNDestenationDisableEX05.disable
FNDestenationDisableEX06.disable
FNDestenationDisableEX07.disable
FNDestenationDisableEX08.disable
FNDestenationDisableEX09.disable
FNDestenationDisableEX10.disable
FNDestenationDisableEX11.disable
FNDestenationDisableEX12.disable
FNDestenationDisableEX13.disable
FNDestenationDisableEX14.disable
FNDestenationDisableEX15.disable
FNDestenationDisableEX16.disable
FNDestenationDisableEX17.disable
FNDestenationDisableEX18.disable
FNDestenationDisableEX19.disable
FNDestenationDisableEX20.disable
FNDestenationDisableEX21.disable
FNDestenationDisableEX22.disable
FNDestenationDisableEX23.disable
FNDestenationDisableEX24.disable
FNDestenationDisableEX25.disable
FNDestenationDisableEX26.disable
FNDestenationDisableEX27.disable
FNDestenationDisableEX28.disable
FNDestenationDisableEX29.disable
FNDestenationDisableEX30.disable
FNDestenationDisableEX31.disable
FNDestenationDisableEX32.disable
FNDestenationDisableEX33.disable
FNDestenationDisableEX34.disable
FNDestenationDisableEX35.disable
FNDestenationDisableEX36.disable
FNDestenationDisableEX37.disable
FNDestenationDisableEX38.disable
FNDestenationDisableEX39.disable
FNDestenationDisableEX40.disable
FNDestenationDisableEX41.disable
FNDestenationDisableEX42.disable
FNDestenationDisableEX43.disable
FNDestenationDisableEX44.disable
FNDestenationDisableEX45.disable
FNDestenationDisableEX46.disable
FNDestenationDisableEX47.disable
FNDestenationDisableEX48.disable
FNDestenationDisableEX49.disable
FNDestenationDisableEX50.disable
FNDestenationDisableEX51.disable
FNDestenationDisableEX52.Disable
FNDestenationDisableEX53.Disable
FNDestenationDisableEX54.Disable
FNDestenationDisableEX55.disable
FNDestenationDisableEX56.disable
FNDestenationDisableEX57.disable
FNDestenationDisableEX58.disable
FNDestenationDisableEX59.disable
FNDestenationDisableEX60.disable
FNDestenationDisableEX61.disable
FNDestenationDisableEX62.disable
FNDestenationDisableEX63.disable
FNDestenationDisableEX64.disable
FNDestenationDisableEX65.disable
FNDestenationDisableEX66.disable
FNDestenationDisableEX67.disable
FNDestenationDisableEX68.disable
FNDestenationDisableEX69.disable
FNDestenationDisableEX70.disable
FNDestenationDisableEX71.disable
FNDestenationDisableEX72.disable
FNDestenationDisableEX73.disable
FNDestenationDisableEX74.disable
FNDestenationDisableEX75.disable
FNDestenationDisableEX76.disable
FNDestenationDisableEX77.disable
FNDestenationDisableEX78.disable
FNDestenationDisableEX79.disable
FNDestenationDisableEX80.disable
FNDestenationDisableEX81.disable
FNDestenationDisableEX82.disable
FNDestenationDisableEX83.disable
FNDestenationDisableEX84.disable
FNDestenationDisableEX85.disable
FNDestenationDisableEX86.disable
set doonce to 1
endif
end
If ( DistanzAnvil <= DistanzBravil ) && ( DistanzAnvil <= DistanzBruma ) && ( DistanzAnvil <= DistanzCheydinhal ) && ( DistanzAnvil <= DistanzChorrol ) && ( DistanzAnvil <= DistanzKvatch ) && ( DistanzAnvil <= DistanzKaiserstadt ) && ( DistanzAnvil <= DistanzLeyawiin ) && ( DistanzAnvil <= DistanzSkingrad ) && ( DistanzAnvil <= DistanzAld'Ruhn ) && ( DistanzAnvil <= DistanzBalmora ) && ( DistanzAnvil <= DistanzGnisis ) && ( DistanzAnvil <= DistanzVivec )
short distanz1 = 0
set distanz1 to DistanzAnvil <= DistanzBravil
.
.
.
if(distanz1 && distanz2 && ...)
short distanz1 = 0
if(DistanzAnvil <= DistanzBravil)
set distanz1 to 1
endif
.
.
.
if(distanz1 && distanz2 && ...)
Hi!
Wie kann ich aus folgender Script-Zeile zwei Zeilen machen?:
Code:If ( DistanzAnvil <= DistanzBravil ) && ( DistanzAnvil <= DistanzBruma ) && ( DistanzAnvil <= DistanzCheydinhal ) && ( DistanzAnvil <= DistanzChorrol ) && ( DistanzAnvil <= DistanzKvatch ) && ( DistanzAnvil <= DistanzKaiserstadt ) && ( DistanzAnvil <= DistanzLeyawiin ) && ( DistanzAnvil <= DistanzSkingrad ) && ( DistanzAnvil <= DistanzAld'Ruhn ) && ( DistanzAnvil <= DistanzBalmora ) && ( DistanzAnvil <= DistanzGnisis ) && ( DistanzAnvil <= DistanzVivec )
If ( DistanzAnvil <= DistanzBravil ) && ( DistanzAnvil <= DistanzBruma ) && ( DistanzAnvil <= DistanzCheydinhal ) && ( DistanzAnvil <= DistanzChorrol ) && ( DistanzAnvil <= DistanzKvatch ) && ( DistanzAnvil <= DistanzKaiserstadt )
If( DistanzAnvil <= DistanzLeyawiin ) && ( DistanzAnvil <= DistanzSkingrad ) && ( DistanzAnvil <= DistanzAld'Ruhn ) && ( DistanzAnvil <= DistanzBalmora ) && ( DistanzAnvil <= DistanzGnisis ) && ( DistanzAnvil <= DistanzVivec )
;Tue irgendwas
Endif
Endif
scn FnDestinationEX
short doonce
begin OnTrigger Player
if doonce == 0
FNDestenationEX01.enable
FNDestenationEX02.enable
FNDestenationEX03.enable
FNDestenationEX04.enable
FNDestenationEX05.enable
FNDestenationEX06.enable
FNDestenationEX07.enable
FNDestenationEX08.enable
FNDestenationEX09.enable
FNDestenationEX10.enable
FNDestenationEX11.enable
FNDestenationEX12.enable
FNDestenationEX13.enable
FNDestenationEX14.enable
FNDestenationEX15.enable
FNDestenationEX16.enable
FNDestenationEX17.enable
FNDestenationEX18.enable
FNDestenationEX19.enable
FNDestenationEX20.enable
FNDestenationEX21.enable
FNDestenationEX22.enable
FNDestenationEX23.enable
FNDestenationEX24.enable
FNDestenationEX25.enable
FNDestenationEX26.enable
FNDestenationEX27.enable
FNDestenationEX28.enable
FNDestenationEX29.enable
FNDestenationEX30.enable
FNDestenationEX31.enable
FNDestenationEX32.enable
FNDestenationEX33.enable
FNDestenationEX34.enable
FNDestenationEX35.enable
FNDestenationEX35.enable
FNDestenationEX36.enable
FNDestenationEX37.enable
FNDestenationEX38.enable
FNDestenationEX39.enable
FNDestenationEX40.enable
FNDestenationEX41.enable
FNDestenationEX42.enable
FNDestenationEX43.enable
FNDestenationEX44.enable
FNDestenationEX45.enable
FNDestenationEX46.enable
FNDestenationEX47.enable
FNDestenationEX48.enable
FNDestenationEX49.enable
FNDestenationEX50.enable
FNDestenationEX51.enable
FNDestenationEX52.enable
FNDestenationEX53.enable
FNDestenationEX54.enable
FNDestenationEX55.enable
FNDestenationEX56.enable
FNDestenationEX57.enable
FNDestenationEX58.enable
FNDestenationEX59.enable
FNDestenationEX60.enable
FNDestenationEX61.enable
FNDestenationEX62.enable
FNDestenationEX63.enable
FNDestenationEX64.enable
FNDestenationEX65.enable
FNDestenationEX66.enable
FNDestenationEX67.enable
FNDestenationEX68.enable
FNDestenationEX69.enable
FNDestenationEX70.enable
FNDestenationEX71.enable
FNDestenationEX72.enable
FNDestenationEX73.enable
FNDestenationEX74.enable
FNDestenationEX75.enable
FNDestenationEX76.enable
FNDestenationEX77.enable
FNDestenationEX78.enable
FNDestenationEX79.enable
FNDestenationEX80.enable
FNDestenationEX81.enable
FNDestenationEX82.enable
FNDestenationEX83.enable
FNDestenationEX84.enable
FNDestenationEX85.enable
FNDestenationEX86.enable
FNDestenationEX87.enable
FNDestenationEX88.enable
FNDestenationEX89.enable
FNDestenationEX90.enable
FNDestenationEX91.enable
FNDestenationEX92.enable
FNDestenationEX93.enable
FNDestenationEX94.enable
FNDestenationEX95.enable
FNDestenationEX96.enable
FNDestenationEX97.enable
FNDestenationEX98.enable
FNDestenationEX99.enable
FNDestenationEX100.enable
FNDestenationEX101.enable
FNDestenationEX102.enable
FNDestenationEX103.enable
FNDestenationEX104.enable
FNDestenationEX105.enable
FNDestenationEX106.enable
FNDestenationEX107.enable
FNDestenationEX108.enable
FNDestenationEX109.enable
FNDestenationEX110.enable
FNDestenationEX111.enable
FNDestenationDisableEX01.disable
FNDestenationDisableEX02.disable
FNDestenationDisableEX03.disable
FNDestenationDisableEX04.disable
FNDestenationDisableEX05.disable
FNDestenationDisableEX06.disable
FNDestenationDisableEX07.disable
FNDestenationDisableEX08.disable
FNDestenationDisableEX09.disable
FNDestenationDisableEX10.disable
FNDestenationDisableEX11.disable
FNDestenationDisableEX12.disable
FNDestenationDisableEX13.disable
FNDestenationDisableEX14.disable
FNDestenationDisableEX15.disable
FNDestenationDisableEX16.disable
FNDestenationDisableEX17.disable
FNDestenationDisableEX18.disable
FNDestenationDisableEX19.disable
FNDestenationDisableEX20.disable
FNDestenationDisableEX21.disable
FNDestenationDisableEX22.disable
FNDestenationDisableEX23.disable
FNDestenationDisableEX24.disable
FNDestenationDisableEX25.disable
FNDestenationDisableEX26.disable
FNDestenationDisableEX27.disable
FNDestenationDisableEX28.disable
FNDestenationDisableEX29.disable
FNDestenationDisableEX30.disable
FNDestenationDisableEX31.disable
FNDestenationDisableEX32.disable
FNDestenationDisableEX33.disable
FNDestenationDisableEX34.disable
FNDestenationDisableEX35.disable
FNDestenationDisableEX36.disable
FNDestenationDisableEX37.disable
FNDestenationDisableEX38.disable
FNDestenationDisableEX39.disable
FNDestenationDisableEX40.disable
FNDestenationDisableEX41.disable
FNDestenationDisableEX42.disable
FNDestenationDisableEX43.disable
FNDestenationDisableEX44.disable
FNDestenationDisableEX45.disable
FNDestenationDisableEX46.disable
FNDestenationDisableEX47.disable
FNDestenationDisableEX48.disable
FNDestenationDisableEX49.disable
FNDestenationDisableEX50.disable
FNDestenationDisableEX51.disable
FNDestenationDisableEX52.Disable
FNDestenationDisableEX53.Disable
FNDestenationDisableEX54.Disable
FNDestenationDisableEX55.disable
FNDestenationDisableEX56.disable
FNDestenationDisableEX57.disable
FNDestenationDisableEX58.disable
FNDestenationDisableEX59.disable
FNDestenationDisableEX60.disable
FNDestenationDisableEX61.disable
FNDestenationDisableEX62.disable
FNDestenationDisableEX63.disable
FNDestenationDisableEX64.disable
FNDestenationDisableEX65.disable
FNDestenationDisableEX66.disable
FNDestenationDisableEX67.disable
FNDestenationDisableEX68.disable
FNDestenationDisableEX69.disable
FNDestenationDisableEX70.disable
FNDestenationDisableEX71.disable
FNDestenationDisableEX72.disable
FNDestenationDisableEX73.disable
FNDestenationDisableEX74.disable
FNDestenationDisableEX75.disable
FNDestenationDisableEX76.disable
FNDestenationDisableEX77.disable
FNDestenationDisableEX78.disable
FNDestenationDisableEX79.disable
FNDestenationDisableEX80.disable
FNDestenationDisableEX81.disable
FNDestenationDisableEX82.disable
FNDestenationDisableEX83.disable
FNDestenationDisableEX84.disable
FNDestenationDisableEX85.disable
FNDestenationDisableEX86.disable
set doonce to 1
endif
end
setWeather [WetterDasDuHabenMöchtest]
scn name
short doonce
float timer
Begin GameMode
if getStage <Quest-ID> == 10
if player.getDistance <Objekt-Ref> <= 1000
if doonce == 0
set timer to 20
set doonce to 1
endif
if timer >= 0
set timer to timer - getSecondsPassed
endif
if timer <= 0
setStage <Quest-ID> 13
endif
endif
endif
end
scn FNHQStartRast
begin gamemode
if FNStartRast < 5
setstage FNStartRast 5
endif
Mfg yves
end
scn FNHQStartRast
Short DoOnce
begin MenuMode 1012
If DoOnce == 0
if GetStage FNStartRast < 5
setstage FNStartRast 5
Set DoOnce to 1
endif
endif
;Mfg SirTroy =)
end
ScriptName FNContdoorAnimation
short Trigger
float Timer
begin onTrigger player
if Trigger == 0
DisablePlayerControls
FNDontdoorGate01.playgroup forward 1
FNContdoorCreaturAnimation01.playgroup forward 1
set triggered to 1
set timer to 10
endif
End
begin GameMode
if triggered == 0
return
endif
if timer >= 0 && triggered == 1
set timer to timer - getSecondsPassed
endif
if timer <= 0
FNContdoorGnarlAnimation01.enable
EnablePlayerControls
endif
end
Was mir sofort aufgefallen ist, ist, dass du eine Variable benutzt, die du nicht deklariert hast (Trigger/triggered). Dann würde ich dir noch empfehlen für die Animationen bei Türen etc. den Flag "0" zu benutzen.
scn FNContDoorGate01
begin onDeath
set FNContdoorGnarlAnimation01.dead to 1
FNContdoorGnarlAnimation01.enable
end