- Joined
- Nov 3, 2009
- Messages
- 687
Hello,
Here is some gold system I made for my rpg, It works, but not like I want (Ex. how it works now: When unit dies It adds 100 GOLD, but not from 10 to 35.) It should give gold like integar A 10-35 gold... But it gives 100 gold instead of 10-35.
Here systems trigger:
Here is some gold system I made for my rpg, It works, but not like I want (Ex. how it works now: When unit dies It adds 100 GOLD, but not from 10 to 35.) It should give gold like integar A 10-35 gold... But it gives 100 gold instead of 10-35.
Here systems trigger:
-
Gold System
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Dying unit)) Equal to Neutral Hostile
-
-
Actions
-
For each (Integer LoopInt) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set PlayerLooted[LoopInt] = False
-
-
-
Set TempPoint = (Position of (Triggering unit))
-
Floating Text - Create floating text that reads (|cff9925DE+ + ((String((Point-value of (Triggering unit)))) + |r)) at TempPoint with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 52.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
-
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
-
Set TempGroup = (Units within 400.00 of TempPoint matching (((Matching unit) belongs to an ally of (Owner of (Killing unit))) Equal to True))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerLooted[(Player number of (Owner of (Picked unit)))] Equal to False
-
-
Then - Actions
-
For each (Integer A) from 10 to 35, do (Actions) // <- Should Add 10 to 35 gold, but adds 100!!!!!!
-
Loop - Actions
-
Player - Add (Integer A) to (Owner of (Picked unit)) Current gold
-
Set PlayerLooted[(Player number of (Owner of (Picked unit)))] = True
-
-
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Custom script: call DestroyGroup(udg_TempGroup)
-
-
Last edited: