Disable Cheats and making minimum 2 players

P

PeppeJ

Guest
Hi it is me again

Ive been trying to make my RPG have at least 2 Players (User Controlled) to start the map

but it wont work how ?

event
Time - Every 1.00 seconds of game time
condition
action
If ((Player 2 (Blue) slot status) Equal to Is unused) then do (Game - Defeat Player 1 (Red) with the message: NO PLAYERS!) else do (Do nothing)

And is there anyway to disable Cheats ?? If then how ?
 
S

Sunny_D

Guest
i suggest you use the event "Player leaves"

Code:
Event
    Player - Player 1 leaves the game
    Player - Player 2 leaves the game
    ... etc...
Condition
Action
    Set tempgroup = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))   //player group Variable
         if
            Number of players in tempgroup < 2
         then
            -Defeat all-
         else
    Custom script: call DestroyForce (udg_tempgroup)

EDIT: changed trigger a little. in your case its better to solve it this way


btw, you cant disable cheats nor detect its activation within chat. you can do some tricks to counter some cheats - search the forum for cheats or disable cheats etc... there are many related threads existing already :)
 
P

PeppeJ

Guest
Sorry if i have not been so clear but i mean you need atleast 2 players to start the map.
 
S

Sunny_D

Guest
then its almost the same. change the event to "time elapsed = 1 sec" or something and use the actions as shown.
 

Waaaaagh

I lost all my rep and my title being a jerk
Reaction score
70
Actually, disabling cheats is simple. Editing 'Cheats.j' will do the job for you ;)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Editing 'Cheats.j' will do the job for you

No, it won't...


Some other way to see "multi" player:

Custom script: if bj_isSinglePlayer then
Game - Display to (All players): you're playing with yourself... you shouldn't do that.
Custom script: endif
 

exge

New Member
Reaction score
15
Game - Display to (All players): you're playing with yourself... you shouldn't do that.

ok, that just sounds ... wrong .. lol

im working on a anti-cheat system now ... currently it can detect
whosyourdaddy
thereisnospoon
greedisgood
leaftittome
blocks iseedeadpeople
 
P

PeppeJ

Guest
LOL NONE OF YOUR WORKED ! i made it my self look how simple :

Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If ((Player 2 (Blue) controller) Equal to User) then do (Do nothing) else do (Game - Defeat Player 1 (Red) with the message: NO PLAYERS)
 

killbuzz

Member
Reaction score
9
Cheats

Couldn't you just make a trigger:
event-
player 1 types a chat message equal to whosyourdaddy (name of the cheat)

player 2 types a chat message equal to whosyourdaddy (name of the cheat)

actions - do nothing

I'm not sure if it will work but u could try it. Also you would need the event for all the cheats and all the players.
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
Well, you can do that, and you can convert the integer they plugged in, using Substrings. So like "SubString(Entered Chat String, 7, Length of (Entered Chat String)" and you take that and convert that into an integer and you take that value away from that player's gold.

Just a thought. Too much work for cheats though. What you can also do is have a variable called "CheckNo (Integer)" and you use a loop to check how many players are controllers. If they are, you add +1. Then after that's done, you can run a trigger ONCE to see if that number is above 2. (A player should still be able to play if everyone left in a Bnet game.)
 

Matemeo

New Member
Reaction score
20
LOL NONE OF YOUR WORKED ! i made it my self look how simple :

Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If ((Player 2 (Blue) controller) Equal to User) then do (Do nothing) else do (Game - Defeat Player 1 (Red) with the message: NO PLAYERS)

The problem with this, is that its going every 1.00 second, If your making an big rpg, having stuff running like this in the background is just using up your resources, (and the resources of lower end machines). Should check how many players are playing after someone leaves, and 1 second into the game. Just once though! Not 60 times a minute.

EDIT: also, what is no one wants to be blue? I prefer teal :)
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
True, your trigger checks that if there is no player blue, Red gets a message of NO PLAYERS

yet, if there is no blue, nor red, nothing happens :D

Do this:

E - Player leaves
A - Set PlayerNum = Number of players controlled by User
If PlayerNum is equal to 1, then defeat all players with message... else do nothing

That way if a player leaves, it will check it they are alone, and defeat them to prevent them from playing. Also, if you like, you can also copy and paste the trigger and change the event to Map Init

(Freehand GUI triggers >_< )
 

denmax

You can change this now in User CP.
Reaction score
155
Code:
Custom script: if bj_isSinglePlayer then
[B]Game - Defeat (All Players) saying: If you want to play, do it in multiplayer to prevent cheating[/B]
Custom script: endif

Well, I thought this would work, it would defeat the person when he is playing in single player

But, you must also think that you have to disable the trigger first before adding those Custom scripts or it will crash your WE.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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