HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to disable $ sharing ?

12-17-2002, 12:38 AM#1
Guest
Help i can't figure this out and can't find it anywhere. I'm editing an AOS cuz money sharing ruins the game :)
12-17-2002, 04:42 AM#2
Insaniteus
You know, I looked and there doesn't seem to be a trigger for this. I could (in theory) write an UGLY trigger for this, but it may not be worth it. Here is basically what I could do:

First, make an Integer Array variable Gold and set each player's gold to the Gold variable of their number every second or so.
then make an integer variable Moneysharing


event - periodic, every 0.01
conditions - Gold of player 1 not equal to Gold[1]
Actions - If Absolute value of gold of player 1 - Gold[1] = absolute value of gold of player 2 - Gold[2] than set Moneysharing to 2 else do nothing
----------- Repeat for EVERY player
----------- If Moneysharing = 2 then if gold of player 2 > Gold[2] then remove (gold of player 2 - Gold[2]) from gold of player 2 else remove (gold of player 1 - Gold[1]) from gold of player 1.
----------- repeat for EVERY player.

Repeat for lumber.

I'll breifl explain that for the Mathmatically challenged: If the money change of players 1 and 2 is the same, then that means they traded. The rest figures out who got the money gift and removes it from them.

This would make traded money disapear, so be sure to tell them not to trade! This could also lag the ell outta your computer etc and may not be worth doing, but it's the only solution I could think of.

-Insaniteus-
12-17-2002, 04:55 AM#3
Duh
I thought disabling/enabling Shared Resources is in Player Flags.
12-17-2002, 09:52 AM#4
3DGuy
i think you can toggle it on flags, NOT the gold sharing itself but the Aspect of Alliance...

Dig on.. :gsmile:
12-17-2002, 12:00 PM#5
ph33rb0
AOS is just fine with money sharing.
12-17-2002, 09:11 PM#6
Duh
Here's the Trigger:

Action:
Game - Set Map Flag

Set Restrict Trading Resources to Allies to On