Index · Preferences · Help
Tutorials · General Discussion · Rants · Suggestions Box · Dragon Ball Z The Final Battle · Bleach : Endless Destruction · Games You Named · Naruto: Sasuke's Revenge · OutBreak · Lights Camera Action · Celestial Chaos Reborn · Desert Defenders 2
Forum Search:

[Advanced Search]

[Messages in this Thread] [Return to Tutorials]

Author:Kingmasherr [Moderator] [Posts]
Date:8/17/09 8:21 pm
Topic:Version 1.2 : Login Process
Post ID:3
Some of you wonder, 'Why can't I log in to my game','What is going on? I can't see my screen?!' That is because you have no Login Proc! It is a simple process which tells the character where to start off in the map, that is if you have made a map already.

So Let's start off by introducing you to this 'proc'.

mob/Login()

For a proc be sure to always add a () at the end of it. This goes for verbs too but we will get to that soon.

mob/Login()//Pevious Code
    usr.loc=locate(3,2,1)

You're wondering, 'What does usr mean?'. Well my guess is that it means user! loc is short for locate obviously. Once again, everything is CASE SENSITIVE. So make sure to use it just exactly how I typed it.

Now lets explain those coordinates. Where it says 3,2,1 those are a location. 3 is the X locations of the map. 2 is the Y location of the map and Z is the map ZONE. Like planets bassically. Theese are like an axis when you draw a Bar Graph sometimes.

mob/Login()
    usr.loc=locate(3,2,1)//Previous Code
    usr.icon='player.dmi'
    usr.icon_state="player1"

Inside the first Tutorial I taught you about icon and icon_state. In this tutorial I also taught you about the usr definition. Using the usr definition with the icon and icon_state will change the players current Character/Icon.

That is all for this tutorial. Be sure to check out our next Tutorial, Version 1.3 : Procs and How to Use Them.

Messages in this Thread:

  Version 1.2 : Login Process Kingmasherr (8/17/09 8:21 pm)