找回密码
 点一下
查看: 837|回复: 0

这段API如何调用.共有几个.我在国外的网站上找到 不知怎么用.

[复制链接]
发表于 2015-3-30 21:15:39 | 显示全部楼层 |阅读模式
  1.         General - If (Conditions) then do (Actions) else do (Actions)
  2.             If
  3.                 _index == 0
  4.             Then
  5.                 General - If (Conditions) then do (Actions) else do (Actions)
  6.                     If
  7.                         Player Data[_player].Behaviors[(_index + 1)]._panel == No Dialog Item
  8.                     Then
  9.                         ------- | X |
  10.                     Else
  11.                         ------- | X O O |
  12.                         Dialog - Move Player Data[_player].Behaviors[(_index + 1)]._panel to (0, 0) relative to Top Right of UI Dialogs.Behavior Pin[_player] for (All players) (from Top Left)
  13.             Else
  14.                 General - If (Conditions) then do (Actions) else do (Actions)
  15.                     If
  16.                         Player Data[_player].Behaviors[(_index + 1)]._panel == No Dialog Item
  17.                     Then
  18.                         ------- | O O X |
  19.                     Else
  20.                         ------- | O O X O O |
  21.                         Dialog - Move Player Data[_player].Behaviors[(_index + 1)]._panel to (0, 0) relative to Top Right of Player Data[_player].Behaviors[(_index - 1)]._panel for (All players) (from Top Left)
复制代码


是关于行为的

原文是这样写的

im using this system:

Trigger "Acquire Behavior"
Unit - Any Unit has Any change Activate
blablabla code

Trigger "Remove Behavior"
Unit - Any Unit has Any change Deactivate
blablabla code

Also 2 core actions:
UI Behavior Process for showing cooldown on behavior itself
UI Behavior Remove for removing behavior

and 3 support functions:
UI Behaviors Find Current Index
UI Behaviors Find Last Index
UI Behaviors Find Current Index By Behavior

So basically i have a 1 behavior dialog for all and after player hero acquire behavior system adds custom trigger made dialog item to behaviors dialog (or to previous behavior) and show it to player
After behavior depletes/removed system "intelligently" removes behavior and reassign chain to previous behavior or dialog:



  • + of this system - it looks pretty nice
  • + it can show cooldowns
  • + it supports itself (u just need your behavior have an alignment, icon, text and not hidden)
  • - its limited for only 1 hero use
  • - it bugs with fast behaviors (very small duration) (so u should hide this type of behaviors and make all ur tech behaviors hidden)

Also it is very easy to make them display Behaviors Level and Tooltips (i havent made this because im too lazy for making tooltips for all behaviors)

If u want u can contact me via Fen1lkz.514@EU

some screens:
at first we have 0 duration neutral behavior and half-passed positive behavior (bad behaviors are red)
at second screen we have stimpack behavior with my system
i repeat - tooltips for them not a problem, i just turned them off



1.png 这是他贴的用这个通过触法器写出来的行为调用.


您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-23 23:00 , Processed in 0.052220 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表