Infinite resources

S

sublime

Guest
Hi, I have not used the editor a lot, but I had the idea of editing maps to have infinite resources so I can have an endless war.

Is there a way to do this?
 

millzy

Ultra Cool Member
Reaction score
44
...just use greedisgood(9999999) cheat.... with 1m gold and lumber ud never use it all
 
S

sublime

Guest
Well, the thing is that I want the computers to have infinite resources as well.
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Set the gold mine's gold capacity to max, and with triggers refill them? Not sure if you can 'refill' them though.
 
S

Scroller

Guest
You can also use trigges which give players resources evey few seconds with a periodic event.Like so:
Code:
Resources
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        Set PlayerG = (All players)
        Player Group - Pick every player in PlayerG and do (Actions)
            Loop - Actions
                Player - Add 10000 to (Picked player) Current lumber
                Player - Add 10000 to (Picked player) Current gold
        Custom script:   call DestroyForce(udg_PlayerG)
Hope it helps ^_^
 

Cheesy

some fucker
Reaction score
95
Similar solution.

Trigger:
  • Endless Resources
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Players = (All players)
      • Player Group - Pick every player in Players and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) Current gold) Less than or equal to someValue
              • ((Picked player) Current lumber) Less than or equal to someValue
            • Then - Actions
              • Player - Add someValue to (Picked player) Current gold
              • Player - Add someValue to (Picked player) Current lumber
            • Else - Actions
      • Custom script: call DestroyForce( udg_Players )
 

Romek

Super Moderator
Reaction score
963
> call DestroyForce( udg_Players )
Bad idea. (All Players) doesn't leak. And destroying it will make it unusable.
 

cleeezzz

The Undead Ranger.
Reaction score
268
or you could use the event Player resource gold drops below 10000000
 

12sea21

New Member
Reaction score
5
you can make it:
every 0.1 seconds of gametime set all players gold to 1,000,000... works simply... does it not?
or
every 0.1 seconds of gametime set goldmine resources to blah blah.. can be 50 can be 40040
 

12sea21

New Member
Reaction score
5
Trigger:
  • Gold
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Player - Set Player 1 (Red) Current gold to 1000000
 

Viikuna

No Marlo no game.
Reaction score
265
luls. Why 0.01 period? Even if you use 10.0 sec period it would work just fine. No one can spend that much gold in 10 seconds.

Why dont you just make units and buildings ( and items and everything ) cost 0 gold and lumber ?
 

Cheesy

some fucker
Reaction score
95
> call DestroyForce( udg_Players )
Bad idea. (All Players) doesn't leak. And destroying it will make it unusable.

Sorry, haven't done much trigger work in a while. Fixed.

Trigger:
  • Endless Resources
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All Players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) Current gold) Less than or equal to someValue
              • ((Picked player) Current lumber) Less than or equal to someValue
            • Then - Actions
              • Player - Add someValue to (Picked player) Current gold
              • Player - Add someValue to (Picked player) Current lumber
            • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top