Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If that's the case, you're probably getting your syntax errors because, at the point of execution, it's unlikely that the script would have any context for the if statement you're making. Or, if for some weird reason it does have the right context, it's still a syntax error because you wouldn't be able to define a constant more than once (and such an statement would only make logical sense inside a loop, which means you're trying to define it more than once).
A tip for a cheap work-around: try to locate the part in the script where DAMAGE_POSITION_CORRECTION is actually used. Make a similar if-statement in that place instead (but don't try to redefine DAMAGE_POSITION_CORRECTION, just use the if-statement to check whether the function will use an additional adjustment or not).
I've already located where it's called upon, and the whole script actually works fine. My only problem is I don't know HOW to make that if statement. i don't know how to check either...
a. Who's turn it is
or
b. which sprite the code is looking at to determine the relative location of the popup.
Everything works perfectly as the scripts are supposed to, I just need to chane the DAMAGE POSITION CORRECTION but only when the damage is inflicted to an ally. I just have no idea how to write the if statement, cuz I have no idea what variable I'd be calling on
Just put it on Dropbox. Anyhow, this is the demo.
Anyhow, talking to the lady at the start point will trigger a battle with two highwaymen. Enemy sprites aren't supposed to move, so don't worry about that one, but when the damage numbers show up, they appear either too far to the right or left. To correct this, of course you just ajust the DAMAGE_POSITION_CORRECTION variables to fit where you want them.
now in Mog's Damage Popup the problem lies in that if I adjust it for the hero sprites, the damage will not show up in the right place for the bad guys, and if I adjust it for the baddies, the hero's damage shows up in the wrong place.
What I want to know is what do I literally have to copy and paste to tell it...
IF (The sprite you're looking at) = good guy
DAMAGE_POSITION_CORRECTION = some numbers
ELSE (The sprite you're looking at) = bad guy
DAMAGE_POSITION_CORRECTION = some other numbers
I don't need to know what numbers to use there, I just need to know how to set up that If/else statement
Thats why i asked:
A Joker huh? XD (I ment: you excidental uploaded the wrong? or are u a troll?)