ok im making this game called Halloween town, and it has a few types of blood (Cromwell blood, Human blood, Fairy blood, Troll blood, Werewolf blood) and i have about 8 spells (more or less) they are type in action (going to make spells for the other blood types) but anyways i was going to add this syetm that like takes all the blood types and like chooses one randomly and add's 1 to it (i made the blood types vars, with a proc saying what happens and such) well i cant really do the random 1 to a single blood type instead of like 1 to like Werewolf and 1 to Human and such, yall get what im saying?
if yall understand and know what im talking about, then please help me out.
V.B.
ID:165824
Oct 26 2006, 5:18 pm
|
|
Oct 27 2006, 2:08 am
|
|
sooooooo when you cast a spell you want it to randomly add 1 to a random one of your blood types?
|
In response to Falacy
|
|
Falacy wrote:
sooooooo when you cast a spell you want it to randomly add 1 to a random one of your blood types? Holy spam attack! And it sounds like a good game. |
I don't really understand, perhaps you should show us the code of what you have at the moment, then explain again.
|
In response to King of Slimes
|
|
maybe something like
var/r = rand(1, 5) //randomly assign a number from 1-5 to r using switch(r) is probably more efficient but I'm not sure how to use it in this context. goodluck with your game, maybe it will be ready by Halloween? |
In response to KirbyAllStar
|
|
It would than be:
switch(rand(1,8)) - GhostAnime EDIT: Time for a strange code snippet: mob/var :D |
In response to GhostAnime
|
|
so it is more efficient to use a switch?
|
In response to KirbyAllStar
|
|
sorry to get you guys (or girls) to help, i figured after i had to go to bed to add a proc to the login to make the person choose what they want to be, well this worked and now i got two procs at login 1 to choose the bloodtype and the other to enforce the bloodtype (A.I. if like the bloodtype cromwell was chosen the spell tab pops up for your spells, well if you chose Human the spell tab is set to hidden and if a person wanted to cast a spell and knew the words they couldent.) i have it where like if(msg=="word" && src.magic=1) then it works but if not i put like a else that is at the end of the say verb that makes the person say the wrod that they were try to say, like people who actually saw the three movies would know the spell Apart and Trapa (the gray spell and the reverse gray spell) well if your a magical creature you will get a list of spells well if you say that spell a spell pops up as if you said the whole thing but you only gotta type in the keyword. but yeah, ill stop rambling... i dont know if it'll be out in 4 days but ill try (my internet keeps cutting out) and when my internet cuts out i cant get ahold of my coder who helps me a bit.
|
In response to VolksBlade
|
|
well good luck with your game, hope you can finish it.
|
In response to KirbyAllStar
|
|
thanks :) i spilt pop on my keyboard :( now it has to dry (i washed it off) so i got to wait till tomarrow to use it :(
|