Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-28-2001, 06:24 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
re-assigning x and y

is there a way, (i doubt it) ,
to make the startin x and y of a level at 32,32 ... where are 32,32 would be chnged to 0,0 like on a graph. I know they start in the top left hand corner at 0,0 but i was wonderin if there is a command to do it where its starting point is (32,32) but it appears as x and y. I am not talking about setting varibles for it ... i am asking if there is a solid command for it ... There is nothing i could really use it for but i jut wanna know ...
Reply With Quote
  #2  
Old 09-28-2001, 06:26 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Quote:
There is nothing i could really use it for but i jut wanna know ...

Yeah that really makes sense...
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 09-28-2001, 06:26 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: re-assigning x and y

Quote:
Originally posted by nyghtGT
is there a way, (i doubt it) ,
to make the startin x and y of a level at 32,32 ... where are 32,32 would be chnged to 0,0 like on a graph. I know they start in the top left hand corner at 0,0 but i was wonderin if there is a command to do it where its starting point is (32,32) but it appears as x and y. I am not talking about setting varibles for it ... i am asking if there is a solid command for it ... There is nothing i could really use it for but i jut wanna know ...
I couldn't really understand what you were saying??

so are you wondering if there is a command so if the player enters the level it puts them at a certain x and y?
__________________
Thanks,
-KJL
Reply With Quote
  #4  
Old 09-28-2001, 06:28 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
yes just use

if (playerenters) {
playerx = whatever;
playery = whatever;
}
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #5  
Old 09-28-2001, 06:32 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
I believe what he is trying to say is that graal should be a 4 quadrant graph, not just 1.

He wants to know if there is a command that would make it into a 4 quadrant graph.

And I don't believe there is.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #6  
Old 09-28-2001, 06:37 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
ok ...

read below \/ \/

Last edited by nyghtGT; 09-28-2001 at 06:39 AM..
Reply With Quote
  #7  
Old 09-28-2001, 06:38 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
thats it ...

Quote:
Originally posted by Cybnext_Design
I believe what he is trying to say is that graal should be a 4 quadrant graph, not just 1.

He wants to know if there is a command that would make it into a 4 quadrant graph.

And I don't believe there is.
That is what i need to know ....
Reply With Quote
  #8  
Old 09-29-2001, 05:14 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
thanx

Quote:
Originally posted by Kaimetsu
He's just talking about moving the origin from (0,0), which is impossible.
Thanx Kai, thts all I needed to hear.
Reply With Quote
  #9  
Old 09-29-2001, 09:03 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
He's not talking about moving the origin from (0,0). To be technical, he's talking about redefining (0,0), which by definition is the origin.
__________________
Reply With Quote
  #10  
Old 09-29-2001, 09:07 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
You konw that would sound intellegent if you didn just reinstate the same thing kai said with different wording and thinking waht you said was acually different.
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 09-29-2001, 10:12 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
(0,0), by definition, is always the origin, because the origin defines where (0,0) is. Imagine a player character called Zero 0 and an NPC called Origin. Origin has the following script:


NPC Code:

if(playerenters){
timeout=0.5;
setcharprop #c,Zero 0;
}
if(timeout){
if(strequals(#n,Zero 0)){
playerx=x;
playery=y;
}
timeout=0.5;
}



It should, in effect, move player with name Zero 0 to the X and Y of the NPC Origin.
__________________
Reply With Quote
  #12  
Old 09-29-2001, 10:17 PM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
Falcor, I am merely trying to state that the origin cannot be moved from 0,0 because the origin is ALWAYS 0,0.
__________________
Reply With Quote
  #13  
Old 09-29-2001, 11:00 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
hehe, that is the nice thing about Megazeux. You could program for specific things where the player's position was absolute zero or the Robot's (npc) position was absolute zero...but that was only for a few things such as checking what blocks (tiles) were near or in front of.

REL to Player - relative to player
REL to Self - relative to Robot
REL to Counters (I can't remember the definition for this one >.<)

those were used more as prefixes that pre-empted the command below it.
__________________
Reply With Quote
  #14  
Old 09-30-2001, 07:41 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
you could do x-32 and y-32 which will get a coordinate is between -32 and 32
Reply With Quote
  #15  
Old 09-30-2001, 08:46 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by btedji
you could do x-32 and y-32 which will get a coordinate is between -32 and 32
um, no, you get x=32 and y=32. Unless you are meaning that it is the equation, x-32. Thing is, you need to know x, which can be any number.
__________________
Reply With Quote
  #16  
Old 10-01-2001, 08:20 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
64-x & 64-y = the cooridinate if there were 4 equal quadrants
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.