Custom Variables in the Interface

Bauf

New Member
Reaction score
1
I was working on the interface for my map and was looking at things like %d, %g, and <Amls,DataA1>. It got me wondering if it was possible to refer to other variables with some sort of code. Maybe some way to display a units stat (exp, level, str, agi, int, custom) or even a way to refer to a integer variable.

I noticed the , (comma) character stops the rest of the tooltip text from displaying ("Hello, World" would only display "Hello"). And was wondering if the comma is used for anything.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Nope, it isn't possible to use any in-game features with the interface...
That the simplest answer ;)
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
Nope, it isn't possible to use any in-game features with the interface...
That the simplest answer ;)

You disappoint me, of course this is possible. However it requires a lot of vJass skill, knowing how to use slk tables, and the ability to run the NewGen WE.

In other words, it is highly unlikely that you have the right skillset for the job, but it is possible.

Edit:
> Maybe some way to display a units stat.
Trigger:
  • Init Trigger
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
    • Actions
      • Set tempInt = (Hero experience of (Triggering unit))
      • Set tempInt = (Strength of (Triggering unit) (Exclude bonuses))
      • Set tempInt = (Agility of (Triggering unit) (Exclude bonuses))
      • Set tempInt = (Intelligence of (Triggering unit) (Exclude bonuses))
      • Set tempInt = (Hero level of (Triggering unit))
 

Komaqtion

You can change this now in User CP.
Reaction score
469
REALLY ?! Are you sure ? :S
I've always been told this isn't possible...
This is exactly what I need for my Expiring Buffs system :D

How would you go about doing it ? :eek:

Also, I believe he wants to change stuff like the tooltip in-game to use current stats and such... Is that possible ? :S
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
REALLY ?! Are you sure ? :S
I've always been told this isn't possible...
This is exactly what I need for my Expiring Buffs system :D

How would you go about doing it ? :eek:

Also, I believe he wants to change stuff like the tooltip in-game to use current stats and such... Is that possible ? :S

No, that is not possible. The basic idea of this is pretty simple.
Once you defined everything needed in the slk table, NewGen can convert it to a object data file or "merge" it into the currently existing one. On top of that, NewGen can provide you with a struct interface of every available data of the items, units, ability's, etc which was defined in the slk table.

So in otherwords, changing data in the slk table, can change the data of the unit and update so in the tooltip.

It is also required you know a language on top, but the basics are pretty easy. Just forgot the name of it. Silly, cause I used to program in that language :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top