Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-27-2004, 09:40 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
X=? y=? in dungeongen

Just wondering...
Is there any way to use a random number in the x= and y= for placement of npcs and images ontop of the massive areas with the dungeon generator? Im guessing / hoping that there is.
__________________

To the sun of your age, I arise
Reply With Quote
  #2  
Old 01-28-2004, 03:12 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
in a gmap, serverside X+Y is relative to the gmap, not the levels. im pretty sure.
Reply With Quote
  #3  
Old 01-28-2004, 03:27 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by R0bin
in a gmap, serverside X+Y is relative to the gmap, not the levels. im pretty sure.
Thanks but the thing im wondering is in the dungeon gen it places npcs and images ontop of massive area tiles at an x= y= point that you can define im wanting to know if its possible to define a random x= y = for the placement of random npcs through the dungeongenerator.
*edit*
x has to be >=0 and <= 8 in gen
and y > =0 and <= 11 and i want a random number between those how would that be defined in the dugeongenoptions
I think that better explains my question
__________________

To the sun of your age, I arise
Reply With Quote
  #4  
Old 01-28-2004, 04:33 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
I dont think a random number can be generated by the dungeongen.
Reply With Quote
  #5  
Old 01-28-2004, 05:19 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can add several lines with small chance and different x and y to get the same effect, although a random() function would be good for that yes
Reply With Quote
  #6  
Old 01-28-2004, 05:49 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by Stefan
You can add several lines with small chance and different x and y to get the same effect, although a random() function would be good for that yes
Thanks i noticed you liked to use combinations of
x=4 and y=0
x=0 and y=4
I guess thats what i'll have to do lolz thanks
__________________

To the sun of your age, I arise
Reply With Quote
  #7  
Old 01-31-2004, 11:10 PM
Eric_1337 Eric_1337 is offline
Registered User
Join Date: May 2003
Location: Ohio
Posts: 355
Eric_1337 is on a distinguished road
Send a message via ICQ to Eric_1337 Send a message via AIM to Eric_1337
Quote:
Originally posted by Stefan
You can add several lines with small chance and different x and y to get the same effect, although a random() function would be good for that yes
Maybe explain the syntax for the random function i know for c++ it's

"( rand() % max) + min" - but I'm sure it's different.
__________________
:BANNNED:
Reply With Quote
  #8  
Old 02-02-2004, 06:03 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by Eric_1337


Maybe explain the syntax for the random function i know for c++ it's

"( rand() % max) + min" - but I'm sure it's different.
Something similar or same would be nice in the next version along with a little more custom options. I think that the instructions for the dungeon gen could be cleaned up a little (and the options that are there that arent defined defined) but other than that its pretty much self explanatory.
__________________

To the sun of your age, I arise
Reply With Quote
  #9  
Old 02-02-2004, 03:37 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
No one asked yet that's why we haven't added more stuff yet
Reply With Quote
  #10  
Old 02-02-2004, 08:31 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally posted by Stefan
No one asked yet that's why we haven't added more stuff yet
Here is me asking and throwing out some improvments

http://forums.graal2001.com/forums/s...threadid=50815

Thanks
__________________

To the sun of your age, I arise
Reply With Quote
Reply


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 05:29 PM.


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