Position in &char@ (CSBwin)

Dead posts cluttering up the front page of certain non-RTC forums are kept here. Threads have the forum subject attached, except custom dungeon threads (which are obvious)
Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Position in &char@ (CSBwin)

Post by beowuuf »

The position variable in the character fetch refers to a grid of numbers of the cell, north facing, NOT a relative value relating to the party order you can see on the game menu

So the cell position has values:

0 1
3 2

If the party is north facing, the charcter positioned top right has position value '1'. However, if you turn the party left, so they face west, the top right character in the party is now actually standing with a position number of '0'

I mention this simply because of have had one or two buggy things that I assume was my coding, when it was my understanding - I always used psition as if it were refering to the party order grid


Paul, given this, is there an easy way to fetch the relative positon?
Last edited by beowuuf on Sun Apr 16, 2006 6:34 pm, edited 1 time in total.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Subtract Party Facing (mod 4).
Pseudo-code:

Code: Select all

pos facing - 3 and
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Yeah, sorry, I realised a little after posting this and forogt to delete the question
Post Reply