I thought about doing it, but it just seems so simple that maker will come with the un-approved hammer
anyway there is not much more to add that I can think of.
maybe restet rep, remove faction, maybe a remove rep (you can just use -5 in the add function tho)
the only "advanced" thing would be to add ranks. However I would need a second hashtable for that
edit: or maybe not. I guess I could use 12 + rank id as a key when I store the rank(s)
remove faction demo
Events
Player - Player 1 (Red) types a chat message containing remove as An exact match
Conditions
Actions
Set RS_id = 1
Set RS_name[RS_id] = <Empty String>
Custom script: call FlushChildHashtable(udg_RS_hash, udg_RS_id)
get rep demo
Events
Player - Player 1 (Red) types a chat message containing get rep as An exact match
Conditions
Actions
Set RS_id = 1
Set RS_player = 1
Custom script: call BJDebugMsg(GetPlayerName(Player(udg_RS_id - 1)) + " currently have " + I2S(LoadInteger(udg_RS_hash, udg_RS_id, udg_RS_player)) + " with " + udg_RS_name[udg_RS_id])
reset rep demo
Events
Player - Player 1 (Red) types a chat message containing reset rep as An exact match
Conditions
Actions
Set RS_id = 1
Set RS_player = 1
Custom script: call SaveInteger(udg_RS_hash, udg_RS_id, udg_RS_player, 0)
add rank
Events
Player - Player 1 (Red) types a chat message containing add as An exact match
Conditions
Actions
Set RS_id = 1
Set RS_point = 50
Custom script: call SaveInteger(udg_RS_hash, 12 + udg_RS_id, udg_RS_player, udg_RS_point)
update rank
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set RS_id = 1
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
Loop - Actions
Set RS_player = (Player number of (Picked player))
Custom script: if LoadInteger(udg_RS_hash, udg_RS_id, udg_RS_player) >= LoadInteger(udg_RS_hash,12 + udg_RS_id, udg_RS_player) then
Custom script: if udg_RS_id != udg_your_rank_variable and LoadInteger(udg_RS_hash,12 + udg_RS_id, udg_RS_player) > 0 then
Game - Display to (All players) the text: reached rank 1
Set your_rank_variable = 1
Custom script: endif
Custom script: endif