General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
theres a 3 option in the player list i want a condition where ai will use cheat after my attack on them..
there are 3 option in choose player name <local player> - is this the correct one? <this player> <the players enemy>
|
|
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
You are the <Local Player> Code:*** IF ***
Team 'teamai' has been attacked by Player '<Local Player>'
*** THEN ***
Play Sound 'AirRaidSiren'.
|
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
1 user thanked UTD^Force for this useful post.
|
|
|
Colonel Joined: 10/13/2008(UTC) Posts: 782
Thanks: 7 times Was thanked: 201 time(s) in 147 post(s)
|
Don't forget that <Local Player> will desync the game when there is more than 1 human player.
|
1 user thanked i^love^mixery for this useful post.
|
|
|
Major Joined: 3/22/2017(UTC) Posts: 278 Location: Some where on Earth
Thanks: 123 times Was thanked: 69 time(s) in 59 post(s)
|
<this player> <the players enemy>
are of course set in player's section in the scripts , i mean for example if the script is in "GLA/Hunt" <the players enemy> will work when GLA's enemy is doing whatever you set the condition for {usually works for "Local Player" or to trigger "Local Player" but not a good option for multiplayer!} |
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel Static : Launch Delayed Reason : Uncool Terrain - Old Logic in use - Lack of Performance Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300% |
1 user thanked Unknown Editor for this useful post.
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
Originally Posted by: i^love^mixery Don't forget that <Local Player> will desync the game when there is more than 1 human player. so can i use the alternative like player0 ;; is that better than local player |
|
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
Originally Posted by: adrianemapmaker Originally Posted by: i^love^mixery Don't forget that <Local Player> will desync the game when there is more than 1 human player. so can i use the alternative like player0 ;; is that better than local player In a multiplayer match, yes. |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
|
|
|
Private Joined: 6/11/2017(UTC) Posts: 16 Location: Viipuri Thanks: 6 times Was thanked: 9 time(s) in 4 post(s)
|
a question for the mappers. how in the single player mission to force the AI to build in buildings (not just spawn in waypoint) teams? script "Team-AI-Start building a team" not work -_- what i did:
script 1: condition- timer "xx" has expired action- start building team "xx" script 2: condition- "Team-Exists-Team (xx) has been created. action- "Scripting-Timer-Seconds countdown timer -- set" (add new timer "yy" 15 seconds.) "Scripting-Script-Disable script" disable script 01 "Team-Transport-Transport-automatically load." (team "xx" it is 1 technical and 5 terrorists) script 3: condition- timer "yy" has expired action- "Team-Attack-Set to attack- another team" team "xx" begin attack on team "zz"(player) "Scripting-Script-Disable script" disable script 02 "Scripting-Script-Enable script" enable script 04 script 4: condition- "Team-Destroyed-Team "xx" has been destroyed action- start building team "xx" "Scripting-Script-Enable script" enable script 02
AI have AD and barracs ofk. team "xx" in team list have this settings: home position "some waypoint" production condition: <none> execute associated actions (a tick is not worth it) priority 10 build for 0 frames succes/failure priority in/decrease 0 unit tipe min/max 1/1 tech and 5/5 terrors automatically reinforce whenever possible (checkmarked) team members are AI recruitable (checkmarked) team created once and only once (a tick is not worth it)
i think it must by work... but not work >.<
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
Firstly, you should really have created a new topic for your question. Secondly, have you added the script that says something along the lines of 'this team is allowed to build' ? I seem to remember having to add that before the ai would build anything. |
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
Did you enable the AI to build? Coz every single player maps have the disabled ai- you need to enable them via script.. As ea did |
|
|
|
|
Private Joined: 6/11/2017(UTC) Posts: 16 Location: Viipuri Thanks: 6 times Was thanked: 9 time(s) in 4 post(s)
|
yes, script 0 besides timer "xx" including action scripts AI build buildings and AI build units. hmm, no one never did it? Edited by user Monday, March 26, 2018 1:46:12 PM(UTC)
| Reason: Not specified
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
|
|
|
|
|
Private Joined: 6/11/2017(UTC) Posts: 16 Location: Viipuri Thanks: 6 times Was thanked: 9 time(s) in 4 post(s)
|
pass in pm. in WB, in scripts, see folder PlayerGLA
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
What is the specific team you want to build |
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
Is this the bomb truck team? |
|
|
|
|
Private Joined: 6/11/2017(UTC) Posts: 16 Location: Viipuri Thanks: 6 times Was thanked: 9 time(s) in 4 post(s)
|
Noup, its "teamooo1" (see in gla team teams). Bomb trucks its just another experiment, but he not work too (after drop, he not go to hunt). And car-scrap after some timer, must hunt too, and too not hunt. Idk - maybee just bug in this ma
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
Sorry for late reply got busy making maps for contra mod Also I forgot that I make a tutorial for this before Link:http://www.cnclabs.com/forums/cnc_postst16829_Mapping-And-Some-Modding-Tutorials---By-Adriane.aspx Guys pls share this link for those who want tutorials in the future Edited by user Monday, April 2, 2018 6:14:12 PM(UTC)
| Reason: Not specified |
|
|
|
|
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.