Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding > Released Projects

Notices

Released Projects Share your finished/beta modifications with the community!

Reply
 
Thread Tools Display Modes
Old 12-14-2011, 10:54 PM   #31
Xbye

Xbye's Avatar
 
Join Date: Jun 2010
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I modified the script to my liking a bit, since I'm very picky and like to "Personalize" my shit.

Someone asked me to post my finalized script that I'm now using. It hasn't been 100% tested but should be working just fine.
HTML Code:
If [_eo_flood > 0] "goto EOF"

Action ToggleScoreOverlay 1
Sleep 10
Action ToggleScoreOverlay 0

If #StringEquals(|#LobbyTeamAverageSF0|#,--)# goto ASK

CreateVar int _SF0 #LobbyTeamAverageSF0#
CreateVar int _SF1 #LobbyTeamAverageSF1#
CreateVar int _LV0 #LobbyTeamAverageLevel0#
CreateVar int _LV1 #LobbyTeamAverageLevel1#
CreateVar int _TPH #ScoreboardNumPlayers0#
CreateVar int _TPB #ScoreboardNumPlayers1#
CreateVar int _TEH #TeamExperience0#
CreateVar int _TEB #TeamExperience1#
CreateVar int _CMHSF #ScoreboardCommanderSF0#
CreateVar int _CMBSF #ScoreboardCommanderSF1#
CreateVar int _IsCommH #StringLength(|#ScoreboardCommander0|#)#
CreateVar int _IsCommB #StringLength(|#ScoreboardCommander1|#)#

    Set _CMH #ScoreboardCommander0#
    Set _CMB #ScoreboardCommander1#
    Set _TAdvName "^cNo One^940"
    Set _TAdvNumb "NILL"
    Set _bclr "^470"
    Set _hclr "^775"
    Set _dclr "^940"
    Set _CommanderHuman "$_hclr$$_CMH$"
    Set _CommanderBeast "$_bclr$$_CMB$"
    Set _TAdvNumb [_SF0 - _SF1]
    Set _ExpAdvNumb [_TEH - _TEB]
    Set _ExpAdvNumbName "NILL"
    
    If [_IsCommH < 1] "Set _CommanderHuman ^940NoComm"
    If [_IsCommB < 1] "Set _CommanderBeast ^940NoComm"
    If [_ExpAdvNumb < 0] "Set _ExpAdvNumb [0 - _ExpAdvNumb]"
    If [_TAdvNumb < 0] "Set _TAdvNumb [0 - _TAdvNumb]"
    If [_SF0 > _SF1] "Set _TAdvName $_hclr$Humans^y"; Else If [_SF0 < _SF1] "Set _TAdvName $_bclr$Beast^y"
    If [_TEH > _TEB] "Set _ExpAdvNumbName $_hclr$Humans^y"; Else If [_TEH < _TEB] "Set _ExpAdvNumbName $_bclr$Beast^y"

    
Set _msg1 "^y{$_CommanderHuman$^y(^c$_SF0$^y) vs $_CommanderBeast$^y(^c$_SF1$^y)"
Set _msg2 " ^g+$_TAdvNumb$ ^y[$_TAdvName$]}"
Set _msg3 "^gPlayers^y: [$_hclr$$_TPH$^y/$_bclr$$_TPB$^y]"
Set _msg4 "^gEXP^y: [^c$_TEH$^y/^c$_TEB$^y] ^g+$_ExpAdvNumb$ ^y[$_ExpAdvNumbName$]"

    If [(_TEH + _TEB)<1] "Set _msg4 "
    If [_TAdvNumb < 1] "Set _msg2 }"
    
goto FINAL

@ASK
    Set _msg1 "^yPlease tell me the SF."
    Allchat "$_msg1$"
    goto EOF

@FINAL
    Allchat "$_msg1$$_msg2$"
    Allchat "$_msg3$ $_msg4$"
    CreateVar int _eo_flood 1
    Sleep 500
    Set _eo_flood 0
    
@EOF
Copy Paste that script into your ".CFG" in scripts. Have fun.

Link to colors (To see for yourselves, without having to go in-game and do each number individually.):
http://www.newerth.com/smf/index.php/topic,1562.0.html
http://groentjuh.eu/savagecolors/

Last edited by Xbye; 12-16-2011 at 11:23 PM.
Xbye is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 06:53 PM.