Chaosforge Forum

  • December 13, 2018, 21:07
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: 1 [2]  All

Author Topic: A couple questions  (Read 6127 times)

Equality

  • Second Lieutenant
  • *
  • Offline Offline
  • Posts: 174
  • Lost Soul
    • View Profile
Re: A couple questions
« Reply #15 on: April 24, 2013, 00:02 »

and one more: what is "ystairs" purpose? Yellow stairs, just a "down" in game, but you can't descend.
Logged
Once advanced DoomRL player
Find mysterious sword Dragonslayer
Say "Best thing ever found!" and start jumping around...
But he can't get the sword from the ground

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4390
    • View Profile
    • http://chaosforge.org/
Re: A couple questions
« Reply #16 on: April 24, 2013, 04:26 »

They're a leftover from the times where I wanted to have dungeon branches. Red stairs would go to special levels, while yellow stairs would change branch.
Logged
at your service,
Kornel Kisielewicz

SPTX

  • Sergeant
  • *
  • Offline Offline
  • Posts: 76
  • Lost Soul
    • View Profile
Re: A couple questions
« Reply #17 on: May 07, 2013, 13:27 »

I was also wondering if you can re-name klasses. Thank you in advance.
A bit late to the party regarding that, but I just found that you could rename klasses using :

klasses[player.klass].name = "name" -- where player.klass is currently used klass
or replace [player.klass] by ["marine"] ["scout"] ["technician"] respectively.
Doesn't apply until the mod is loaded obviously.
Logged

Trar

  • Backer
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 97
  • dsvilsit.wav
    • View Profile
Re: A couple questions
« Reply #18 on: May 31, 2013, 08:19 »

Thanks for that, SPTX. This thread is proving to be quite the information source! And Kornel, would it still be possible to implement branches in a mod?
Logged
0.9.9.6+0.0.9.7: Hell Knight 2nd Lt. 1f3s/2f5s/3s/0/0

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4390
    • View Profile
    • http://chaosforge.org/
Re: A couple questions
« Reply #19 on: May 31, 2013, 08:27 »

I guess you could hack that in. Just keep the information on which stairs the player took in player custom properties, and make the generator react accordingly.
Logged
at your service,
Kornel Kisielewicz

SPTX

  • Sergeant
  • *
  • Offline Offline
  • Posts: 76
  • Lost Soul
    • View Profile
Re: A couple questions
« Reply #20 on: June 15, 2013, 05:32 »

Is there a way to prevent an item from spawning or replacing it in special maps?
Logged

yaflhdztioxo

  • Programmer
  • Local Inquisitor
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: A couple questions
« Reply #21 on: June 15, 2013, 08:58 »

Interrogative: what are you trying to do exactly?
Logged

Equality

  • Second Lieutenant
  • *
  • Offline Offline
  • Posts: 174
  • Lost Soul
    • View Profile
Re: A couple questions
« Reply #22 on: June 15, 2013, 11:45 »

...well, I see 3 ways:
a) change weights. If you change weight for some item to 0, it never spawn until you direct place that on map
b) for special levels - reusing existent: may be try iterate all items on map and delete/replace unwanted item? If it is not a reward from Agony Elemental or Arena Master but just ordinary item on level like envirosuit or large med-pack. At OnEnter event
c) in documentation I see a level.OnCreate(being/item) event. Looks like place to control everything including special rewards like sculls-Arena staff-lava element ?
Logged
Once advanced DoomRL player
Find mysterious sword Dragonslayer
Say "Best thing ever found!" and start jumping around...
But he can't get the sword from the ground
Pages: 1 [2]  All