Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
Jaktik

Reputation script issue

Question

I'm using this script

http://www.rmxpunlimited.net/forums/topic/108-goodevil-bar/

 

I'm a little confused on a very important aspect of this script. I'm not sure how to add reputation points. I know this seems a little silly, but I'm fairly new to the scripting aspect of RPGXP... I'm more of the story/graphics guy.

 

What I'm trying to do is add a point depending on an answer chosen in dialogue. Ex...

 

Sara: Do you mind helping me out?

 

Okay. (+1)

 

 

Well... (+0)

 

Get someone else to do your dirty work! (-1)

 

 

No matter what I do I just can't seem to figure this out...

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Using $game_party.actors[x].alignment += y (x being the actor's position in the party: 0 being 1st, 1 being 2nd, etc) you can add y to the actor's alignment number (100 being good.) and use - instead of + to subtract from the alignment number (-100 being full evil)

 

Using a conditional branch, and the command:

$game_party.actors[x].alignment > x

you can set x to 0 (or higher) for the actor to be that much good and have the event execute, or do the opposite for evil (using a negative number)

 

It's within the same post that you referenced if your looking for dialogue choices specifically, the second bit is what your looking for.

Share this post


Link to post
Share on other sites
  • 0

Using $game_party.actors[x].alignment += y (x being the actor's position in the party: 0 being 1st, 1 being 2nd, etc) you can add y to the actor's alignment number (100 being good.) and use - instead of + to subtract from the alignment number (-100 being full evil)

 

Using a conditional branch, and the command:

$game_party.actors[x].alignment > x

you can set x to 0 (or higher) for the actor to be that much good and have the event execute, or do the opposite for evil (using a negative number)

 

It's within the same post that you referenced if your looking for dialogue choices specifically, the second bit is what your looking for.

 

I was hoping for something a little more... dumbed down. I really don't understand.

 

Edit: To clarify; I tried doing what it said and it came up with errors. I think I may have botched it somehow, but I'm not sure how.

Edited by Jaktik

Share this post


Link to post
Share on other sites
  • 0
To clarify; I tried doing what it said and it came up with errors. I think I may have botched it somehow, but I'm not sure how.
What errors? Where did you put the script? How are you calling it?

 

As far as dumbed down goes, you stick this command

$game_party.actors[x].aligment += y

in a call script command from a dialouge choice. you have to replace the first x with what position in the party the actor is in. (ie, if they are the first one in the menu, you put either 0. If they are the second member down, you put a 1.) and the y is how much you want to change their alignment by.

Share this post


Link to post
Share on other sites
  • 0

I got this Error:

 

NoMethodError occured while running script.

 

undefined method 'alignment' for #<Game_Actor:0x6f41608>

 

I put it under the dialogue choice in a Script command...

Edited by Jaktik

Share this post


Link to post
Share on other sites
  • 0

An alternate way to do this is:

 

 

$game_actors[1].alignment += 1

 

 

But remember, the [1] is the ID number of the actor as it is in the database. Also, 1 will BARELY show on the rep bar. i recommend at least 5 to show a significant change.

Share this post


Link to post
Share on other sites
  • 0

An alternate way to do this is:

 

 

$game_actors[1].alignment += 1

 

 

But remember, the [1] is the ID number of the actor as it is in the database. Also, 1 will BARELY show on the rep bar. i recommend at least 5 to show a significant change.

 

Thanks a lot, I really appreciate it Lizzie. I wasn't expecting you hehehe. I'm gonna try that and then I'll update this post with results.

 

EDIT: It worked, thank you. <3 I've also got one more question for you. Is it possible for a certain amount of reputation points to unlock events? Let's say... multiple endings?

Edited by Jaktik

Share this post


Link to post
Share on other sites
  • 0

lol. I know the results... cuz I tested it. I also wrote the script... soo.... yeah. I know it'll work.

 

"Happy Hunting!" ~Moira

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...