Well, I did get it functional for the most part. Thanks for everyone's help. Here is the code thusfar, I need to do some more tweaking to it...
Code: Select all
use uo;
include "../pkg/character/orders/orders";
program honor ( player, parms )
var yourvirtue := GetObjProperty (player, "virtue" );
var yourhonor := GetObjProperty ( player, "honor" );
if ( !yourhonor )
yourhonor := {};
yourhonor[1] := yourvirtue;
yourhonor[2] := 0;
yourhonor[3] := 0;
SetObjProperty ( player, "honor", yourhonor );
endif
SendSysMessage ( player, "You have " + CStr ( yourhonor[2] ) + " honor." );
endprogram
What it is doing, is if I use my GM chars to add honor to anyone, which is the only way I've tested it thusfar... When you use the command .honor it shows how much honor the character has, plus what it was given...
So If I give a character 3000 honor points, then give them another 500, what appears on screen is... "You have 3000 , 500 honor" and so forth... Any suggestions? I'm assuming I have my array a bit scewed perhaps? Maybe it's honor3 that is the total honor... and 2 is the amount that has been given. I'll have to run through my order scripts again to be certain... Thanks again!