Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ ShockWave _ Anyone know how to script AI's?

Posted by: Imperium 17 Jan 2016, 12:46

Read this already: http://www.moddb.com/mods/command-conquer-generals-version-20/tutorials/gen-zh-step-by-step-guide-to-building-an-ai

Great tutorial, but I have a problem. I have made my script for my designated general, pressed 'OKAY' and saved the map, however the script either does not run, or it does not save. I am inclined to believe it is the latter. I save the map after I finish of course, but the script seems to be unable to be saved or used in the future. I do not know why.

Can someone help a brother out?

My code was literally:

Every 1 seconds <this player> would receive 5000$ just for existing. It applied to easy medium and hard AI's.

What exactly did I screw up? I dont even know if the script broke because it did not save the bloody script. Help!

To Reiterate:
I set the teams
I have imported the script into WB
I made a new script
I pressed okay when i was finished with the changes and the script section.
I saved the map.
I closed world builder.

And yet still I must have done something wrong? What? I spent hours trying to figure this out!

Posted by: Imperium 17 Jan 2016, 15:12

QUOTE (Imperium @ 17 Jan 2016, 3:46) *
Read this already: http://www.moddb.com/mods/command-conquer-generals-version-20/tutorials/gen-zh-step-by-step-guide-to-building-an-ai

Great tutorial, but I have a problem. I have made my script for my designated general, pressed 'OKAY' and saved the map, however the script either does not run, or it does not save. I am inclined to believe it is the latter. I save the map after I finish of course, but the script seems to be unable to be saved or used in the future. I do not know why.

Can someone help a brother out?

My code was literally:

Every 1 seconds <this player> would receive 5000$ just for existing. It applied to easy medium and hard AI's.

What exactly did I screw up? I dont even know if the script broke because it did not save the bloody script. Help!

To Reiterate:
I set the teams
I have imported the script into WB
I made a new script
I pressed okay when i was finished with the changes and the script section.
I saved the map.
I closed world builder.

And yet still I must have done something wrong? What? I spent hours trying to figure this out!


@Myself: huuuurp you're a dum dum. Export the bloody script next time before you post, me.

Might post the files if I can confirm I did not screw over my game if you gents would like.

Posted by: ~Sab0taJ~ 18 Jan 2016, 12:03

_______________________________________________________

Script Properties

http://i.hizliresim.com/3YzQkO.png
_______________________________________________________
Script Conditions

http://i.hizliresim.com/XL6mQR.png
_______________________________________________________
Actions if true

http://i.hizliresim.com/kn6o3D.png
_______________________________________________________

Posted by: Arc 8 Mar 2016, 6:51

I thought they already do that automatically?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)