• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Am I swimming?

Jack Rackham

ex train dispatcher
Quest Writer
Storm Modder
How do I check if the main character is swimming?
Tried this line:
if(CheckAttribute(Pchar, "actions.swim")) //something....
but that only checks if the attribute exist (I think)

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huh.gif" style="vertical-align:middle" emoid=":huh" border="0" alt="huh.gif" />
 
I'm afraid I don't know. Does anyone else have any idea?
I suppose you need to know this so that the gunpowder can get wet? Would be cool if you could get it to work.

I quickly tested your ammo mod and it seems to work just fine. I haven't encountered any ammo pouches or anything, but I suppose you need to be a higher level than 1 for them to become available.
Anyway: The mod will be in the next modpack update. I already put it in. All that's left to do is compile the files and upload them.
 
This forum is much to complicated. Think there is 3 ammo mod talks current.

Yes Pieter, I´ve already fixed the "powder gets wet by rain" and it seems stupid if swimming wouldn´t do the same.

Pouch & Flask rank 4. Bag & Barrel rank 8. This is intentional: I don´t like the idea of starting a new game and finding a Solingen Rapier already in Oxbay Port. I think it should be more discussing about the play balance.
 
<!--quoteo(post=135317:date=Nov 20 2005, 11:14 AM:name=Jack Rackham)--><div class='quotetop'>QUOTE(Jack Rackham @ Nov 20 2005, 11:14 AM) [snapback]135317[/snapback]</div><div class='quotemain'><!--quotec-->Yes Pieter, I´ve already fixed the "powder gets wet by rain" and it seems stupid if swimming wouldn´t do the same.<!--QuoteEnd--></div><!--QuoteEEnd-->
Cool. Didn't know you managed that yet. Nice. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
You're quite right about the swimming. Wished I knew how to do it.

<!--quoteo(post=135317:date=Nov 20 2005, 11:14 AM:name=Jack Rackham)--><div class='quotetop'>QUOTE(Jack Rackham @ Nov 20 2005, 11:14 AM) [snapback]135317[/snapback]</div><div class='quotemain'><!--quotec-->Pouch & Flask rank 4. Bag & Barrel rank 8. This is intentional: I don´t like the idea of starting a new game and finding a Solingen Rapier already in Oxbay Port. I think it should be more discussing about the play balance.<!--QuoteEnd--></div><!--QuoteEEnd-->
You are quite right about the required rank. It's great that you don't immediately get these items. I wished there always was a rank-check on items. Nathan was working on improving the random item code, but it didn't yet work properly, so it got turned off and now he's gone again. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
 
<!--quoteo(post=135317:date=Nov 20 2005, 11:14 AM:name=Jack Rackham)--><div class='quotetop'>QUOTE(Jack Rackham @ Nov 20 2005, 11:14 AM) [snapback]135317[/snapback]</div><div class='quotemain'><!--quotec-->This forum is much to complicated. Think there is 3 ammo mod talks current.<!--QuoteEnd--></div><!--QuoteEEnd-->
I agree. I think the forum would be more effective for readers and posters alike if we close some subforums. The subforums were basically a good idea when a lot of posts had to be sorted, but we don't have that much traffic anymore, and the sorting doesn't work anyway. Maybe we would even have MORE traffic with LESS subforums.


As for the swimcheck: Sorry, no idea and I am afraid that actions.swim attribute only contains the name of the animation used IF you are swimming, like in this animation list in characters.c


character.actions.stsUpRunBack = "back run stairs up";
character.actions.stsDownRunBack = "back run stairs down";
character.actions.turnLeft = "turn left";
character.actions.turnRight = "turn right";
character.actions.swim = "swim";

That would mean that a character has always the same action.swim attribute, so checking that wouldn't help you <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />

Maybe there is a way to check which animation is currently performed by a character?
 
ok I´ll try on & on... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" />
 
Back
Top