Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Wish

Events


Unit - A unit Uses an item

Conditions


(Item-type of (Item being manipulated)) Equal to WishStone

Actions


-------- Base your item ability on some no target spell --------


-------- Functions below will show one random wish --------


-------- Note: N is number of your wishes --------


Set TempInt = (Random integer number between 1 and 10)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TempInt Equal to 1



Then - Actions




Set TempPlayerGroup = (All players matching ((Matching player) Equal to (Owner of (Triggering unit))))




Game - Display to TempPlayerGroup the text: Wish 1




Custom script: call RemoveForce(udg_TempPlayerGroup)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TempInt Equal to 2



Then - Actions




Set TempPlayerGroup = (All players matching ((Matching player) Equal to (Owner of (Triggering unit))))




Game - Display to TempPlayerGroup the text: Wish 2




Custom script: call RemoveForce(udg_TempPlayerGroup)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TempInt Equal to N



Then - Actions




Set TempPlayerGroup = (All players matching ((Matching player) Equal to (Owner of (Triggering unit))))




Game - Display to TempPlayerGroup the text: Wish N




Custom script: call RemoveForce(udg_TempPlayerGroup)



Else - Actions


-------- If your item has only 1 wish to display, remove tempint variable and if/then/else functions --------
Wish
Events

Unit - A unit Uses an item
Conditions

(Item-type of (Item being manipulated)) Equal to WishStone
Actions

Game - Display to TempPlayerGroup the text: Wish Text
What is that??pjotek.
