Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Joint Operations (https://novahq.net/forum/forumdisplay.php?f=178)
-   -   AI Accuracy Wac Script (Difficulty Adjustment) (https://novahq.net/forum/showthread.php?t=62906)

Carcharadon 09-15-2023 05:33 AM

AI Accuracy Wac Script (Difficulty Adjustment)
 
Hi there,

since i saw a lot of Maps made the same mistake about the AI Accuracy Wac Script, i thought i should share how this is done correctly.

A Difficulty Adjustment/AI Accuracy Wac Script looks like this:

//Difficulty Adjustment


if (humans == 1) then accuracyspread = 15
elseif (humans == 2) then accuracyspread = 10
elseif (humans == 3) then accuracyspread = 7
elseif (humans == 4) then accuracyspread = 4
elseif (humans >= 5) then accuracyspread = 1
endif


This script only works if both Accuracy Values for each Enemy/AI is below 100! Example: Accuracy 1 = 70, Accuracy = 90.

I’ve played the last Months a lot of Maps that had this AI Setup: Accuracy1 = 75 & Accuracy2 = 100. Means, there is no Difficulty Adjustment in-Game because of the Accuracy2 100 Value! With Accuracy2 = 95 it would work just fine.

I hope, this is Helpful for new Maps in the Future or if some Mapmakers would like to adjust there old(er) Maps.


Cheers
Ennio


All times are GMT -5. The time now is 08:31 PM.

Powered by vBulletin®