I have 4 aliases which will all run exactly the same script. However the property Manager complains each time I try to enter properties. I enter the code, save and then open up the property manager. I add the Type & name and click OK... then I get the following complaint ...
Starting 1 compile threads for 1 files...
Compiling "prefix_MyScriptName"...
\pre_MyScriptNameScript .psc(4,1): variable MySelf is undefined
\pre_MyScriptNameScript .psc(8,4): variable MySelf is undefined
\pre_MyScriptNameScript.psc (8,11): none is not a known user-defined type
\pre_MyScriptNameScript .psc(8,20): cannot compare a none to a int (cast missing or types unrelated)
\pre_MyScriptNameScript.psc(10,2): variable MySelf is undefined
\pre_MyScriptNameScript.psc(10,9): none is not a known user-defined type
\pre_MyScriptNameScript.psc(11,2): variable MySelf is undefined
\pre_MyScriptNameScript.psc(11,9): none is not a known user-defined type
\pre_MyScriptNameScript.psc(13,2): variable Myself is undefined
\pre_MyScriptNameScript.psc(13,11): variable StablesPosition is undefined
\pre_MyScriptNameScript.psc(13,42): variable lvlHorseSaddled is undefined
\pre_MyScriptNameScript.psc(13,27): none is not a known user-defined type
\pre_MyScriptNameScript.psc(14,28): variable MySelf is undefined
\pre_MyScriptNameScript.psc(15,42): variable StablesFaction is undefined
No output generated for pre_MyScriptNameScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on pre_MyScriptNameScript
Compiling "prefix_MyScriptName"...
No output generated for pre_MyScriptNameScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on pre_MyScriptNameScript
This is the point when I scream "I know its undefined - thats why I'm trying to define it!!! - before all this you were saying it was already defined. Make up your mind!"
When I look at the script again, the properties are added but I cannot assign them to anything. So why can I not get the property manager to work?
Here is the script (based on the vanilla "PlayerHorseScript").
oh, and I aleady spotted the error in the case (MySelf & Myself) but it is on the vanilla script. So I leave it there for general awareness. Is Payrus case -sensitive btw?
Scriptname pre_MyScriptNameScript extends ReferenceAlias;; this script is based on the vanilla PlayerHorseScript;Event OnDeath(Actor akKiller) MySelf = GetActorReference()EndEventEvent OnUnload() If MySelf.IsDead() == 1 ; disable the dead horse if it is unloaded MySelf.Disable() MySelf.Delete() ; added a new horse that can be bought at the stables Myself = StablesPosition.PlaceActorAtMe(lvlHorseSaddled) Alias_HorseRef.ForceRefTo(MySelf) Alias_HorseRef.GetRef().SetFactionOwner(StablesFaction)EndIfEndEvent

