HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Scripting q's

12-05-2002, 02:13 AM#1
blank
Here r some scripting questions I hope will be easy to answer:

What does "set campaign_wood_peons" mean exactly? In the campaign scripts they often call 100 peons but that doesn't sound right

"call SuicideOnPlayerEx(M6,M6,M5,user)" -- what does the 'M6,M6,M5' part mean?

"call CampaignAttackerEx( 2,2,3, GRUNT )" -- what do each of the numbers mean?

"call WaitForSignal()" -- means wait for ai command 0,0 doesn't it? not sure.

thanks!
12-05-2002, 04:47 AM#2
Guest
campaign_wood_peons tells the AI how many peons to harvest wood with. The only script I can think of that uses more than about 4 is the NE mission where you have to get to the druid before the undead chop down all the trees.

"call SuicideOnPlayerEx(M6,M6,M5,user)" -- what does the 'M6,M6,M5' part mean?

The M6 and M5 are constants defined in common.ai as 60*6 and 60*5 respectively. They refer to the amount of seconds that the AI should wait before sending the attack group on a suicide mission. The three values correspond to easy, normal, and hard mode.

"call CampaignAttackerEx( 2,2,3, GRUNT )" -- what do each of the numbers mean?

The numbers are the number of grunts to add (and construct if they're not already) to the attack group. Again, the three numbers correspond to easy, normal, and hard mode.

"call WaitForSignal()" -- means wait for ai command 0,0 doesn't it?

Pretty much, could be any command, but 0,0 works fine.