Creating items with the simple item menu

Pilus edited this page Aug 11, 2015 · 1 revision

The Simple Item Wizard is designed for new and old users alike. New users can get started with their first items in a friendly and simplified User Interface. Past users can produce simple, one action, items in a quicker more streamlined manner. These items are fully editable using the normal interface to facilitate upgrading and alterations.

Tutorial Videos

{| |Simple Item Wizard: Screen Effect {{#ev:youtube|AHvnhiFmOBc}}
|Simple Item Wizard: Buff {{#ev:youtube|J1J3qnvP3P0}} |}

More coming soon." "Give_an_item_a_duration","20121008154119","The following guide describes how you can create an advanced item with a duration. The item is automatically consumed when the duration runs out.

Start out with the advanced item you want to give a duration, or convert a simple item into an advanced.

'''Note:''' This guide requires GHI v.2.0.8 or newer

{| |'''Step 1 - The duration'''

Add a new attribute to the item with the name 'duration' and the type 'number'. Let the default value be the duration you would like to have (in seconds). |File:Duration demo1.png |- |'''Step 2 - Display the duration'''

Add a new tooltip and give it the name 'duration'. In the dynamic action area (the big red arrow) add add a new action 'Convert number to time string' (found in the the 'string' category. As the number input, press 'att' and choose the 'duration' attribute. Press Ok to close the dynamic action. Add a second attribute by clicking on the output port of the first action (the squared slot). Let that action be a 'Set Tooltip Line' action. Let Text1 be 'Duration: ' (or whatever other text you want), let Text2 be the duration attribute (by pressing 'att' and choosing 'duration' on the list) and let Text3 be blank. |File:Duration demo2.png |- |'''Step 3 - Make the duration decrease''' The duration value should be 1 smaller for each passing second. In order to do this, you can add a new Update Sequence (on the last page of the page of the advanced item menu). Let this update sequence have a frequency of 1 second. In the dynamic action area (again at the red arrow) add the following attributes:

  • A 'GetAttribute' action. In the input (choose the attribute), press the 'att' button and choose the duration attribute. In the output choose 'var' and write the variable name 'dur'
  • A 'Script' (found inside the 'Other' category). Let the script value be the script 'dur = dur - 1;'
  • As the 3rd action in the chain, add a 'Lua statement' (found in the 'Other' category). Let the 'Lua statement' input have the value 'dur > 0'. Ignore the output. This action triggers its 'Is true' port when there is still duration left of the item and triggers the 'Is false' port when the duration have run out.
  • At the top port (the 'Is true' port) add a 'Set attribute - number' attribute (found inside the 'Attributes' category). Choose 'var' as input and write 'dur' as output press 'att' and choose 'duration'.
  • At the lower port of the Lua statement add a 'Change stack size' action. Let the value be negatively the stack size of your item. E.g. -20. |File:Duration demo3.png File:Duration demo4.png |}

The item is now done and should start counting down with duration. It is advised to have some item that produces this item, because it disappears from your bag.

Item Example Code

Import code for an item with a duration of 5 minutes.

_ef[ha|34|@Y:|7]|C^|7a[Z^O&itI|BN|7|3|4$T|SY|7|3$g"sgtqlKn%v""cv+5q|7|3t<!7#,0&(3-t9=@@K,|7|3/a3|7VII?IGBK^i|4lAdXX_5[T^mN|7|3Qtgg]gei!]|7|3(uivo-i|71_$U$"x&9Dt<$&5&6.6;188H)|7L$9;FOEEILTCNWQPHGHGUIIa^PNXfUSjYeWo^ir[ec^gbb-"-|40|43c+zz#&Q##$wv-#0;w|7|3|4M"E28>@.<25DO0|7|3|4a|4d9\CPOPISZdE|7hitIlWf[WqR|7u1-.>6D5E43HH<:A+6f|<k|734?o|Wt|7%!-5(K C(<=<4.BB4CN/|7|32d6|7|39\MFTJI7[SMfG|7j\^^VozOrdXe^wX|7 cuscwmtt)4d,x qwu.Ruvy-.9u|7=.;g8*3:EP%H0240E=F)5AK<U6|7jhif;^CWX9_WMfG|7j\d]SWeq!|4$|4'Wzcciucepj(d|7;7g|Vl|74|8hf\deyckiw#bptus!kk!rwpNY.|L3|7ea6YRNCAUG6IV[LVLO^iJ|7|3M$Q|7|3Twnansdndg%a|7|3d, $'X#w&5q|7|3t<//73(&:,E&|7|3)L>2?8Q2|7U(H0LA?SE^i>aIKZK[S[V]]mN|7qI^ktjjnqyhs!vumlmlznn+(us"0*zx4/+ y2$;4'49*4*-D3>G?C=YNY|4\|4_4WKKOR"OOPHGYOVV\gH|7|3KnaaieZXl^wX|7|3[#kqwyguknQ%uq0l|74KGHXP^O_zNMOXX[EP%H5;AC1?58$DHKzNC?Y:|7]TGWYUcn|4q|4tIlQgS`VXc]Iimpp |7|3_6c|7+yy&"rp)v4?|4Br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0(JL+g|7>:j2Rvw((h!.] 4"? |7CTQTSVIT)L3@A?8DMEU6|7hd9|=>|7qrm|4pEh_aOR[@dWYgsT|7wg]pr!,|Ia|7)Xrv%$/:j|Mo|778Cs;-!.'@!|7Dg><,@6==Kp7@CR]2U:OODLP-ANGA|7d8RV_juJ|QO|7&"R|KW|7c_ksf.^&nzluLyx!ys,y05q|79y"5!/%((BM"E??4<@qE:6P1|7TcQegohijklmqr'z-y.gr|4uJ|JO|7&"RuB>xY|7!845E=K<Lg;:OOCAH2=m5xz+!+"(.(f7)29D%|7|3|4V+|H0|7ST_4WMA>JL]>|7a&XNMW^f0Ne]mx|4`

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.