Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Changing screen music, learning spells, and changing text color


Kimimaru
 Share

Recommended Posts

Hey, everyone! I've been coming along pretty well with my game thanks to all of your help. A few more issues came up, though:

1) I have music set on the Main Menu. Is it possible to play a different song when you select, for example, the Login screen? If so, how can I do that?

2) I created a spell and tried testing it out. When I reached the level you're supposed to learn it at, I didn't learn it for some reason. I'm not sure why my character isn't learning it. It's for all classes, also. Is there a way to fix this, or am I doing something wrong?

3) Where would I go to change the color of the player's text in the chatbox and also in the speechbubble? I looked in Main.txt, but I didn't find an area in it that dealt with the color of the player's text when they type a message. I would like to make it so that players have different colored texts based on their rank.

Please try to get back to me on these issues. I greatly appreciate any help!
Link to comment
Share on other sites

Well, the topic below discusses changing text/chat bubbles but it's from an old version of Eclipse and doesn't work with EE 2.7.  Maybe you can ask someone to edit it for you?  I'd do it but when I work on a script, the script breaks =p

[http://www.touchofdeathforums.com/smf/index.php/topic,8903.0.html](http://www.touchofdeathforums.com/smf/index.php/topic,8903.0.html)
Link to comment
Share on other sites

Thanks for the help guys; I really appreciate it!

@мсичġġεт:

> Well for the chatbubble you just edit your gfx to a good colour.

Which GFX would I edit? I don't see how changing a GFX would change the text color in the chatbubble based on your rank.
Link to comment
Share on other sites

@Kimimaru:

> Thanks for the help guys; I really appreciate it!
>
> Which GFX would I edit? I don't see how changing a GFX would change the text color in the chatbubble based on your rank.

It wouldn't; I think he was referring to changing the speechbubble graphic itself.

Regardless, I think changing the color of the text in the speech bubble, would be a source edit.
Link to comment
Share on other sites

I really appreciate the help, but which source file would I edit to change the color of the text in the speech bubble? Same goes for the music on different menus, such as Delete Account.

I also have yet another general question. I want to move the HP bar onto the actual game screen where you play. When I do that, it always appears under the game screen no matter what. How can I make it so that it appears above the game screen?
Link to comment
Share on other sites

I would like to change both, but for the text, I would like the color of it to change depending on your rank. Ex: Moderators would have blue text, and normal players would have grey text, but the chat bubble would remain the same.
Link to comment
Share on other sites

Okay, I got it. Thanks a lot!

There are still some problems that I'm encountering, though:

1) Which source file would I have to edit to play different music on, for example, the Login screen?
2) Is there a way to make a character automatically learn a spell when he/she reaches a certain level?
3) How do I change the color of the player's text in the main chatbox and also in the chatbubble depending on his/her rank?

I've learned more about these features from you guys, and I thank you for that, but I still have yet to find out how to actually implement them into the game.
Link to comment
Share on other sites

3) in source It'll be like

check playerrank If = 4 Set colour to purple

add that somewhere (edit it to work obviously) in the chatbox.

2)
On Playerlevelup load tiles (blah blah)
If level = 12 (index, Learn spell Rainbow storm)
End sub

These are just examples of what to do.
I'm no superstar at coding but that is basically what you do but with a different code.
A better scripte should come and change it to suit your needs.

*I think
Link to comment
Share on other sites

Alright, well, I learned a little something from my friend, who is an expert programmer. Unfortunately, I didn't get to talk to him very much because he had to go. I learned that I need to change something in _bltPlayerName_, which is located in the module, **modGameLogic**. I managed to change the color of the player's name depending on his/her rank. I cannot locate the variable for changing text color, otherwise I would probably be able to do it myself.
Link to comment
Share on other sites

@мсичġġεт:

> 3) in source It'll be like
>
> check playerrank If = 4 Set colour to purple
>
> add that somewhere (edit it to work obviously) in the chatbox.
>
> 2)
> On Playerlevelup load tiles (blah blah)
> If level = 12 (index, Learn spell Rainbow storm)
> End sub
>
> These are just examples of what to do.
> I'm no superstar at coding but that is basically what you do but with a different code.
> A better scripte should come and change it to suit your needs.
>
> *I think

I managed to change the color of the player's text on broadcast based on his/her rank. I also found out how to change the color of the text that's displayed under the character, but I can't seem to get it to work correctly..
Link to comment
Share on other sites

Okay, I've managed to figure out how to change all the text, with the help of my expert-programmer friend.

I have one question, though. How can I change this Sub and statement to make the message a different color?

```
Sub MapMsg2(ByVal MapNum As Long, ByVal Msg As String, ByVal Index As Long)
Call SendDataToMap(MapNum, "MAPMSG2" & SEP_CHAR & Msg & SEP_CHAR & Index & END_CHAR)
End Sub

Call MapMsg2(GetPlayerMap(Index), Message, Index)
```
This is the original code, found in _modHandleData_ in the Server source files. The Sub is found in _modServerTCP_. I'd like the "Message" to appear in a different color.
I'm sorry for troubling you all with my numerous questions on this topic, but if I get help with this, it will eliminate one of my main concerns for the game. Thanks again, and I greatly appreciate any help!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...