[LUA] Phasing and You
#21
Posted 27 April 2010 - 02:02 PM
But this brings me a question: What is the default phase? And how do you change it?
#22
Posted 27 April 2010 - 02:34 PM
Going by simple math, there's nothing of the same number you can add to get 1, so I would assume that it's a stand-alone and as such is the default phase.
You don't "change" the phase itself, just set it to a different phase. How to do so is throughout the guide.
#23
Posted 27 April 2010 - 07:47 PM
#24
Posted 27 April 2010 - 08:55 PM
In some cores, when you do a phase mod to 0, or attempt to, it will do a reset to 1.
Look down, look down, you're standing in your grave...
#26
Posted 28 April 2010 - 05:05 AM
:PhaseSet(#, 1) <-- the 1 is an optional argument and makes it permanent. Does not work with players. This sets the phase of the object.
Use that change phases.
#28
Posted 15 May 2010 - 10:03 PM
#29
Posted 16 May 2010 - 08:31 AM
#30
Posted 16 May 2010 - 04:10 PM
Quote
[color=limegreen]Well you could make a database table couldn't you?
Say 2 rows.
"Name" and "Phase"
Of course you can tell what goes in these two.
Whenever a script does something with phases it gets recorded in the Database. If the server restart another script could possibly then set the phase of each individual based on that table?
#31
Posted 16 May 2010 - 04:12 PM
You can add a DB table for phases?
That would make my life easier?
#32
Posted 16 May 2010 - 04:20 PM
#33
Posted 16 May 2010 - 04:22 PM
#34
Posted 17 May 2010 - 08:12 AM
Although it would be easier to just do SetPhase on the unit you want to change phases thus not needing a whole new table and script.
#35
Posted 28 July 2010 - 07:44 PM
#36
Posted 29 July 2010 - 07:14 AM
Now that sounds really confusing and it is. What I am trying to say is if we wanted to put a gameobject in phase 2 and then we have the player in phase 2 the gameobject can be seen by the player. Now we take another player and place him in phase 4, he cannot see the player or the object. Now if we want him to be able to see the player while being in a different phase we have to combine both phases so we would do 4 + 2 and we would place the player in phase 6. But now here is the problem. The object is already in phase 2 so that means it becomes visible to the guy in phase 6 because we merged 2 and 4 together.
It is early for me and I really can't think of any workarounds right now but then again there might be one because I haven't really phased gameobjects. I am more of a quest/player/item phaser. So in all honesty I never though about trying that. So if anyone else can correct me please do so because I am interested to know as well. But logic would dictate no you can't.
#37
Posted 29 July 2010 - 07:22 AM
Would this be the csae or..?
#38
Posted 29 July 2010 - 07:35 AM
Phase number 20 has a phase value of I think 524288, now if you take that and add 1 (default phase) and 4 and 8 and 64 and 1024 (phase values for phase 1, 2, 3, 6, and 10) then he will be able to be seen in all of those phases.
I think my math was right on that one.
#39
Posted 29 July 2010 - 07:45 AM
Quote
Phase number 20 has a phase value of I think 524288, now if you take that and add 1 (default phase) and 4 and 8 and 64 and 1024 (phase values for phase 1, 2, 3, 6, and 10) then he will be able to be seen in all of those phases.
I think my math was right on that one.
Phases suck and are confusing D:
2^(4-1) + 2^(16-1) = 32776
#40
Posted 29 July 2010 - 01:06 PM
Why am I the only one that understands this?
Phase 20: 4 + 16 = The objects and everything in phase 4 and 16 show in that phase. It's not 32776, 20 is the phase value (I see it as only phase values, not phase 3 is value 4 etc).
Now, to Eldrak, that is possible.
GO 1 is in Phase 2.
Player 1 is in Phase 3.
Player 2 is in Phase 1.
And everyone is happy =D.
Similar Topics
![]() |
[Question] PhasingStarted by DragonDev, 18 Jan 2012 |
|
|
|
![]() |
[Request] make item Phasing (change displayid)Started by hulloween, 07 Oct 2011 |
|
|
|
![]() |
[QUESTON/HELP] - Zone Phasing System.Started by RakkorZ - ZxOxZ, 21 Jul 2010 |
|
|
|
![]() |
Phasing QuestionStarted by Eldrak, 04 Jun 2010 |
|
|
|
![]() |
[Help] Quest PhasingStarted by Grumblez, 29 Nov 2009 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














