Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   X=? y=? in dungeongen (https://forums.graalonline.com/forums/showthread.php?t=50657)

TB3 01-27-2004 09:40 PM

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.

R0bin 01-28-2004 03:12 AM

in a gmap, serverside X+Y is relative to the gmap, not the levels. im pretty sure.

TB3 01-28-2004 03:27 AM

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 :)

R0bin 01-28-2004 04:33 AM

I dont think a random number can be generated by the dungeongen.

Admins 01-28-2004 05:19 PM

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

TB3 01-28-2004 05:49 PM

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 :)

Eric_1337 01-31-2004 11:10 PM

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.

TB3 02-02-2004 06:03 AM

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.

Admins 02-02-2004 03:37 PM

No one asked yet that's why we haven't added more stuff yet :)

TB3 02-02-2004 08:31 PM

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 :D


All times are GMT +2. The time now is 03:30 AM.

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