How to use pick up items in your title packs

Discuss everything related to custom data creation.

Moderator: NADEO

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: How to use pick up items in your title packs

Post by steeffeen »

Gugli wrote:

Code: Select all

   // Only one of these 4 Booleans can be true at once
   Boolean IsOnPlayer;
   Boolean IsOnAnchor;
   Boolean IsInWorld;
   Boolean IsUnspawned;
   /////////
why not an enum? ;)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    Gugli
    Nadeo
    Nadeo
    Posts: 536
    Joined: 14 Jun 2010, 17:35
    Location: Mon PC est à Paris, mais mon coeur rode dans les forêts de Lozère

    Re: How to use pick up items in your title packs

    Post by Gugli »

    steeffeen wrote: why not an enum? ;)
    Good idea indeed, it will be far better !
    (The underlying system isn't direclty an enum, and requires bitmasks checks, but it will be better to hide that from the script API. As often when coding, I lacked perspective ^_^..)

    Thanks for the help. xD
    --
    (>~_~)> ═╦═ ╔╦╗ <(~_~<)
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: How to use pick up items in your title packs

    Post by steeffeen »

    Gugli wrote:Good idea indeed, it will be far better !
    (The underlying system isn't direclty an enum, and requires bitmasks checks, but it will be better to hide that from the script API. As often when coding, I lacked perspective ^_^..)

    Thanks for the help. xD
    hehe great! :lol:
    :thx:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      TGYoshi
      Posts: 795
      Joined: 15 Mar 2011, 16:59

      Re: How to use pick up items in your title packs

      Post by TGYoshi »

      alividerci wrote:but i know this code update your numbers of weapons

      Code: Select all

      	declare UI <=> UIManager.GetUI(Player);
      	if (UI != Null) {
      		declare netwrite Integer		Net_Combo_AmmoUpdate	for UI;
      		declare netwrite Integer[Text]	Net_Combo_AmmoMax		for UI;
      		Net_Combo_AmmoUpdate = Now;
      		Net_Combo_AmmoMax = AmmoMax;
      	}
      but it is not worked
      No it does not, it sets a netwrite variabele (which can be retrieved in client-sided scripts).
      It's probably to show the numbers above the ammo bar in the combo mode.
      =3
      User avatar
      alividerci
      Posts: 363
      Joined: 11 Feb 2012, 07:03

      Re: How to use pick up items in your title packs

      Post by alividerci »

      TGYoshi wrote:
      alividerci wrote:but i know this code update your numbers of weapons

      Code: Select all

      	declare UI <=> UIManager.GetUI(Player);
      	if (UI != Null) {
      		declare netwrite Integer		Net_Combo_AmmoUpdate	for UI;
      		declare netwrite Integer[Text]	Net_Combo_AmmoMax		for UI;
      		Net_Combo_AmmoUpdate = Now;
      		Net_Combo_AmmoMax = AmmoMax;
      	}
      but it is not worked
      No it does not, it sets a netwrite variabele (which can be retrieved in client-sided scripts).
      It's probably to show the numbers above the ammo bar in the combo mode.
      hmmm, i solved my problem thx all
      User avatar
      Eole
      Nadeo
      Nadeo
      Posts: 1265
      Joined: 26 Apr 2011, 21:08

      Re: How to use pick up items in your title packs

      Post by Eole »

      alividerci wrote:hmmm, i solved my problem thx all
      Good. You see, when you try hard you always find a solution at the end. ;)
      Contribute to the ManiaPlanet documentation on GitHub
      A question about ManiaScript? Ask it here!
      User avatar
      faserg1
      Posts: 446
      Joined: 06 Jul 2011, 19:54
      Location: Russia
      Contact:

      Re: How to use pick up items in your title packs

      Post by faserg1 »

      Eole, how soon I can create my own item? (I like animation of this items, I like the light of this items, I like it! :thx: )
      Есть вопросы? Только скайп - faserg1.
      Image
      Жизнь - это динамика ритма. Life is dynamic of rhythm.
      User avatar
      TGYoshi
      Posts: 795
      Joined: 15 Mar 2011, 16:59

      Re: How to use pick up items in your title packs

      Post by TGYoshi »

      You're not able to do so yet.
      =3
      User avatar
      faserg1
      Posts: 446
      Joined: 06 Jul 2011, 19:54
      Location: Russia
      Contact:

      Re: How to use pick up items in your title packs

      Post by faserg1 »

      TGYoshi wrote:You're not able to do so yet.
      Really?!! :roflol:
      I know that. And I asked how soon I can do this.
      Есть вопросы? Только скайп - faserg1.
      Image
      Жизнь - это динамика ритма. Life is dynamic of rhythm.
      User avatar
      Eole
      Nadeo
      Nadeo
      Posts: 1265
      Joined: 26 Apr 2011, 21:08

      Re: How to use pick up items in your title packs

      Post by Eole »

      faserg1 wrote:Eole, how soon I can create my own item? (I like animation of this items, I like the light of this items, I like it! :thx: )
      When it's ready. :mrgreen:
      I'm not the person working on this feature, but as far as I know there's no ETA for the time being.
      Contribute to the ManiaPlanet documentation on GitHub
      A question about ManiaScript? Ask it here!
      Post Reply

      Return to “Title Pack & Custom Data Creation”

      Who is online

      Users browsing this forum: No registered users and 1 guest