Search Unity

RPG-Starter-Package

Discussion in 'Made With Unity' started by DevionGames, Feb 26, 2011.

  1. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Sorry for my late answer, but i had no time today :D

    You can download this movement script. It is in c#, so you can get simply variables from it.

    Code (csharp):
    1. //get the script attached to the Character
    2. ThirdPersonMovement moveScript= (ThirdPersonMovement)Core._playerCharacter.CharacterModel.GetComponent("ThirdPersonMovement");
    3.  
    4. //If isMove is false--->Play animation
    5. if(!moveScript.isMoving){
    6.             Core._playerCharacter.CharacterModel.animation.CrossFade(anim);                
    7. }
    You can also define with this variable if the pc is standig still or not and play diffrent animations.Something like this should work.

    Code (csharp):
    1.  
    2. private string[] availableAnimations = new string[] {"attack1", "attack2"};
    3. ...
    4. if(isMoving){
    5.    Core._playerCharacter.CharacterModel.animation.CrossFade(availableAnimation[0]);
    6. }else{
    7.    Core._playerCharacter.CharacterModel.animation.CrossFade(availableAnimation[1]);
    8. }
    The animations are played in the AIFollower.cs and in the skill script---> Wrestling, Swordmanship... if i remember right. I hope this helps.
     

    Attached Files:

  2. franbon2005

    franbon2005

    Joined:
    Mar 19, 2009
    Posts:
    86
    hey
    i work now of creation of clothing i just ask me how i can change my character mesh (legs ,shoulders, body) without changing the position and rotation of the mesh

    with the book that is easy but with the character mesh i don't find the solution

    the best way for me to change the mesh is to change the matetrial of the mesh not the mesh ..

    can you explain how you do that ?

    Thanks
     
  3. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Code (csharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class MaterialTest : MonoBehaviour {
    5.  
    6.     public Texture2D tex;
    7.     public Renderer rend;
    8.     private Shader shader;
    9.  
    10.     void Start () {
    11.         shader =Shader.Find("Diffuse");
    12.         rend.material= new Material(shader);
    13.         rend.material.mainTexture = tex;
    14.     }
    15. }
    It takes 2 minutes to look at the scripting reference....
    http://unity3d.com/support/documentation/ScriptReference/Material.Material.html
     
  4. franbon2005

    franbon2005

    Joined:
    Mar 19, 2009
    Posts:
    86
    you don't understand my question

    in your editor you have layer like legs how do you change mesh for your legs ?

    the same for the other layer depending of the player character

    i can't do the same like for the book

    you have gameObject for your equipement and gameobject for your equipement position

    how YOU you change the mesh ??
     
  5. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    I do the same like with the book. But you can change the code and add your own on your personal needs. You wrote that you want to change the material not the mesh so what i have posted is a good start for changing the code.
     
  6. franbon2005

    franbon2005

    Joined:
    Mar 19, 2009
    Posts:
    86
    i 'm waiting for a video to see how your clothing work i have a little doubt
    i test the changing parts (mesh) of my character the all day today
    and i think it is just one solution for that it is the asset bundle (resources.load maybe) but not the transform gameobject(with prefab !!!)

    good luck for your game !!!!
     
  7. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Last edited: Jan 12, 2012
  8. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
    I'm not sure how to make the character fight the dragons, is this possible? And how do you save the game?

    Which is the 'right' download rpg.7z or standalone.rar? It looks cool, difficult to try out changing it w/o buying though.
     
  9. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Equip a weapon,drag the skill you wish to use to the panel, target the enemy, and click with the right mouse buttton the icon in the panel.
    For downloading the standalone click here
     
    Last edited: Jan 12, 2012
  10. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
    quote
    Equip a weapon
    unquote
    I could drag the dolch to the f1 slot at the bottom, but couldn't drag it to the character slots/clicking
    on the character slots did nothing.
     
  11. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    There are no pictures on the slotlayer, but they are sorted by( head, weapon, shield...) so try all slots. You can not equip a weapon on a head slot. You do not need to drag the weapon to the f1 slot, you need a skill there. The knife needs the skill fencing, a sword needs the skill swordsmanship...
     
  12. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Here are some buildings for all buyer... you can download them here: Buildings
    Use the same password as for the RPG-KIT.
    Format is MB, FBX.
    Here is the webplayer demo. The scene is also included(.unitypackage).

    If other people are interested contact me via pm.












     
    Last edited: Jan 12, 2012
  13. daniel7345

    daniel7345

    Joined:
    Nov 28, 2010
    Posts:
    25
    Contacted you via PM.
     
  14. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
    k, I got the human to wield a sword I had to put a skill in the f1 slot I think but there were no dragons! Did I frighten them away?
    could you tell us what 'zauber', einstellungen, means? Containers won't open when he has a sword,
    w/o sword they just catch fire. Are there really spells I can use or just icons? Where is the save/load feature?
     
  15. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    yes if you fight and the monster are near you "kill" them.

    Hmm where do you find it? it are options for magery/ castig a spell. ( but at the moment just a placeholder)

    you have to use first the skill "remove trap" so that the container do not catch fire and then use skill lockpicking to open the container. very complex i know :D

    yes drag the icons from the magery book into your panel target the enemy and use the spell with the right mouse button :D

    If you press "ESC" there you will find save game. if you start the game you will see that your character is saved and you can select him.
     
  16. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
    If you press "ESC" there you will find save game

    No i see hauptmenu f10 hilfe f1 character c inventar i skills s (hard to dismiss this menu)
    zauber z quests q einstellungen 0 staffmenu f12 spiel beenden.

    Please make a vid showing how to do the skills thing. Do you plan to have full saving of
    everything like a real game?
     
  17. karllos

    karllos

    Joined:
    Sep 23, 2010
    Posts:
    9
    Dear forum visitors,
    It's been more than a week since I use Zerano's RPG Starter Package and I'd like to say, if there is anyone who would like to work in RPG-genre, you must pay attention to it. IT's one of the best among other choices nowadays. I make an RPG-genre game and I will let you know gradually you samples of the project.
    I have to thank Zerano one more time for creating such a package.
     
  18. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Hmm it should look like this!

    Do you have the right version?oO
    Have other people not this menu too?

    Thank you!
     
    Last edited: Jan 12, 2012
  19. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
  20. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
    Here's a shot of spell casting
     

    Attached Files:

  21. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Ahh okay sorry i have to make the current version of the standalone and upload it. The webplayer is up to date.
     
  22. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Last edited: Jan 12, 2012
  23. whyroph

    whyroph

    Joined:
    Nov 2, 2010
    Posts:
    58
    My Whish:
    - Player Vs. Player
     
  24. hike1

    hike1

    Joined:
    Sep 6, 2009
    Posts:
    401
  25. madproducer2k

    madproducer2k

    Joined:
    Jan 19, 2010
    Posts:
    47
    lol I miss UO OMG
     
  26. ersaurabh101

    ersaurabh101

    Joined:
    Oct 8, 2010
    Posts:
    412
  27. whyroph

    whyroph

    Joined:
    Nov 2, 2010
    Posts:
    58
    Ok zerano i whant to buy it but i need so you can make mesamthing else you can do to save it into SQL Database and not into XML file and to save player character position and rotation and make a login script?? tnx
     
  28. Le_Hieu

    Le_Hieu

    Joined:
    Mar 26, 2011
    Posts:
    31
    how to buy this Package?
     
  29. RoyS

    RoyS

    Joined:
    Jan 12, 2009
    Posts:
    664
    Contact Zerano via pm.
     
  30. Trouch

    Trouch

    Joined:
    Nov 29, 2009
    Posts:
    87
    Wow this looks interesting, needs a website or blog or something.
     
  31. whyroph

    whyroph

    Joined:
    Nov 2, 2010
    Posts:
    58
    how i can change when i create character change zone where to spawn it??
     
  32. karllos

    karllos

    Joined:
    Sep 23, 2010
    Posts:
    9
    you can find it in scripts/core/core.cs file

    Code (csharp):
    1. #region start locations
    2.  
    3.   public static Vector3[] startLocations = new Vector3[] {
    4.  
    5.     new Vector3(627.0f, 168.0f, 1639.0f), // Sunna
    6.  
    7.     new Vector3(717.0f, 1.0f, -500.0f), // Azteken
    8.  
    9.   };
    10.  
    11.   #endregion
     
  33. ersaurabh101

    ersaurabh101

    Joined:
    Oct 8, 2010
    Posts:
    412
    where is the working web player link ????????????????????????????????????????????????????????????????
     
  34. karllos

    karllos

    Joined:
    Sep 23, 2010
    Posts:
    9
    Here it is:Web Player. Demo v0.005
     
  35. whyroph

    whyroph

    Joined:
    Nov 2, 2010
    Posts:
    58
    Yea i change ""SUNNA" but it isn't Worck
     
  36. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    Did you change "Sunna" in this line?
    If so, that has no effect on the game whatsoever. Anything that is after two slashes (//) is only a comment and not code so it won't change anything...
     
  37. whyroph

    whyroph

    Joined:
    Nov 2, 2010
    Posts:
    58
    yea i change all X Y Z but nothing change
     
  38. konedj

    konedj

    Joined:
    Dec 7, 2010
    Posts:
    84
    Zerano i sent you a PM for Support!!

    Thanks :)
     
  39. dreamlarp

    dreamlarp

    Joined:
    Apr 22, 2011
    Posts:
    854
    I havent seen anymore updates to this thread. Have you stopped working on this? Are there any new updates?
     
  40. 2dfxman

    2dfxman

    Joined:
    Oct 1, 2010
    Posts:
    178
    Noo don't stop. I love unity, I love rpgs, and I F***ING LOVE UO!
     
  41. dreamlarp

    dreamlarp

    Joined:
    Apr 22, 2011
    Posts:
    854
    I loved UO from beta. I played till a few months ago. I was thinking a futuristic UO type game would own.
     
  42. yomo710

    yomo710

    Joined:
    May 25, 2011
    Posts:
    77
    I like this I might buy it
     
  43. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Hello i had a lot to do at university, so i had no time. I hope i will have in a few weeks. At the moment i am working on a multiplayer game, this package was a small learn project. I have earned some money for models for my "dreamproject".

    I do not want to stop working on it, but uo is a multiplayer game, so i want to go to that direction :D
    Maybe i will show an insight of my current progress.
     
  44. Valimir

    Valimir

    Joined:
    Mar 22, 2011
    Posts:
    11
    Why no mac standalone? The web demos never work that well right clicking on the mouse always gives a flash pop up, and you only have a pc standalone. All in all looks good would like to try it out. Good work :D
     
  45. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
  46. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    Some people asked me if i could do an update, so i decided to make one. It will not be directly an update for this package, but it will be free for the buyers.

    It will be a mysql save system. I am working on it 3 days now so i do not have to show much. here is a small preview:
    http://screencast.com/t/4ZeV0xax

    You can create mysql tables inside unity and set relationships also.
    If you want you can save some time with the generating of c# classs based on the tables data.

    At the moment not realy a saving system, but it will be one :D
     
  47. rockysam888

    rockysam888

    Joined:
    Jul 28, 2009
    Posts:
    650
    In the preview video, we could only hear some noise, not your voice.
     
  48. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    i did not say anything, i only forgot to make my micro off...
     
  49. Nemodain

    Nemodain

    Joined:
    Mar 21, 2009
    Posts:
    5
    Does this come with documentation? and if so is it in English?

    I am very interested in making a purchase but would like to see what you have with the current version and whats in it.

    Keep up the good work Zerano!

    Nemo
     
  50. DevionGames

    DevionGames

    Joined:
    Feb 22, 2010
    Posts:
    1,624
    I am not so good in english but i have tried, do you see this info?