What does trigger boolen do?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
boiled_vodka
Member
Posts: 83
Joined: May 18th, 2009, 1:36 am

What does trigger boolen do?

Post by boiled_vodka »

Is this anti cheat trigger?
I'm testing sp with cot rpg :/
I got rid of 2 sp triggers and now removing anti cheat part.
If I don't remove this boolen triggers, would JJCP still works when entering cheat commands? Or to use cp, do I must delete this or change 'return to boolen' to 'return to nothing'

Here's part of triggers remove&renaming.
It was like this 1st time
function Trig_Anti_single_player1_Func001Func003Func004002 takes nothing returns boolean
Then I removed the ones below it and ending as
'Blablabla
Endfunction'
and changing boolen to nothing
function Trig_Anti_single_player1_Func001Func003Func003002 takes nothing returns nothing
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: What does trigger boolen do?

Post by Risen »

A boolean is something that is either true or false.
Spoiler:

Code: Select all

globals
boolean cheating? = false
endglobals

function catchcheater takes nothing returns nothing
call scanforcheater()
if detectedcheater then
set cheating? = true
endif
endfunction

function anticheat takes nothing returns nothing
if cheating? == true then
call UBERPWN HAXOR!
endif
endfunction


Just find whatever boolean it sets, and change it to the opposite that is already is.
Image
Wanna learn to hack maps? --> Guide
hax_at_school
Newcomer
Posts: 2
Joined: October 27th, 2009, 4:44 pm

Re: What does trigger boolen do?

Post by hax_at_school »

boolean on jass is much like "Condition" in GUI..

if u delete the inside of a function but it has "returns boolean" but it wont have any return in it.. it will make a syntax error.

same if u change it to "returns nothing" but have a return command in it.. coz u said the function returns nothing..