|
Author
|
Topic: BATTLE ENGINE HAS BEEN SOLVED!!! ALL HAIL SOMETHING!!!
|
|
Jakk |
posted 28-03-2003 02:33 GMT
Okay... I am at the library, and i dont remember the code so stay with me, I will come on at my computer and redo it all, for more understanding. To have the random go to different numbers, just set the value at the random 1-100 thing of the value on the random variable. This should be done before the fight, after the fight, and every time the player and the monster exchange blows... if you dont understand, tomorrow, I will make it clearer
|
|
carlii
|
posted 28-03-2003 12:51 GMT
WOW omg that's wiicked! Would it be possible for you to send me a copy of the ASL? :)pretty please? ;) |
|
0 Ste 0
|
posted 28-03-2003 12:56 GMT
coolies, could you upload a copy of the code? or paste it all on here, and give me an instruction on where to place the code? thanks. =) u made life much more easier =D |
|
Computer Whizz
|
posted 28-03-2003 13:18 GMT
?? Your message didn't make alot of sense Jakk... Do you mean it's a library that uses a random number as input (ie the programmer set's the random number, passes it to the library and then that controls the battle) or did you mean it sets a radom number ect...It's good that you've made a library for a battle system, but you'll have to take into account that many people will bug you about altering stuff, fixing any bugs which may be there ect... ; ) Good luck. Computer Whizz |
|
Jakk
|
posted 29-03-2003 01:38 GMT
okay, I'm home and I have about a gallon of copy in me. I have to download quesxt again...then i will make a quick example of what i mean... sorry for the delay.... |
|
Jakk
|
posted 29-03-2003 01:48 GMT
This should work... and 0 ste 0 copy it into a text document, then drag the text doc to the QDK program.Oh, yeah and tell me what you think about the game also... and i didnt mean for it to be copy in my last post... coffee is what i ment quote:
' Created with QDK 3.12define game <> asl-version <311> start <Somewhere,UK> game info <Created with QDK 3.12> define variable <random> type numeric value <$rand(1;100)$> display <the random value is !> end define end define define synonyms end define define room <Somewhere,UK> look <type "attack stick" to do that attack thing> command <attack stick> if ( %random >= 50 ) then { msg <the stick figure has hit you.> set numeric <random; $rand(1;100)$> } else { msg <you hit the stick figure> set numeric <random; $rand(1;100)$> } define object <Mr.Stickperson> look msg <He is a stickfigure...> end define end define define text <intro> end define define text <win> end define define text <lose> end define
|
|
0 Ste 0
|
posted 29-03-2003 18:10 GMT
looks promising. at the moment i cant do anything, or look at the code, as i accidently deleted a partition on my hard drive, so i have 3 hard drives that im trying to fix right now, if i cant fix em im screwed lol. but as soon as i get things sorted, ill take a look at it. |
|
Gautier UK
|
posted 29-03-2003 20:23 GMT
fixed them. lol. =) |
|
Computer Whizz
|
posted 29-03-2003 20:34 GMT
That's all and well if you want the player to be attacked (by a not so even) 50% of the time. But What if you want to give your player a dodge status (so that the player is able to dodge attacks the higher his/her level)? You could always link it straight to the dodge status - but what if the monster had a hit status? What is the maths to figure that hit % out? And the other way around - the monster has a dodge percent and you have a hit percent... If they are percentages then if they're both 100% then what is the answer?This is needed really for versatility - I don't want to get to a really hard boss at a low level just for me to dodge 50% of the time - then encounter a weak monster to dodge again 50% of the time... Computer Whizz |
|
Jakk
|
posted 29-03-2003 23:28 GMT
computer whizz, I really do not want to make a big battle engine thing, I just made this to point people in the right direction |
|
Computer Whizz
|
posted 30-03-2003 14:18 GMT
True! This is a nice simple system to use with a game.I'm just saying it's not the 'be-all and end-all' of battle systems (well, a part of a battle system). Computer Whizz |