Snippet Reputation

hunterrravyn

TH.net Regular
Reaction score
19
A reputation allows you to become allied or hated with "Factions", this could be used in a rpg... Not sure what else...

There can always be 4 factions the Neutral Passive, Neutral Hostile, Neutral Victem and Neutral Extra. Unless a player has another use for them.

The Setup Trigger, just to make them not automaticly attack you (make them all Neutral). Note:I know neutral passive is Already Neutral... not sure about the others.

Code:
E-Map initialization
C-
A-Player - Make Player 1 (Red) treat Neutral Hostile as an Neutral
  -Player - Make Neutral Hostile treat Player 1 (Red) as an Neutral
  -Player - Make Player 1 (Red) treat Neutral Victim as an Neutral
  -Player - Make Neutral Victim treat Player 1 (Red) as an Neutral
  -Player - Make Player 1 (Red) treat Neutral Extra as an Neutral
  -Player - Make Neutral Extra treat Player 1 (Red) as an Neutral

Gaining and loosing rep with Furbolgs (Neutral Passive), the way to gain rep with this faction is to kill Satyers (Neutral Hostile).

Code:
E-Unit - A unit Dies
C-(Owner of (Triggering unit)) Equal to Neutral Hostile
A-Set Furbolg_Reputation = (Furbolg_Reputation + 1)
  -Game - Display to Player Group - Player 1 (Red) the text: (Your Current Reputaion With Furbolgs is  + (String(Furbolg_Reputation)))

Loosing, there should always be large penalties for attacking an faction, especcially the one your trying to get rep with.

Code:
E-Unit - A unit Dies
C-(Owner of (Triggering unit)) Equal to Neutral Passive
A-Set Furbolg_Reputation = (Furbolg_Reputation - 5)
  -Game - Display to Player Group - Player 1 (Red) the text: (Your Current Reputaion With Furbolgs is  + (String(Furbolg_Reputation)))

Now when they get to certain amounts of "rep" you can make them allied or even give control of thier units.

Friendly With Furbolgs

Code:
E-Unit - A unit Dies
C-Furbolg_Reputation Greater than or equal to 10
A-Player - Make Player 1 (Red) treat Neutral Passive as an Ally
  -Player - Make Neutral Passive treat Player 1 (Red) as an Ally
  -Game - Display to Player Group - Player 1 (Red) the text: (You are now Friendly with the Furbolgs)

Unfriendly With Furbolgs

Code:
E-Unit - A unit Dies
C-Furbolg_Reputation Less than or equal to -10
A-Player - Make Player 1 (Red) treat Neutral Passive as an Enemy
  -Player - Make Neutral Passive treat Player 1 (Red) as an Enemy
  -Game - Display to Player Group - Player 1 (Red) the text: (You are now Unfriendly with the Furbolgs)

Note "Furbolg_Reputation" is a Integer Varible

View attachment 27048
 

PureOwnage

Minecraft Server OP, Inactive.
Reaction score
72
Umm...:
E-Unit - A unit Dies
C-Furbolg_Reputation Less than or equal to -10
A-Player - Make Player 1 (Red) treat Neutral Passive as an Enemy
-Player - Make Neutral Passive treat Player 1 (Red) as an Enemy
-Game - Display to (All players) the text: You are now Friendly with the furbolgs
Shouldn't it be enemies or something?
 

Sim

Forum Administrator
Staff member
Reaction score
534
This would actually be a system and not a snippet, but it is far from agreeing to the standards.

Submission rules said:
No pre-placed objects and preset functions, such as Player 1 (Red) and Peasant 0000 <gen>. Use (Owner of (Triggering unit)) and (Triggering unit) instead.
Submission Rules said:
Your system/snippet must be usable in anyone's map, without any restriction, whatever it may be.

Nobody could use your system right now for the above 2 reasons.

Graveyarded as editing this in order to work for every player in a game will be quite long.

If you ever come up with something, feel free to submit it again!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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