Author Topic: Coding help with CityRP  (Read 352 times)

I've never used Torque before, but there should be some logical way to learn how to edit and scripts on the CityRPGs themselves. Right now I'm looking for a way to make it possible to steal money from players. I need to do the following:

Quote
// if this it's true that players variable, "theif", is true

$CityRPG::jobs::thief = true;

// Then on click players pants
// Gain 5 cash, withdraw 5 cash from victim
// If victim has under 5 cash, gain that amount of cash, withdraw amount from victim
// When criminal steals $numberofcash, add an equal number of derimits to player

How would I go about making something like this? Where do I search for the information? I know that you don't know what "derimits" are called in the coding, but if you need to make an example just make something up.

I hope that you guys want to help me. I really want to make this work!

Thank you in advance.

I recommend that you get a basic grounding in torque by doing other, less complicated, projects first