Jump to content


A.I not using spellbook.


  • Please log in to reply
10 replies to this topic

#1 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 06 August 2010 - 08:51 PM

When I play skirmish, Goblins and Dwarves don't seem to use their spellbooks. Just tell me what to fix and i'll fix it, I just want to play against Goblins and Dwarves at full power.

#2 Devon

Devon

    Dark Nerd of the Sith

  • Global Moderators
  • 5,886 posts
  • Location:Colbert Nation
  • Projects:RJ RotWK, Twilight of the Republic, HDLH
  •  T3A Chamber Member
  • Division:Community
  • Job:Global Moderator
  • Donated

Posted 06 August 2010 - 09:35 PM

*moved to where people are more likely to help*

yodasig2.png
My political compass
There's a story that the grass is so green...what did I see? Where have I been?


#3 Prolong

Prolong
  • Members
  • 133 posts

Posted 07 August 2010 - 04:18 AM

Make sure the PP paths look all right in libraries\ai_spell_execution\ai_spell_execution.map

Also in the base game there are a couple spells missing from the Evil spellbook in system.ini: evil Barrage, Palantir Vision, and Gundabad Orcs.

#4 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 07 August 2010 - 09:28 PM

Do you know where to open .Map files? Sorry I don't know how to edit those, I just know how to code(A little though).

#5 Prolong

Prolong
  • Members
  • 133 posts

Posted 08 August 2010 - 02:25 AM

Hehe :p

Open the map files with Worldbuilder of course. You'll need to use the scripting tool in the upper right to edit the spell execution.

#6 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 08 August 2010 - 04:22 PM

Okay, thanks. I'll answer back if I have any problems with it.

#7 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 09 August 2010 - 02:14 AM

I managed to get Goblins to uses their Cave Bats and Taint, but they don't seem to use other powers. Can you tell me what to look for in these scripts? Also if there is something else to check out, please tell me.

#8 Spartan184

Spartan184

    :)

  • Project Team
  • 1,592 posts
  • Location:Moon
  • Projects:Random Modding Projects
  •  Coder, Map.ini Coder, Mapper, and Beta Tester

Posted 09 August 2010 - 02:30 AM

Um, you can try copying the script and edit it so that it references a different power :)


 

safsignature.png

 


#9 Prolong

Prolong
  • Members
  • 133 posts

Posted 09 August 2010 - 01:14 PM

I managed to get Goblins to uses their Cave Bats and Taint, but they don't seem to use other powers. Can you tell me what to look for in these scripts? Also if there is something else to check out, please tell me.

Well you need to... look for everything being correct. :) It's really easy so this shouldn't be a problem.

Eg. mine (edited) says:

Spell List 01 - Norm - Purchase Taint

*** IF ***
Counter 'Wild Spell List Choice' IS Equal To 1
*AND* Player Player '<This Player>' can purchase Science 'SCIENCE_Taint'.
*** THEN ***
Player '<This Player>' attempts to purchase Science Science 'SCIENCE_Taint'.
Set Flag named 'Taint Spell Purchased' to TRUE
Enable Script 'Wild Spell List 01 - Norm - Purchase Spiderling Allies'.

Then the next one down the line is:

Wild Spell List 01 - Norm - Purchase Spiderling Allies

*** IF ***
Counter 'Wild Spell List Choice' IS Equal To 1
*AND* Flag named 'Taint Spell Purchased' IS TRUE
*AND* Player Player '<This Player>' can purchase Science 'SCIENCE_SpiderlingAllies'.
*** THEN ***
Player '<This Player>' attempts to purchase Science Science 'SCIENCE_Darkness'.
Set Flag named 'Spiderling Allies Spell Purchased' to TRUE
Enable Script 'Wild Spell List 01 - Norm - Purchase Darkness'.

I don't know what else to say really. ;) You need to make sure:

1) The powers are in the right order for the power tree
2) You set the power's Flag to True when purchasing it
3) Script names are correct
4) First script in the list is active, others are disabled
5) Difficulty levels are set properly
etc. etc.

Just go in a chain.

And er, look my Spiderling Allies one is wrong. :( Should say "Player '<This Player>' attempts to purchase Science Science 'SCIENCE_SpiderlingAllies'." It's easy to make a little error like that, and now Goblins never use Spiderling Allies on that pp path.

Edited by Prolong, 09 August 2010 - 01:17 PM.


#10 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 09 August 2010 - 08:42 PM

I managed to get Goblins to uses their Cave Bats and Taint, but they don't seem to use other powers. Can you tell me what to look for in these scripts? Also if there is something else to check out, please tell me.

Well you need to... look for everything being correct. ;) It's really easy so this shouldn't be a problem.

Eg. mine (edited) says:

Spell List 01 - Norm - Purchase Taint

*** IF ***
Counter 'Wild Spell List Choice' IS Equal To 1
*AND* Player Player '<This Player>' can purchase Science 'SCIENCE_Taint'.
*** THEN ***
Player '<This Player>' attempts to purchase Science Science 'SCIENCE_Taint'.
Set Flag named 'Taint Spell Purchased' to TRUE
Enable Script 'Wild Spell List 01 - Norm - Purchase Spiderling Allies'.

Then the next one down the line is:

Wild Spell List 01 - Norm - Purchase Spiderling Allies

*** IF ***
Counter 'Wild Spell List Choice' IS Equal To 1
*AND* Flag named 'Taint Spell Purchased' IS TRUE
*AND* Player Player '<This Player>' can purchase Science 'SCIENCE_SpiderlingAllies'.
*** THEN ***
Player '<This Player>' attempts to purchase Science Science 'SCIENCE_Darkness'.
Set Flag named 'Spiderling Allies Spell Purchased' to TRUE
Enable Script 'Wild Spell List 01 - Norm - Purchase Darkness'.

I don't know what else to say really. ;) You need to make sure:

1) The powers are in the right order for the power tree
2) You set the power's Flag to True when purchasing it
3) Script names are correct
4) First script in the list is active, others are disabled
5) Difficulty levels are set properly
etc. etc.

Just go in a chain.

And er, look my Spiderling Allies one is wrong. :( Should say "Player '<This Player>' attempts to purchase Science Science 'SCIENCE_SpiderlingAllies'." It's easy to make a little error like that, and now Goblins never use Spiderling Allies on that pp path.


Alright, thanks a lot. If I get anymore questions i'll come back, but i'm pretty sure this will help me a lot. :)

#11 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 10 August 2010 - 02:59 PM

Well I found out that there was a little mistake, Goblin's Taint had "SCIENCE_IsengardTaint" so I just replaced it with "SCIENCE_Taint" and it worked. Thanks for your help, now I got Dwarves problem, don't worry I think I got this one.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users