Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cdvader

Pages: [1]
1
Tutorials / Sea Battles
« on: August 30, 2009, 10:28:48 AM »
Quote from: "Deathincarniatelolz"
Where do I put the ship code??
You mean my Ship Collision fixer? It goes to your "ship_battle" mission template, but do not use it yet. Jubal needs to play around with the values on the script.

Quote from: "Deathincarniatelolz"
And where do I put this:
As Jubal said, you need to put it in your "Town" menu.

2
Non-game Programs - The Tinkers' Workshop / Programming skills
« on: August 29, 2009, 11:57:58 PM »
I know the basics of HTML, C++, and Python. However, I guess I can say I'm pretty good at scripting M&B. (Although nearly not as good as some masterminds like kt0 :P)

My plan currently is this: Finish high-school, go to a "vocational school" and take Programming as my profession, after that I'll go to a college where I'll learn Programming even further.

That all is, of course, when fate shines on me.

3
Tutorials / Sea Battles
« on: August 29, 2009, 09:50:13 PM »
Hey man. This is some nice contribution you've made to the whole modding community, etc. So I thought I'd help you with some issues you had previously. Hope I will help.

In this thread, http://forums.taleworlds.net/index.php/topic,53962.0.html, I saw you were having problems by "connecting" scene props. You can "connect" objects by using the (position_transform_position_to_parent) or (position_transform_position_to_local). I recommend using the transform to local variant.

And in this thread, http://forums.taleworlds.net/index.php/topic,72933.msg1893703.html#msg1893703, I saw you had a pretty ... no offense: crappy code. Try this code, it should work.

Code: [Select]
   #CdVader - Ship Collision fixer.
#Put this in your ship's mission template.
    (1, 0, ti_once, [],
    [(scene_prop_get_instance, ":player_ship", "spr_player_ship", 0),
 (scene_prop_get_instance, ":enemy_ship", "spr_enemy_ship", 0),
 (prop_instance_get_position, pos1, ":player_ship"),
     (prop_instance_get_position, pos2, ":enemy_ship"),
 (try_begin),
    (get_distance_between_positions, pos1, pos2),
(lt, ":distance", 400),
(position_move_z, pos1, 200),
(position_move_z, pos2, -200),
(prop_instance_animate_to_position, pos1, ":player_ship", 400), #4 seconds.
(prop_instance_animate_to_position, pos2, ":enemy_ship", 400), #4 seconds.
 (try_end),
 (assign, "$boardedd", 1),
]),

Again, I hope I helped,
cdvader.

PS: Download this file for the "cleaner" version.

Attachments:

Pages: [1]