| unités invoquées | |
|
|
Auteur | Message |
---|
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: unités invoquées Sam 20 Aoû - 17:27 | |
| Salut,
Voilà j'aimerais changer les unités invoquées dans le pouvoir invocation des rohirrims par des chevaliers de Dol Amroth. J'ai vu qu'il fallait changer les unités dans l'OCL mais ça marche pas.
Si quelqu'un pourrais me dire la marche a suivre en détail, je serais comblé.
Merci de m'aidé. | |
|
| |
UND34D Habitué(e)
Nombre de messages : 81 Age : 28 Location : Québec Add-On : Oui Date d'inscription : 08/07/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 18:02 | |
| écoute je peux pas vraiment t'aider mais moi ce que je ferais, j'irais voir le tuto de cdd comment créer un pouvoir et là regarde chacune des étapes du pouvoir que tu veux modifier et tu trouveras facilement ce qu'il faut changer. | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Sam 20 Aoû - 18:07 | |
| J'ai pas parlé des ocl dans mon tuto - Citation :
- J'ai vu qu'il fallait changer les unités dans l'OCL mais ça marche pas.
Effectivement tu peux modifier l'ocl, mais le plus simple reste quand meme de créer un nouveau ocl et de le mettre a la place de l'ancien dans le module du pouvoir. Montre moi ton code qui ne marche pas | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 18:54 | |
| Salut,
Voici les codes.
SpecialPower:
SpecialPower SpellBookGondorAllies Enum = SPECIAL_SPELL_BOOK_ROHAN_ALLIES RequiredSciences = SCIENCE_GondorAllies ReloadTime = SPELL_RECHARGE_TIME_TIER_3 InitiateAtLocationSound = SpellRohirrimSummonMS RadiusCursorRadius = 100 Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER ForbiddenObjectRange = 100 End
Science:
Science SCIENCE_GondorAllies PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_TomBombadil OR SCIENCE_MEN SCIENCE_SpawnLoneTower SciencePurchasePointCost = GOOD_RANK_1_COST SciencePurchasePointCostMP = 1 IsGrantable = Yes End
CommandButton:
CommandButton Command_SpellBookGondorAllies Command = SPELL_BOOK SpecialPower = SpellBookGondorAllies ButtonImage = BGStables_KnightDolAmrothIcon Options = NEED_TARGET_POS ; Huh, you can't have this flag and a radius cursor: CONTEXTMODE_COMMAND TextLabel = CONTROLBAR:SummonRohanAllies ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipSummonRohanAllies RadiusCursorType = RohanAlliesRadiusCursor CursorName = AttackObj InvalidCursorName = GenericInvalid End
CommandButton Command_PurchaseSpellGondorAllies Command = PURCHASE_SCIENCE ButtonBorderType = UPGRADE ButtonImage = BGStables_KnightDolAmrothIcon Science = SCIENCE_GondorAllies TextLabel = CONTROLBAR:SummonRohanAllies DescriptLabel = CONTROLBAR:TooltipSummonRohanAllies End
System:
Behavior = OCLSpecialPower ModuleTag_SummonGondor SpecialPowerTemplate = SpellBookGondorAllies OCL = OCL_SpawnGondorKnightsofDolEgg TriggerFX = FX_RohirimSummon CreateLocation = CREATE_AT_LOCATION UpgradeName = Upgrade_GondorAllies AvailableAtStart = No RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
Behavior = AISpecialPowerUpdate SpellBookGondorAlliesAI CommandButtonName = Command_SpellBookGondorAllies SpecialPowerAIType = AI_SPELLBOOK_ASSIST_BATTLE_DEBUFF SpecialPowerRadius = 100 RandomizeTargetLocation = Yes End | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Sam 20 Aoû - 19:36 | |
| et au fait en quoi ca ne marche pas ? impossible d'utiliser le pouvoir ? pouvoir n'ayant aucun effet ou pas les effets voulus ? message d'erreur (si oui lequel)?
| |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 20:55 | |
| Le problème c'est que les unités, donc les chevaliers de Dol Amroth n'apparaissent pas. | |
|
| |
UND34D Habitué(e)
Nombre de messages : 81 Age : 28 Location : Québec Add-On : Oui Date d'inscription : 08/07/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 21:35 | |
| c'est parce que les rohirrims invoqués s'appellent ''RohanRohirrim_Summoned'' donc tu créé ''GondorKnightsofDol_Summoned'' en t'inspirant des rohirrims et ça devrait être bon même si j'ai jamais testé. | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 22:00 | |
| J'ai créé les unités invoqués mais ça marche pas.
Voici les codes.
Unité:
ChildObject GondorKnightsofDol_Summoned GondorKnightsofDol IsTrainable = No CommandPoints = 0 EquivalentTo = GondorKnightsofDol Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate ; This one does the work, but the one in the horde displays the timer MinLifetime = 120000 MaxLifetime = 120000 DeathType = FADED
End
Behavior = AIUpdateInterface ModuleTag_03 AutoAcquireEnemiesWhenIdle = Yes ATTACK_BUILDINGS AILuaEventsList = SummonedKnightsofDolFunctions AttackPriority = AttackPriority_Cavalry BurningDeathTime = BURNINGDEATH_DURATION_CAVALRY End
Behavior = SlowDeathBehavior ModuleTag_FadeDeath DeathTypes = NONE +FADED FadeDelay = 0 FadeTime = 4000 DestructionDelay = 4000 DeathFlags = DEATH_2 FX = INITIAL FX_RohirrimAlliesUnsummon Sound = INITIAL SpellGenericUnsummonFasterMS End End
Horde:
ChildObject GondorKnightsofDolHorde_Summoned GondorKnightsofDolHorde IsTrainable = No CommandPoints = 0 CommandSet = KnightsofDolHordeCommandSet_Summoned EquivalentTo = GondorKnightsofDolHorde KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAVALRY HORDE MELEE_HORDE SUMMONED LARGE_RECTANGLE_PATHFIND Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate // This one displays the timer, but the one in the uint does the work MinLifetime = 180000 MaxLifetime = 180000 DeathType = FADED
End Behavior = HorseHordeContain ModuleTag_HordeContain ObjectStatusOfContained = InitialPayload = GondorKnightsofDolHorde_Summoned GOOD_RIDER_HORDE_SIZE Slots = 5 PassengerFilter = NONE +CAVALRY //+RohanBanner ShowPips = No RandomOffset = X:3 Y:4 ThisFormationIsTheMainFormation = Yes //Used to determine which armorset to use (and anything else we want!)
// Banner Carrier info // BannerCarriersAllowed = RohanBanner // types of units that are allowed as banner carriers // BannerCarrierPosition = UnitType:RohanRohirrim Pos:X:75.0 Y:0.0 // (DEFAULT) position of banner carrier for archer horde RankInfo = RankNumber:1 UnitType:GondorKnightsofDol Position:X:40 Y:0 Position:X:40 Y:20 Position:X:40 Y:-20 Position:X:40 Y:40 Position:X:40 Y:-40 RankInfo = RankNumber:2 UnitType:GondorKnightsofDol Position:X:10 Y:0 Leader 1 0 Position:X:10 Y:20 Leader 1 1 Position:X:10 Y:-20 Leader 1 2 Position:X:10 Y:40 Leader 1 3 Position:X:10 Y:-40 Leader 1 4 RanksToReleaseWhenAttacking = 1 2 MeleeAttackLeashDistance = 25// How far the hordes can move from the center of the horde when melee attacking. End
End | |
|
| |
UND34D Habitué(e)
Nombre de messages : 81 Age : 28 Location : Québec Add-On : Oui Date d'inscription : 08/07/2010
| Sujet: Re: unités invoquées Sam 20 Aoû - 22:18 | |
| franchement j'en sais rien de ce que tu dois faire j'ai juste essayé de te mettre sur une piste qui me paraîssait logique mais après ça faudra attendre cdd. dsl EDIT: surtout n'oublie pas de mettre ton gamecrash si t'en as un pour qu'il puisse t'aider. | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Sam 20 Aoû - 22:45 | |
| tu peut mettre le code du OCL_SpawnGondorKnightsofDolEgg ? Cet ocl doit faire apparaitre un objet, (peut etre GondorKnightsofDolEgg en etant logique ?), je voudrais aussi voir le code de cet objet. Et cet objet lui meme quand il meurt fait apparaitre un ocl ,( j'aimerai aussi voir cet ocl ) qui normalement invoque tes cavaliers | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Dim 21 Aoû - 12:49 | |
| Salut cdd,
J'ai ce même code plus haut tu ne l'as pas vu ? Enfin si c'est celui là de code, ou alors c'est un autre ?
System:
Behavior = OCLSpecialPower ModuleTag_SummonGondor SpecialPowerTemplate = SpellBookGondorAllies OCL = OCL_SpawnGondorKnightsofDolEgg TriggerFX = FX_RohirimSummon CreateLocation = CREATE_AT_LOCATION UpgradeName = Upgrade_GondorAllies AvailableAtStart = No RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
Behavior = AISpecialPowerUpdate SpellBookGondorAlliesAI CommandButtonName = Command_SpellBookGondorAllies SpecialPowerAIType = AI_SPELLBOOK_ASSIST_BATTLE_DEBUFF SpecialPowerRadius = 100 RandomizeTargetLocation = Yes End | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Dim 21 Aoû - 13:14 | |
| C'est bien pour ca que j'ai posé la question, va dans objectcreationlist.ini et qu'y a t'il dans ton bloc ObjectCreationList OCL_SpawnGondorKnightsofDolEgg ? Si tu n'as pas créé ce bloc, c'est normal que ca ne marche pas :S | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Dim 21 Aoû - 15:27 | |
| ça marche toujours pas le curseur reste rouge, il ne devient pas blanc pour permettre l'invocation. | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Lun 22 Aoû - 12:50 | |
| - cdd a écrit:
- qu'y a t'il dans ton bloc ObjectCreationList OCL_SpawnGondorKnightsofDolEgg ?
et pour voir si l'invoc est correcte et forcer le curseur blanc tu pourrais temporairement mettre : - Citation :
- Behavior = OCLSpecialPower ModuleTag_SummonGondor
SpecialPowerTemplate = SpellBookGondorAllies OCL = OCL_SpawnGondorKnightsofDolEgg TriggerFX = FX_RohirimSummon CreateLocation = CREATE_AT_LOCATION UpgradeName = Upgrade_GondorAllies AvailableAtStart = Yes RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End - Citation :
- SpecialPower SpellBookGondorAllies
Enum = SPECIAL_SPELL_BOOK_ROHAN_ALLIES RequiredSciences = SCIENCE_GondorAllies ReloadTime = SPELL_RECHARGE_TIME_TIER_3 InitiateAtLocationSound = SpellRohirrimSummonMS RadiusCursorRadius = 100 Flags = RESPECT_RECHARGE_TIME_DISCOUNT ;Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ;ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER ;ForbiddenObjectRange = 100 End Et dit moi si ca apparait ou pas Et n'oublie pas de poster le code de OCL_SpawnGondorKnightsofDolEgg | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Lun 22 Aoû - 20:11 | |
| Salut cdd,
J'ai modifié ce que tu as mis en rouge et ça ne marche tojours pas.
Voici le code
ObjectCreationList:
; Create A bunch of Rohirrim out of thin air. ObjectCreationList OCL_SpawnGondorKnightsofDol CreateObject ObjectNames = GondorKnightsofDolHorde_Summoned Count = 5 FadeIn = Yes FadeTime = 8000 IgnoreCommandPointLimit = Yes Disposition = SPAWN_AROUND DispositionAngle = 72 ;SpawnAround uses this as the arc between guys DispositionIntensity = 300 ; and this for distance from center UseJustBuiltFlag = Yes StartingBusyTime = 5000 End End
; Create A bunch of Rohirrim out of thin air. ObjectCreationList OCL_SpawnGondorKnightsofDolEgg CreateObject ObjectNames = SummonGondorKnightsofDolEgg IgnoreCommandPointLimit = Yes Disposition = LIKE_EXISTING End End
| |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Lun 22 Aoû - 20:56 | |
| Il faudrait aussi le code de ton objet SummonGondorKnightsofDolEgg | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Mar 23 Aoû - 18:38 | |
| Salut,
Tu entends quoi par le code SummonGondorKnightsofDolEgg, où je suis censé le faire toujours dans ObjectCreationList ?
Dernière édition par Micky93 le Mar 23 Aoû - 18:52, édité 3 fois | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Mar 23 Aoû - 18:49 | |
| Ton objectcreationlist invoque cet object... si tu ne l'as pas, c'est normal que rien n'apparaissent | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Mar 23 Aoû - 18:54 | |
| Ok mais je suis censé rajouter quoi en plus ? | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Mar 23 Aoû - 20:38 | |
| Dans data\ini\object\goodfaction\units\men\mencavalry.ini il y a ceci : - Code:
-
Object SummonRohanRohirrimEgg Draw = W3DScriptedModelDraw ModuleTag_Draw DefaultModelConditionState Model = None End End KindOf = INERT IMMOBILE UNATTACKABLE Body = ActiveBody ModuleTag_MakesKillWork MaxHealth = 1 End Behavior = LifetimeUpdate ModuleTag_HatchTrigger MinLifetime = 0.0 MaxLifetime = 0.0 End Behavior = SlowDeathBehavior ModuleTag_HatchProcess DestructionDelay = 2000 OCL = FINAL OCL_SpawnRohanRohirrim End End Cet object est invoqué par OCL_SpawnRohanRohirrimEgg Quand cet objet meurt (instantanément), il fait apparaitre OCL_SpawnRohanRohirrim (qui invoque les rohirrims). Il suffit de t'inspirer de cet object pour faire fonctionner ton pouvoir | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Mer 24 Aoû - 19:11 | |
| Salut
J'ai ajouté l'object que tu m'a dit mais ça ne marche toujours pas, le curseur reste rouge. Je ne sais plus quoi faire.
Voici le code
Object SummonGondorKnightsofDolSummonEgg Draw = W3DScriptedModelDraw ModuleTag_Draw DefaultModelConditionState Model = None End End KindOf = INERT IMMOBILE UNATTACKABLE Body = ActiveBody ModuleTag_MakesKillWork MaxHealth = 1 End Behavior = LifetimeUpdate ModuleTag_HatchTrigger MinLifetime = 0.0 MaxLifetime = 0.0 End Behavior = SlowDeathBehavior ModuleTag_HatchProcess DestructionDelay = 2000 OCL = FINAL OCL_SpawnGondorKnightsofDol End End | |
|
| |
cdd59554 Admin
Nombre de messages : 7235 Age : 31 Location : J'aime les abricots Add-On : Oui Date d'inscription : 16/01/2008
| Sujet: Re: unités invoquées Mer 24 Aoû - 19:28 | |
| C'est bizarre quand meme , t'as peut etre oublié de modifier les command button dans le commandset ? dans MenSpellStoreCommandSet et MenSpellBookCommandSet | |
|
| |
Micky93 Débutant(e)
Nombre de messages : 45 Age : 31 Location : Mordor, sur le plateau de Gorgoroth, plus précisément Barad-Dûr Add-On : Evidemment quelle question ! Date d'inscription : 29/12/2010
| Sujet: Re: unités invoquées Mer 24 Aoû - 19:57 | |
| | |
|
| |
Contenu sponsorisé
| Sujet: Re: unités invoquées | |
| |
|
| |
| unités invoquées | |
|