Modderecke > Coding
Shadowleakes Fragentread
Sanalf 2:
Tja, was mir so spontan dazu einfallen würde, wär, dass du vielleicht eine "SpecialPower" falsch angegeben hast. Du hast vielleicht im Behavior-Block der Einheit den Namen der SpecialPower falsch geschrieben oder umgekehrt. Bei so einem Fehler stürzt das Spiel normalerweise auf die von dir beschriebene Weise ab.
mfg
sanalf 2
Shadowleake, Eis des Nordens:
oke, ich mach jetzt nochmal alles neu...ab dem zeitpunkt wos nichtmehr ging (hab ja zum glück genug zwischengespeichert^^)
kennt wer ein gutes tutorial zum erstellen von ocl-spells im spellbook? oder überhaupt neue spells machen...
ich habs schonmal hinbekommen, aber irgentwie schaff ichs jetzt nicht mehr :(
auf the 3rdage.net hab ich nur das gefunden und irgentwie hab ichs das erste mal anders gemacht :)
http://www.the3rdage.net/item-73?addview
hoffe jemand kann helfen
lg shadow
thepinking:
Wieso willst du dafür ein Tutorial? Nimm dir zb den Beschwörungspell für einen Balrog, kopier ihn, änder den Namen (CommandButton SpecialPower, CommandSet, OCL, Modulename, Science) und fertig.
Falls es nicht klappen sollte, poste die Codes.
DarkAtra:
hier ist alles was man beim Balrog braucht (bzw. zum verändern des Spellbooks) und das Tut ist doch eigentlich verständlich. Wieso machst du es nicht so?
--- Code: ---
;;;;; Science ;;;;; (.ini)
Science SCIENCE_BalrogAlly
PrerequisiteSciences = SCIENCE_EVIL SCIENCE_ArrowVolleyEvil OR SCIENCE_EVIL SCIENCE_FueltheFires OR SCIENCE_MORDOR SCIENCE_Darkness OR SCIENCE_MORDOR SCIENCE_EvilBombard OR SCIENCE_WILD SCIENCE_Darkness OR SCIENCE_WILD SCIENCE_WatcherAlly
SciencePurchasePointCost = EVIL_RANK_4_COST
SciencePurchasePointCostMP = 25
IsGrantable = Yes
End
;;;;; SpecialPower ;;;;; (.ini)
SpecialPower SpellBookBalrogAlly
Enum = SPECIAL_SPELL_BOOK_BALROG_ALLY
ReloadTime = SPELL_RECHARGE_TIME_TIER_4 ; in milliseconds
RadiusCursorRadius = 75.0 ; Match the radius in FXList SummonBalrogStart
RequiredSciences = SCIENCE_BalrogAlly
ViewObjectDuration = 5000
ViewObjectRange = 100
Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT
ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER
ForbiddenObjectRange = 75.0
End
;;;;; CommandButton ;;;;; (.ini)
CommandButton Command_SpellBookBalrogAlly
Command = SPELL_BOOK
SpecialPower = SpellBookBalrogAlly
Options = NEED_TARGET_POS
TextLabel = CONTROLBAR:SummonBalrog
ButtonImage = SBEvil_BalrogAlly
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipSummonBalrog
RadiusCursorType = SummonBalrogRadiusCursor
CursorName = AttackObj
InvalidCursorName = GenericInvalid
End
;;;;; CommandSet ;;;;; (.ini)
CommandSet MordorSpellBookCommandSet
1 = Command_SpellBookTaint
2 = Command_SpellBookEyeofSauron
3 = Command_SpellBookWarChant
4 = Command_SpellBookIndustry
5 = Command_SpellBookBarricade
6 = Command_SpellBookUntamedAllegiance
7 = Command_SpellBookArrowVolleyEvil
8 = Command_SpellBookEvilBombard
9 = Command_SpellBookDarkness
10 = Command_SpellBookAwakenWyrm
11 = Command_SpellBookBalrogAlly
12 = Command_SpellBookRainOfFire
End
CommandSet MordorSpellStoreCommandSet
1 = Command_PurchaseSpellTaint
2 = Command_PurchaseSpellEyeofSauron
3 = Command_PurchaseSpellWarChant
4 = Command_PurchaseSpellIndustry ; Command_PurchaseSpellBarricade
5 = Command_PurchaseSpellUntamedAllegiance
6 = Command_PurchaseSpellBarricade ; Command_PurchaseSpellIndustry
7 = Command_PurchaseSpellArrowVolleyEvil
8 = Command_PurchaseSpellEvilBombard ; Command_PurchaseSpellAwakenWyrm
9 = Command_PurchaseSpellDarkness
10 = Command_PurchaseSpellAwakenWyrm ; Command_PurchaseSpellEvilBombard
11 = Command_PurchaseSpellBalrogAlly
12 = Command_PurchaseSpellRainOfFire
End
;;;;; OCL ;;;;; (ObjectCreationList.ini)
ObjectCreationList OCL_BalrogSummoning
CreateObject
ObjectNames = MordorBalrogEgg
Count = 1
Disposition = LIKE_EXISTING
End
CreateObject
ObjectNames = MordorBalrogEggPlaceHolder
Count = 1
Disposition = LIKE_EXISTING
End
End
ObjectCreationList OCL_BalrogSummoningFinish
CreateObject
ObjectNames = MordorBalrog
Count = 1
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 2300
FadeIn = Yes
FadeTime = 10000
IgnoreCommandPointLimit = Yes
End
End
;;;;; Module ;;;;;; (system.ini)
Behavior = OCLSpecialPower ModuleTag_SummonBalrog
SpecialPowerTemplate = SpellBookBalrogAlly
OCL = OCL_BalrogSummoning
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
;;;;; Playertemplate ;;;;; (.ini)
PlayerTemplate FactionMordor
SpellBook = EvilSpellBook
SpellBookMp = MordorSpellBook
PurchaseScienceCommandSet = EvilSpellStoreCommandSet
PurchaseScienceCommandSetMP = MordorSpellStoreCommandSet
SpellStoreCurrentPowerLabel = APT:SpellStoreCurrentRingPower
SpellStoreMaximumPowerLabel = APT:SpellStoreMaximumRingPower
End
--- Ende Code ---
Shadowleake, Eis des Nordens:
okay... so gehts jetzt, wenn ich aber die codes copier und abänder von dem spell den ich damals gemacht habe gehts komischerweise nicht, obwohl der im selben project ist und fuktioniert :P
naja ich machs jetzt jedenfalls immer so wie ihr :D danke euch!
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln