1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Negative resources

Discussion in 'World Editor Help Zone' started by UreDe4D, Feb 13, 2020 at 7:58 PM.

  1. UreDe4D

    UreDe4D

    Joined:
    Nov 4, 2006
    Messages:
    1,192
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Is it possible somehow to allow resources to be negative with triggers?

    i'm using this action:

    • Player - Add -5 to (Owner of (Killing unit)).Current gold


    But it does not go below zero. I basically want to allow players in certain situations to spend more gold than they have.
     
    Last edited: Feb 14, 2020 at 12:36 PM
  2. Pyrogasm

    Pyrogasm

    Joined:
    Feb 27, 2007
    Messages:
    3,648
    Resources:
    1
    Spells:
    1
    Resources:
    1
    No, resources are not designed to work that way. Use/make a custom resource, set the 'zero point' for gold to be 100 or something so 85g would be -15, or grant the necessary gold to use when at 0 but keep track of the total negative gold with a multiboard so players know what they're actually at when below 0.
     
  3. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    752
    Resources:
    0
    Resources:
    0
    With the custom UI stuff you can easily create your own Gold UI replacing the existing one.

    Or you could do what Pyro said about tracking the gold from 0 and then moving up from there. But instead of a multiboard you could create a text frame that displays "-" to the left of the player's gold frame while they have negative gold. Although, at that point since you're tracking the gold anyway I would just make it full blown custom UI.