• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

The Hive Workshop Rules

Status
Not open for further replies.
Level 36
Joined
Jul 1, 2007
Messages
6,677
It's the THW Rules jass trigger! (or auto-negrep trigger ;P)

JASS:
function Conditions takes nothing returns boolean
return GetPostBreaksRules(hive_rules)
endfunction

function Actions takes nothing returns nothing
local player user = GetPostingUser()
local integer warn = GetUserWarning(user)

if(warn < 3) then
call SetUserWarning(user) = warn + 1
call SetUserReputation(user, (GetUserReputation(user))-1)
else if(GetUserInfraction(user) < 10) then
call SetUserInfraction(user, (GetUserInfraction(user))+1)
else
call BannadarFunction(user, PERMA_BANNADAR)
endfunction

//===================================================
local trigger trig = CreateTrigger()
call TriggerAddEvent(trig, USER_POSTS_IN_THREAD)
call TriggerAddCondition(trig, condition(Conditions))
call TriggerAddAction(trig, function Actions)
 
Level 13
Joined
Jan 18, 2008
Messages
956
If Hive worked on Jass, they would surely have a function like that D: (Make it fail, just in case...)
 
Last edited:
Status
Not open for further replies.
Top