The Daily Click ::. Forums ::. Klik Coding Help ::. This is one for the real tgf enthusiasts
 

Post Reply  Post Oekaki 
 

Posted By Message

dragon_potato_person!



Registered
  26/05/2004
Points
  5
26th May, 2004 at 17:00:26 -

Hi Im currently working on a wizardry clone in tgf
NO before you ask Im not having a problem with the pseudo 3d part, in fact thats pretty much done and polished complete with strafing, walking backwards and turning 180 degrees. In fact it was pretty easy. NOO my problem and this is frigging embarassing is with the player and enemy initiative, if two of them get the same initiative they take their turn at the same time and thats just freaky, please help.

 
don't ask about the name I assure that you will be sorry and don't post asking about the name, disregarding my statement in an attempt to be funny or you will be sorrier

Kramy



Registered
  08/06/2002
Points
  1888
26th May, 2004 at 17:11:34 -

I don't understand, so I'll guess.

Initiative (Player) < Initiative (Enemy)
--Let Enemy Move

Initiative (Player) > Initiative (Enemy)
--Let Player Move

Initiative (Player) = Initiative (Enemy)
--Initiative (Player) = Initiative (Player)-1 + random(3)
--Initiative (Enemy) = Initiative (Enemy)-1 + random(3)

There...If they both have the same initiative it will either set the initiative of the player/enemy to -1,-0,+1. Then the top events will grab it next frame.

 
Kramy

dragon_potato_person!



Registered
  26/05/2004
Points
  5
26th May, 2004 at 17:15:09 -

well what if there are more then one on each team and I want initiative for each individual player and monster, I can't believe you actually thought I was going to make a game with one player and monster at a time

 
don't ask about the name I assure that you will be sorry and don't post asking about the name, disregarding my statement in an attempt to be funny or you will be sorrier

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
26th May, 2004 at 17:33:39 -

I think you are going to have to explain your problem in more detail. I, for example, have no idea what you're going on about because I've never played 'wizardry'.

 
- Tigerworks

dragon_potato_person!



Registered
  26/05/2004
Points
  5
26th May, 2004 at 17:45:49 -

Initiative is the order the monsters and players take in a fight, a random number + their dexterity. I have a problem say for example a mind flayer and a fighter get the same initiative and they fight at the same time, its just wrong somehow I need to make it so that two things with the same initiative change it without using all possible combinations.

Sorry for not explaining myself I just supposed everyone played dnd

 
don't ask about the name I assure that you will be sorry and don't post asking about the name, disregarding my statement in an attempt to be funny or you will be sorrier

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
26th May, 2004 at 18:08:16 -

you could use a different stat to determine who out of the two players get the first go when they have a turn at the same time.

 
.

Kramy



Registered
  08/06/2002
Points
  1888
26th May, 2004 at 22:38:52 -

Ok, then run a loop and add random(2) to matching players/monsters until the initatives of them are all spread.

 
Kramy

dragon_potato_person!



Registered
  26/05/2004
Points
  5
1st June, 2004 at 18:03:07 -

oh sorry for not replying earlier I thought the site was gone forever glad to see its not. Oh and for anyone who has never played a wizardry game (btw if you haven't and you call yourself an rpg fan shame on you) its a firstperson rpg (actually the first), like bard's tale, pools of radiance, centauri alliance. Does any of this ring a bell? am I the only one who plays games older than himself. Anyway thank you very much to all of you and if anyone is interested game is underway but it will rake a long time to finish, even without graphics and music, here's the progress


movement and vision engine 100 %
mouse support 100%
character creation system 25 %
battle system 70 %
graphics 0
sound 0
saving system 2%
level and enemy design: 0
plot 0

thats in two weeks
hopefully everything will be finished within a couple of months

another problem for anyone who's willing to help when I save a stand alone game it comes with an editable file, that can't be edited by other computers right?

 
don't ask about the name I assure that you will be sorry and don't post asking about the name, disregarding my statement in an attempt to be funny or you will be sorrier

dragon_potato_person!



Registered
  26/05/2004
Points
  5
1st June, 2004 at 18:07:58 -

oh yeah now I see it, thanks mate

 
don't ask about the name I assure that you will be sorry and don't post asking about the name, disregarding my statement in an attempt to be funny or you will be sorrier

BattleCat



Registered
  08/09/2002
Points
  978

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
1st June, 2004 at 19:16:10 -

Maybe you could check for values that are equal to each other, and if 2 objects have an equal value, make one of them's value be set to "random+dex" again, that way nothing will ever have the same value..

 
n/a
   

Post Reply



 



Advertisement

Worth A Click