Dear friends, i am having a problem setting up a giveaway using custom rules on sgtools.

I want to giveaway the UNREAL DEAL PACK, which includes 5 games.
http://store.steampowered.com/sub/683/
I made the GA here in SG and then I went to the SGtools,and created a custom rule on the GA. And I gave out the sgtools link.
i found the IDs here https://steamdb.info/search/?a=app&q=unreal

this is the custom rule:

not (owned_games in 13230 or owned_games in 13250 or owned_games in 13200 or owned_games in 13210 or owned_games in 13240)

in order to prevent someone to enter if having at least one of the 5 games, but i might failed to do that,because i found out on the SGtools that users who has at least one of that games can see the GA link.

Can you please help me in order to setup the rule correctly and prevent such entries?

Thank you in advance.

6 years ago

Comment has been collapsed.

AFAIK those "or"s should be "and"s if I am understanding it correctly.

6 years ago
Permalink

Comment has been collapsed.

i've changed to "and" but NOPE..
People can see the SG link with unreal games in their account.

6 years ago
Permalink

Comment has been collapsed.

Now that I take another look yea "or" should be fine too. The structure of the rule got me confused for a minute.

6 years ago
Permalink

Comment has been collapsed.

I think you have the evaluation backwards? Try "13230 in owned_games", etc.

Also, the "or" operators are fine for what you're trying to do.

6 years ago
Permalink

Comment has been collapsed.

the line i got it's like the sgtool created by itself tho.

so you mean to change to that?
not (13230 in owned_games or 13250 in owned_games or 13200 in owned_games or 13210 in owned_games or 13240 in owned_games)

let me try it.

6 years ago
Permalink

Comment has been collapsed.

Maybe this? Simplier to understand

owned_games not in 13230 AND owned_games not in 13250 AND owned_games not in 13200 AND owned_games not in 13210 AND owned_games not in 13240

6 years ago
Permalink

Comment has been collapsed.

AND isn't the right operator tho.
because i want either that or that to be applied..

6 years ago
Permalink

Comment has been collapsed.

You don't want people to enter if they have at least one of the 5 games? So you allow people to enter only if they own none of the games. → 13230 not in owned_ga AND 13250 not in owned games etc.

no?

6 years ago
Permalink

Comment has been collapsed.

you are correct my friend,that is what i want to do.
But now i'm confused..
What is the correct script that i need to write? the 1st line you gave?

6 years ago
Permalink

Comment has been collapsed.

yep, should be the first. And you can add more filter if you want with AND operator

6 years ago
Permalink

Comment has been collapsed.

I dont know if minus is needed and or if AND is working

6 years ago
Permalink

Comment has been collapsed.

Another example sometimes usefull: last_multiple_win <= date_modify(date('now'),'-1 years') and pass_activated_rule == true and trade_ban == false and community_ban == false

With the first part you allow people with multiple wins except if the multiple wins was this last year

6 years ago
Permalink

Comment has been collapsed.

good to know that rule! ty

6 years ago
Permalink

Comment has been collapsed.

It makes sense it that rule tho. Because if I understand correctly you don't want anyone who own any of the games to get the link. Therefore if someone only owns 13230 for example it will go:
False and true and true and true and true = false
and if they dont own 13230:
true and true and true and true and true = true

With or you would get true with both. That what got me confused in my 1st comment in the first place.

6 years ago
Permalink

Comment has been collapsed.

Either "not (13230 in owned_games or 13250 in owned_games or 13200 in owned_games or 13210 in owned_games or 13240 in owned_games)" or "13230 not in owned_games and 13250 not in owned_games and 13200 not in owned_games and 13210 not in owned_games and 13240 not in owned_games" should work. AppID must be in front.

6 years ago
Permalink

Comment has been collapsed.

If you're unsure about a custom rule you can ask in this thread and the dev of SGTools, Knsys will help you out. :-)

6 years ago
Permalink

Comment has been collapsed.

thx i didnt know about it..i will keep in mind :)

6 years ago
Permalink

Comment has been collapsed.

It's the official SGTools thread on SG where you can ask and get help from the dev and users and where you also can report invalid entries. :-)

6 years ago
Permalink

Comment has been collapsed.

thanks again!!
i will keep that in mind!!
bookmarked already :))

6 years ago
Permalink

Comment has been collapsed.

ok guys..i have applied the rule like this:

not (13230 in owned_games or 13250 in owned_games or 13200 in owned_games or 13210 in owned_games or 13240 in owned_games) ,let me try if can be seen now

6 years ago
Permalink

Comment has been collapsed.

You don't need to wait just to test it. Try to enter this, you shouldn't be able to.

6 years ago
Permalink

Comment has been collapsed.

yep i can see that,and it doesnt allow me.
Your account failed to pass custom rule: 271590 not in owned_games and 13210 not in owned_games

6 years ago*
Permalink

Comment has been collapsed.

Aye, just tested both variants with Thexder so either one I've listed here will work. I'm going to remove the test now that you've read this.

6 years ago
Permalink

Comment has been collapsed.

thank you for your help :)
i will save the topic for reference :)

6 years ago
Permalink

Comment has been collapsed.

hmm.. i'm not sure it is right. I own none of them (as I don't like unreal) and I still couldn't get the link... failed custom rule

Oh wait, you didn't use the 5 games from unreal... I do have GTA V

6 years ago*
Permalink

Comment has been collapsed.

Ok, I would be a good sample for you -- out of those 5, I have 1 game (UT Black) so, if I understand you right, I should NOT be able to enter this GA.

But, huh, where is the SGTools link so I can be dutifully rejected? :D

Cheers!

6 years ago
Permalink

Comment has been collapsed.

Try to enter this.

6 years ago
Permalink

Comment has been collapsed.

Ok, I tried... and FAILED!!

Since I do not have GTAV, but I do have UT3 BLACK, I say your rule was impeccable! :D

6 years ago
Permalink

Comment has been collapsed.

Great! I've changed it to the other variant, can you test again?

6 years ago
Permalink

Comment has been collapsed.

Yes, DENIED again! But since I do have only one of them, it makes sense.

Wait, are my Masochistic tendencies showing?

6 years ago
Permalink

Comment has been collapsed.

Thanks for volunteering! :)

In the name of science, Masochism can be a good trait. ;)

6 years ago
Permalink

Comment has been collapsed.

View attached image.
6 years ago
Permalink

Comment has been collapsed.

Oh, have you watched this? It was popular back then.

6 years ago
Permalink

Comment has been collapsed.

Yep. ;D

6 years ago
Permalink

Comment has been collapsed.

also failed, owning none of those games.

Failed as I have GTA V.

I thought this was the link you were using for the 5 unreal games,

6 years ago*
Permalink

Comment has been collapsed.

Thanks for offering your testing services! But yeah, that test was personalized to Thexder and we've already completed both tests. There's no need for volunteers anymore. ;)

6 years ago
Permalink

Comment has been collapsed.

Guys i think it is working, i've asked a friend who has at least one of the unreal games and can't see the SG link.
Thank you all for the assistance .

6 years ago
Permalink

Comment has been collapsed.

This is not a bug report of SG neither suggestion to SG and SG is not affiliated with SGTools.

6 years ago
Permalink

Comment has been collapsed.

Closed 3 years ago by xtrmsnpr.