Trigger disabling trade?

I_RULE_YOU

New Member
Reaction score
34
What would a trigger that disabled trade for all players for the first 30 seconds of the game look like? + Rep is answered. :D
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
i would do it like that:
Trigger 1:
Code:
Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to 10, do (Actions)
                    Loop - Actions
                        Player - Make (Player((Integer A))) treat (Player((Integer B))) as an Neutral
Trigger 2:
Code:
Untitled Trigger 001 Copy
    Events
        Time - Elapsed game time is 30.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to 10, do (Actions)
                    Loop - Actions
                        Player - Make (Player((Integer A))) treat (Player((Integer B))) as an Ally
 

I_RULE_YOU

New Member
Reaction score
34
Ok ok, Im noob at triggers, and heres where im stuck:

Code:
Disabling of 2K hack
    Events
        Map initialization
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to 10, do (Actions)
                    Loop - Actions


This is for the first trigger posted. Your gonna get some + rep for this Accname if I get this to work :thup:
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
this makes all player from player 1 till player 10 treat each other as either allied or neutral, you can change the loops for every other player number. for example 'For each integer A from 1 - 6' for only the first 6 players. (red - orange)
 

I_RULE_YOU

New Member
Reaction score
34
Yes, I got that, but I dont understand how to make thisL
Code:
 Player - Make (Player((Integer A))) treat (Player((Integer B))) as an Neutral

I cant find how to make this part. Again, I'm very noob at triggers so work with me here :D
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
ok.
'player - set alliance' looks like this:
Code:
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision
now, change the 'Player 1 (Red)' part by clicking it with left mouse click to conversion - Convert player index to player, should look like this:
Code:
Player - Make (Player(1)) treat Player 2 (Blue) as an Ally with shared vision
now change the (1) int '(Player(1))' to For loop Integer A so it looks like this:
Code:
Player - Make (Player((Integer A))) treat Player 2 (Blue) as an Ally with shared vision
 

I_RULE_YOU

New Member
Reaction score
34
Ok ok, the triggers are Identical except for this one factor:

Code:
Time - Elapsed game time is 30.00 seconds

This is the only othet thing I need help with, how do I get it like this?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
well... New Event -> Time -> Time Elapsed -> Elapsed game time is 30.00 seconds
 
Reaction score
333
I think under Game - Map Flag there is an option to enable/disable trading. I don't have the world editor open at the moment, but I know this function exists somewhere.
 

I_RULE_YOU

New Member
Reaction score
34
well... New Event -> Time -> Time Elapsed -> Elapsed game time is 30.00 seconds

I tried this already, but instead it says:

Code:
Time - Elapsed game time is (30.00 + 0.00) seconds

When I tested the game with it like this, what It did was make everyone in the game, originally enemy or not, an ally.

I think under Game - Map Flag there is an option to enable/disable trading. I don't have the world editor open at the moment, but I know this function exists somewhere.

Can this be done for a certain time though?
 

UndeadDragon

Super Moderator
Reaction score
447
I tried this already, but instead it says:

Code:
Time - Elapsed game time is (30.00 + 0.00) seconds

You are using an arithimetic addition. Instead, just type 30 in the box at the bottom where it asks you to input a value.
 

Vestras

Retired
Reaction score
248
At map init, do this:

Code:
Game - Set Restrict resource trading to allies to Off

and at elapsed time 30 do this:

Code:
Game - Set Restrict resource trading to allies to On
 

I_RULE_YOU

New Member
Reaction score
34
Alright, Accname's trigger allowed me to trade to enemies, and thats all. Did nothing else.

MRC-ELSKER's Trigger allowed me to trade to allies and enemies for 30 seconds, then just allowed me to trade to allies. I did not know atrigger disabling trade would be this complicated. Tell me if I have any noticable problems with this trigger guys:

Code:
Disabling of 2k Hack
    Events
        Map initialization
    Conditions
    Actions
        Game - Set Restrict resource trading to allies to Off


Code:
Disabling of 2k Hack B
    Events
        Time - Elapsed game time is 30.00 seconds
    Conditions
    Actions
        Game - Set Restrict resource trading to allies to On
 

meehael

New Member
Reaction score
6
Try this. This is the simplest.

Code:
Disabling of 2k Hack
    Events
        Map initialization
    Conditions
    Actions
        Game - Set Lock resource trading to On


Code:
Disabling of 2k Hack B
    Events
        Time - Elapsed game time is 30.00 seconds
    Conditions
    Actions
        Game - Set Lock resource trading to Off
 

Axtyler#1

New Member
Reaction score
1
lol

I think under Game - Map Flag there is an option to enable/disable trading. I don't have the world editor open at the moment, but I know this function exists somewhere.

Hey i kno you posted this a longggg time ago but how do you make it so that allies cant trade resources with each other?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top