Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline AdrianeMapMaker  
#1 Posted : Tuesday, October 10, 2017 6:33:34 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Well i am trying my skills to improve the vgen ai


i test to add 2 superweapon to be built - but the result is the superweapon is not firing at all then it sparks but doesnt shoot it lol Laugh
UserPostedImage

- i know now why vgen doesnt want to add 2 superwepon for ai lol , i think the script is telling to ai to shoot the supwerweapon but it confused what it will shoot - because both of them are non specified

-any idea how to fix this guys? what script do i need to specify's ai will shoot?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Sponsor
Offline acidbrain  
#2 Posted : Tuesday, October 10, 2017 7:06:07 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Use the build list to name the superweapons, you will be able to script each single superweapon that way...

Cheers
Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
AdrianeMapMaker on 10/11/2017(UTC)
Offline AdrianeMapMaker  
#3 Posted : Wednesday, October 11, 2017 7:15:38 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
What do you mean ? the INI - GameDATA.ini or Worldbuilder's ZH NEw feature
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Zatsupachi  
#4 Posted : Wednesday, October 11, 2017 8:26:37 AM(UTC)
Zatsupachi
Major
Joined: 3/27/2015(UTC)
Posts: 490

Thanks: 5 times
Was thanked: 213 time(s) in 155 post(s)
It's in AIData.ini
"It's precision_bomber."

Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mod...oads/death-label-ver-099

Next Episode:
precision_bomber's Zero Hour SCIENCE!
Offline AdrianeMapMaker  
#5 Posted : Friday, October 13, 2017 4:54:43 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Well Zatsupachi ... thanks for correcting me but i dont have any idea how to input the name there

acidbrain's method is not for all map's -

Edited by user Friday, October 13, 2017 5:39:33 AM(UTC)  | Reason: Not specified

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Vauxe  
#6 Posted : Friday, October 13, 2017 12:16:37 PM(UTC)
Vauxe
Private
Joined: 10/11/2017(UTC)
Posts: 4

Was thanked: 1 time(s) in 1 post(s)
A little busy right now but try looking at how Zero Hour does it first Smile

Edit:
I think what acidbrain mean is that in the Build List tool in Worldbuilder you can double-click an item to set its name and script to be executed everytime it's constructed, but I'm pretty sure that's useless if you're actually going to extract these scripts to use as default AI.

Edited by user Friday, October 13, 2017 12:19:15 PM(UTC)  | Reason: Not specified

vtulcobra here
Offline acidbrain  
#7 Posted : Friday, October 13, 2017 3:30:06 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Vauxe Go to Quoted Post
you can double-click an item to set its name

You dont have to open wb to add a name to a building...
*Edit* Was grumpy and still am

Here is an example, took the airforce particle cannon...
Code:

SkirmishBuildList AmericaAirForceGeneral
    Structure AirF_AmericaParticleCannonUplink
      Name = AirF_ParticleCannonUplink-1
      Location = X:500.00 Y:50.00
      Rebuilds = 0
      Angle = 315.00
      InitiallyBuilt = No
      AutomaticallyBuild = No
    End
End


If you want multiple sw's in vanilla gens you can copy the existing sw buildlist code from a sw and change the coordinates so it fits good in the base(dont forget to add a build script in wb), if you name the sw's you can fire them independently.
The only thing you have to add is 'Name = name' to the superweapon of choice in AIData.ini, used it many times and it works like a charm...

Cheers

Edited by user Saturday, October 14, 2017 7:42:44 AM(UTC)  | Reason: Secret

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
CommieDog on 10/19/2017(UTC)
Offline AdrianeMapMaker  
#8 Posted : Friday, October 13, 2017 10:32:17 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Well Thankksss!!

But How can independently Fire it - i cant see any script for this ****
I found the Scripts to use but it directly want's the unit that already put in the world not those one that will be build ingame

- I think Generals Zh had a modified version of a logic when it come's to a superweapon


i had Seen the ZH Script (well in known position of scripts in random) i see full similarities.
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline acidbrain  
#9 Posted : Saturday, October 14, 2017 1:16:55 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
You can use multiple scripts to fire the sw's:
Code:

Player '???' fire Special power '???'
If both sw's are at 0 seconds you can set the sw timer you dont want to fire at 5 seconds and fire the sw of choice, use this script:
Set Unit '???''s Special power '???' to  0  seconds.

Here are some more scripts to fire the sw:
Team '???' performs Ability '???' on most expensive object within 0.00 FALSE (true = all valid sources, false = first valid source).

Unit '???' use Ability '???' at Waypoint '???'.

Unit '???' use Ability '???' on Unit '???'.

Unit '???' use Ability '???'.


Cheers

Edited by user Saturday, October 14, 2017 1:18:35 AM(UTC)  | Reason: Top secret

Panem et kirkinses
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.