Author Topic: Help with making a Roleplay Token system?  (Read 704 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Help with making a Roleplay Token system?
« on: August 31, 2010, 05:07:22 am »


               My idea was to make a Roleplay Token system, basically make an item that stacks onto the player and the DM can grand the PC like -points- they can earn for good Roleplay.

Seen that on a few servers and I think that would be actually handier then simply handing them some XP and gold for it.

Though I am at my wits end trying to create something like that....anyone has a clue?
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #1 on: August 31, 2010, 05:37:12 am »


               So basically, your wanting Stackable Miscellaneous Small items which represent something???



Can you be a little more detailed about what these items do?
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #2 on: August 31, 2010, 11:26:06 am »


               yes its going to be an item I.E. A pouch (pouch cannot be opened) and when a DM thinks that a player is having a good Roleplay so the DM will reward with a Roleplay point.

So basically an item that counts the points the DM gives to the player.

So the DM uses a widget to add a point to the roleplay bag.

Also what I have tried to do is to make it so that players can return those points for certain things (so a DM can take the points away from the roleplay bag)

I hope I gave an good example of what I want to have
               
               

               


                     Modifié par Who said that I, 31 août 2010 - 10:26 .
                     
                  


            

Legacy_C Writer

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #3 on: August 31, 2010, 11:42:03 am »


               So you want the PC to be able to 'use' this item for it to tell them how many roleplay points they have? What I'd personally do is have a local integer which you add to whenever they gain points and give the item the unique power self only property. Then, when they use the item, a line spoken by the PC says how many points he/she has. You could get the PC to say it with something like this:

void main()
{
     object oPC = GetItemActivator();

    if (GetTag(GetItemActivated()) == "ITEM_TAG_HERE")
    {
        AssignCommand(oPC, SpeakString("You have " + IntToString(GetLocalInt(oPC, "RoleplayPoints")) + "roleplay points."));
    }
}

You could then increase or decrease this integer with something like this:

void main()
{
    object oPC= GetFirstPC(); // Or whichever function in appropiate for the script

    SetLocalInt(oPC, "RoleplayPoints", GetLocalInt(oPC, "RoleplayPoints") +1); // Apply whichever maths you like
}
               
               

               


                     Modifié par C Writer, 31 août 2010 - 10:55 .
                     
                  


            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #4 on: August 31, 2010, 12:24:45 pm »


               

Who said that I wrote...

yes its going to be an item I.E. A pouch (pouch cannot be opened) and when a DM thinks that a player is having a good Roleplay so the DM will reward with a Roleplay point.

So basically an item that counts the points the DM gives to the player.

So the DM uses a widget to add a point to the roleplay bag.

Also what I have tried to do is to make it so that players can return those points for certain things (so a DM can take the points away from the roleplay bag)

I hope I gave an good example of what I want to have



DMs can already do that with ##SetVarInt $ #

DMs can already award XP too from the console.

So what is it that you want this widget to do?
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #5 on: August 31, 2010, 01:48:45 pm »


               She wants 2 tagbased items...

1 for the DM to add / take points from the PC.. (Imaginary RP Points)

1 for the PCs so they can look at their total RP Points..

more or less...

Basically your going to need two tagbased item scripts, one conversation for the DM to give / take & look at the available RP Pts the player has...  That conversation will need 3 scripts as well.. so in total, you will need..

2 Tagbased Items
2 Tagbased Scripts
1 Conversation with..
3 Scripts...
               
               

               


                     Modifié par Genisys, 31 août 2010 - 12:51 .
                     
                  


            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #6 on: August 31, 2010, 01:55:47 pm »


               I like this idea ..can I see the end result?

               
               

               
            

Legacy_C Writer

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #7 on: August 31, 2010, 02:37:21 pm »


               Oh yes, I see you were referring to DMs, Who Said That I. In that case, you can ignore my bottom script, but you'd still probably want my top one (if you have no problem with that method). And as mentioned, you can use console commands to change the variable which contains their roleplay points.



As for the final result, Knight_Shield, it would be easiest for you to see it if you simply added it into a custom module and either scripted the variable change (with my bottom script in my last post), or use the console commands as mentioned above.
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #8 on: August 31, 2010, 04:12:08 pm »


               I think the variables set on items are persistent in multiplayer, therefore you would want to export the character after any changes are applied to the PC's item to ensure it sticks (in case the server shortly crashes or PC quickly logs unaware)
               
               

               


                     Modifié par Genisys, 31 août 2010 - 09:22 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #9 on: September 01, 2010, 06:30:35 am »


               hmm okay, so before I even try it myself, must the tagbased items have the same or similar tag?  I do not believe so but I cannot be too sure.

Can't it be made so that the pc is being saved right after the RP point given? Or right after the RP point's are being taken away?
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #10 on: September 01, 2010, 07:06:08 am »


               

Who said that I wrote...

hmm okay, so before I even try it myself, must the tagbased items have the same or similar tag? I do not believe so but I cannot be too sure.


That depends on how you want to do it. You could give them the same tag but it will run the same script for all items with that tag. But in the one script you could check for different res ref's and only run certain parts of the script based on that.

Who said that I wrote...

Can't it be made so that the pc is being saved right after the RP point given? Or right after the RP point's are being taken away?


Yes.
               
               

               


                     Modifié par GhostOfGod, 01 septembre 2010 - 06:06 .
                     
                  


            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #11 on: September 01, 2010, 02:27:44 pm »


               okay well lets get to work then, will let everyone know if I succeeded or failed '<img'>
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #12 on: September 02, 2010, 04:40:25 am »


               okay tag items is not that hard, though I am not sure how to do the script that will give the pc a "imaginary" rp point or make the dm able to take the point away from the pc



can someone help me with this?

               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #13 on: September 02, 2010, 05:00:17 am »


               Ok, here is the system you asked for, I made an erf & a module..

The nwvault submission of the DM RP Award System

It includes a PC item & a DM item, with a DM conversation & 7 total scripts, you however don't get off scott free..

You will have to create 10 award items to be handed out (randomly) by this system, should the PC accumulate 10 Role Playing Points... you decide what you want each one to be..

give each one the resref name(s)...

dm_rp_award_0
dm_rp_award_1
dm_rp_award_2
dm_rp_award_3
dm_rp_award_4
dm_rp_award_5
dm_rp_award_6
dm_rp_award_7
dm_rp_award_8
dm_rp_award_9

That's 10 seperate items, they can have any tagname you want, so they can also be tagbased scripted items as well..

This only took me about 40 minutes, hope you enjoy... best of luck to you and your on your server..   '<img'>

Cheers & Enjoy

Genisys (Guile)
               
               

               


                     Modifié par Genisys, 02 septembre 2010 - 06:39 .
                     
                  


            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Help with making a Roleplay Token system?
« Reply #14 on: September 02, 2010, 12:20:55 pm »


               oops double post, see below.

Be well. Game on.
GM_ODA
               
               

               


                     Modifié par ehye_khandee, 02 septembre 2010 - 11:23 .