Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Well I got my thief system working...
Well I got my thief system working...
2001-10-21, 2:53 PM #1
but I'm having trouble with printing something...

I want this to print the current value of loot you have.

Code:
   BinValue = GetInv( player, bin);

   jkStringClear()
   jkStringConcatAsciiString("You now have ");
   jkStringConcatInt(BinValue);
   jkStringConcatAsciiString(" loot.");
   jkStringOutput(-3, -1);


that should print "You now have (xx)loot". It does that alright but it have some kind of screwy loop. When you pick up the second stealable item it says "You now have 30 loot You now have 60 loot. " instead of just "You now have 60 loot." it keeps going like that EG: "You now have 30 loot You now have 60 loot You now have 90 loot You now have 120 loot" ect.

HELP
Save a tree, Kill a beaver!
2001-10-21, 2:56 PM #2
Put a semicolon after jkStringClear()
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2001-10-21, 3:03 PM #3
thank you! I forgot that! well it works now, but I just discovered this part of the code isn't working correctly.

Code:
 // Checks to see if the player has 500 loot. If he does the objective is completed.
   If (GetInv(player, bin) = 500.0)
   {
		player = GetLocalPlayerThing(); 
            SetGoalFlags(player, 1, 2); 
   }
   else
   {
		player = GetLocalPlayerThing(); 
            SetGoalFlags(player, 1, 1); 
   }		


it's setting the objective as complete when you get the first item not when you have 500 loot. help...again! [http://forums.massassi.net/html/smile.gif]
Save a tree, Kill a beaver!
2001-10-22, 4:57 AM #4
If (GetInv(player, bin) = 500.0)

should be

If (GetInv(player, bin) == 500.0)
-Hell Raiser

↑ Up to the top!