I'm not very skilled at javascript which and I'd like to know how to check your class in hexen. This is because I'd like to make a script that reacts differently depending on if you're a fighter, mage or cleric. I tried checkclass and it doesn't work for me.
I'd also like to create a script that gives you an item from an array but I want to set a drop rate for the items.
E.g: Let's say I have an array called ' int ItemDrops[2] = {green mana, blue mana};' (The proper class names would go here) and a spawn script that calls from the array to spawn either green or blue. I want to make it so that the green has a 10% spawn rate while the blue has a 90%. This way whenever the script is activated you will have a higher chance of getting blue mana.
I use GZDOOM and UDB along with its built in script editor.
Question
DoomerCheems
I'm not very skilled at javascript which and I'd like to know how to check your class in hexen. This is because I'd like to make a script that reacts differently depending on if you're a fighter, mage or cleric. I tried checkclass and it doesn't work for me.
I'd also like to create a script that gives you an item from an array but I want to set a drop rate for the items.
E.g: Let's say I have an array called ' int ItemDrops[2] = {green mana, blue mana};' (The proper class names would go here) and a spawn script that calls from the array to spawn either green or blue. I want to make it so that the green has a 10% spawn rate while the blue has a 90%. This way whenever the script is activated you will have a higher chance of getting blue mana.
I use GZDOOM and UDB along with its built in script editor.
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.